XM
Members
Remove Single Subscription
This documentation is now outdated, please find the latest docs for this endpoint here
Path:
1
GET https://{baseurl}/data-subscription/subscriptions/{subscriptionID}
Copied!
Removes a subscription, by subscription ID.

Headers

Content-Type : application/json
Authorization: The JWT Authorization toke from the Login API.
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox"

Parameters

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

Sample Path

1
https://{baseURL}/data-subscription/subscriptions/6058511b4dd50e6ddd6d744c
Copied!

Sample Response

Response Code: 200
Message: OK
1
{
2
"success": true,
3
"responseStatus": "OK",
4
"message": "Request processed successfully.",
5
"data": {
6
"shipTo": {
7
"name": {
8
"firstName": "test IQBAR",
9
"middleName": "",
10
"lastName": "test"
11
},
12
"streetAddress": {
13
"street1": "185-S QA Estate",
14
"street2": ""
15
},
16
"shipToId": "testShip",
17
"city": "Lahore",
18
"state": "Punjab",
19
"zipCode": "a1a1a1",
20
"country": "Pakistan"
21
},
22
"billTo": {
23
"name": {
24
"firstName": "test bill",
25
"middleName": "",
26
"lastName": "test"
27
},
28
"streetAddress": {
29
"street1": "185-S QA Estate bill",
30
"street2": ""
31
},
32
"billToId": "testBill",
33
"city": "Lahore",
34
"state": "Punjab",
35
"zipCode": "a1a1a1",
36
"country": "Pakistan"
37
},
38
"isDeleted": true,
39
"deletedAt": "2021-03-22T09:30:47.567Z",
40
"_id": "6058511b4dd50e6ddd6d744c",
41
"planID": "604f5e65eddac91f7ad5535c",
42
"itemID": "1000019305",
43
"priceListID": "100266",
44
"quantity": 3,
45
"customerID": "6045e4453db3e710480a4d2b",
46
"frequency": 6,
47
"frequencyType": "weekly",
48
"merchantAccountId": "8739392294",
49
"merchantAccount": "5f328bf0b7c15700071233b9",
50
"status": "ACTIVE",
51
"lastOrderReferenceId": "5082-5948-16923",
52
"cancellationReason": "",
53
"discount": 2,
54
"tax": 2,
55
"shippingCost": 2,
56
"paymentMethod": "pm_1ISekkETggmgrCy2b7osIpl8",
57
"lastPaymentDate": "2021-03-22T08:11:07.219Z",
58
"nextPaymentDate": "2021-05-03T08:11:07.218Z",
59
"createdAt": "2021-03-22T08:11:07.234Z",
60
"updatedAt": "2021-03-22T08:11:07.234Z",
61
"__v": 0
62
}
63
}
Copied!
Response Code: 400
Message: Client Error
Response Code: 500
Message: Server Error

Changelog

  • April-2021
Last modified 1mo ago
Copy link
Contents
Changelog