XM

Retrieve Single Subscriber

Path:

GET /data-subscription/customers/{customerID}

This API enables you to retrieve details of the specified subscriber.

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 : page size and page number

Required: true

Sample Path

https://{baseURL}/data-subscription/subscriptions/customers/6068efcdb89ba600081ea618

Sample Response

Response Code: 200

Message: OK

{
"success": true,
"responseStatus": "OK",
"message": "Request processed successfully.",
"data": {
"isDeleted": false,
"deletedAt": null,
"_id": "6068efcdb89ba600081ea618",
"stripeId": "cus_JElkvWLG5Lu1cb",
"customerEmail": "[email protected]",
"customerReferenceId": "[email protected]",
"customerFullName": "test",
"paymentMethodId": [
{
"isDeleted": false,
"_id": "6068efcdb89ba600081ea619",
"paymentMethodId": "pm_1ISekkETggmgrCy2b7osIpl8",
"isDefault": "true"
}
],
"createdAt": "2021-04-03T22:44:29.656Z",
"updatedAt": "2021-04-11T09:25:11.654Z",
"__v": 0,
"merchantAccount": "5fc78dfc6135050007191290"
}
}

Response Code: 400

Message: Client Error

Response Code: 500

Message: Server Error

Changelog

  • April-2021