XM
Powered By GitBook
Retrieve Order by Order ID
Path:
1
GET /data-subscription/orders/{orderID}
Copied!
This API helps retrive details of a subscribed order based on the specified order ID.

Headers

Content-Type : application/json
Authorization: JWT Token
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox"

Parameters

Type : path
Name : The system-generated Order ID.
Required: true

Sample Path

1
https://{baseurl}/data-subscription/orders/5082-5948-21691
Copied!

Sample Response

Response Code: 200
Message: OK
1
{
2
"success": true,
3
"responseStatus": "OK",
4
"message": "Request processed successfully.",
5
"data": {
6
"order": {
7
"shipTo": {
8
"name": {
9
"firstName": "test IQBAR",
10
"middleName": "",
11
"lastName": "test"
12
},
13
"streetAddress": {
14
"street1": "185-S QA Estate",
15
"street2": ""
16
},
17
"shipToId": "testShip",
18
"city": "Lahore",
19
"state": "Punjab",
20
"zipCode": "a1a1a1",
21
"country": "Pakistan"
22
},
23
"billTo": {
24
"name": {
25
"firstName": "test bill",
26
"middleName": "",
27
"lastName": "test"
28
},
29
"streetAddress": {
30
"street1": "185-S QA Estate bill",
31
"street2": ""
32
},
33
"billToId": "testBill",
34
"city": "Lahore",
35
"state": "Punjab",
36
"zipCode": "a1a1a1",
37
"country": "Pakistan"
38
},
39
"paymentDetails": {
40
"processor": "stripe"
41
},
42
"isDeleted": false,
43
"deletedAt": null,
44
"_id": "6073f86dd2090535c2b7e90a",
45
"subscriptionID": "6073f86bd2090535c2b7e909",
46
"planID": "6073f83b93563735c21afcfd",
47
"itemID": "1000000050",
48
"itemName": "Gravity Pillow Amethyst",
49
"quantity": 3,
50
"frequency": 81,
51
"frequencyType": "Weekly",
52
"flagPreviousOrder": false,
53
"orderReferenceId": "5082-5948-21691",
54
"customerReferenceId": "ref-9423-7967",
55
"discount": 10,
56
"tax": 2,
57
"totalAmount": 39960,
58
"shippingCost": 2,
59
"paymentStatus": "PAID",
60
"paymentMethod": "pm_1ISekkETggmgrCy2b7osIpl8",
61
"paymentDate": "2021-04-12T07:36:13.860Z",
62
"createdAt": "2021-04-12T07:36:13.911Z",
63
"updatedAt": "2021-04-12T07:36:13.911Z",
64
"__v": 0
65
}
66
}
67
}
Copied!
Response Code: 400
Message: Client Error
Response Code: 500
Message: Server Error

Changelog

    April-2021
Last modified 3mo ago
Copy link
Contents
Changelog