Get Orders
Description
Returns a collection of Orders.
Request
HTTP Method: GET
URI Path: /v3/orders
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
---|---|---|---|
filter[<filter_name>] |
|
Optional |
|
sort |
|
Optional |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
---|---|---|---|---|
id |
|
No |
Yes |
Order |
status |
|
Yes |
Yes |
Order
status field.Possible values:
Pending Canceled Completed |
created_at_gteq |
|
No |
No |
The |
created_at_lteq |
|
No |
No |
The |
reference |
|
No |
Yes |
Order |
Sorting:
Value |
Sorts by: |
---|---|
status |
The
status field.Possible values:
Pending Canceled Completed |
amount |
The |
created_at |
The |
description |
The |
Fielding:
Value |
Returns: |
---|---|
status |
The
status attribute.Possible values:
Pending Canceled Completed |
amount |
The |
created_at |
The |
description |
The |
reference |
The |
Example
GET /v3/orders HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
curl -i -X GET https://api.didww.com/v3/orders -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
GET /v3/orders HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
Other Responses
Code |
Success |
Description |
---|---|---|
404 |
No |
|
401 |
No |