XM

Count Plans

Path:

GET /data-subscription/plans/count

This API facilitates easy creation of a new subscription based on the subscription details such as planId, itemId, quantity, etc. in the request body.

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 : header

Name : JWT Authorization

Required: true

Sample Path

https://{baseURL}/data-subscription/plans/count

Sample Response

Response Code: 200

Message: OK

{
"success": true,
"responseStatus": "OK",
"message": "Request processed successfully.",
"data": {
"plansCount": 10,
"statusCount": [
{
"_id": "ACTIVE",
"total": 10
}
]
}
}

Response Code: 400

Message: Client Error

Response Code: 500

Message: Server Error

Changelog

  • April-2021