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:
PendingCanceledCompleted |
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:
PendingCanceledCompleted |
amount |
The |
created_at |
The |
description |
The |
Sparse Fieldsets:
Value |
Returns: |
|---|---|
status |
The
status attribute.Possible values:
PendingCanceledCompleted |
amount |
The |
created_at |
The |
description |
The |
reference |
The |
Example#
http
1GET /v3/orders HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -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"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": [
6 {
7 "id": "889b91ce-93be-4913-a32e-8415d5914f0f",
8 "type": "orders",
9 "attributes": {
10 "amount": "0.7",
11 "status": "Completed",
12 "created_at": "2020-09-14T07:35:07.038Z",
13 "description": "DID",
14 "reference": "BUV-544694",
15 "items": [
16 {
17 "type": "did_order_items",
18 "attributes": {
19 "qty": 1,
20 "nrc": "0.35",
21 "mrc": "0.35",
22 "prorated_mrc": false,
23 "billed_from": "2020-09-14",
24 "billed_to": "2020-10-14",
25 "setup_price": "0.35",
26 "monthly_price": "0.35",
27 "did_group_id": "0a265a8c-50fc-4ab3-ae16-9811bc17c241"
28 }
29 }
30 ],
31 "callback_method": null,
32 "callback_url": null
33 }
34 },
35 {
36 "id": "cd1e48e8-94e8-4ba5-9ba6-7f87e4aa61c5",
37 "type": "orders",
38 "attributes": {
39 "amount": "0.7",
40 "status": "Completed",
41 "created_at": "2020-09-14T07:49:40.747Z",
42 "description": "DID",
43 "reference": "VSB-352655",
44 "items": [
45 {
46 "type": "did_order_items",
47 "attributes": {
48 "qty": 1,
49 "nrc": "0.35",
50 "mrc": "0.35",
51 "prorated_mrc": false,
52 "billed_from": "2020-09-14",
53 "billed_to": "2020-10-14",
54 "setup_price": "0.35",
55 "monthly_price": "0.35",
56 "did_group_id": "0a265a8c-50fc-4ab3-ae16-9811bc17c241"
57 }
58 }
59 ],
60 "callback_method": null,
61 "callback_url": null
62 }
63 },
64 {
65 "id": "fac8671b-9515-46c1-bcdb-ce8115557b0b",
66 "type": "orders",
67 "attributes": {
68 "amount": "0.7",
69 "status": "Completed",
70 "created_at": "2020-09-14T07:50:23.443Z",
71 "description": "DID",
72 "reference": "TDE-247766",
73 "items": [
74 {
75 "type": "did_order_items",
76 "attributes": {
77 "qty": 1,
78 "nrc": "0.35",
79 "mrc": "0.35",
80 "prorated_mrc": false,
81 "billed_from": "2020-09-14",
82 "billed_to": "2020-10-14",
83 "setup_price": "0.35",
84 "monthly_price": "0.35",
85 "did_group_id": "d6c199be-dba8-4f87-ae58-29e7a8263e7a"
86 }
87 }
88 ],
89 "callback_method": null,
90 "callback_url": null
91 }
92 }
93 ],
94 "meta": {
95 "total_records": 54,
96 "api_version": "2021-04-19"
97 },
98 "links": {
99 "first": "https://api.didww.com/v3/orders?page%5Bnumber%5D=1&page%5Bsize%5D=50",
100 "next": "https://api.didww.com/v3/orders?page%5Bnumber%5D=2&page%5Bsize%5D=50",
101 "last": "https://api.didww.com/v3/orders?page%5Bnumber%5D=2&page%5Bsize%5D=50"
102 }
103}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |