XM
Powered By GitBook
Count Plans
Path:
1
GET /data-subscription/plans/count
Copied!
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

1
https://{baseURL}/data-subscription/plans/count
Copied!

Sample Response

Response Code: 200
Message: OK
1
{
2
"success": true,
3
"responseStatus": "OK",
4
"message": "Request processed successfully.",
5
"data": {
6
"plansCount": 10,
7
"statusCount": [
8
{
9
"_id": "ACTIVE",
10
"total": 10
11
}
12
]
13
}
14
}
Copied!
Response Code: 400
Message: Client Error
Response Code: 500
Message: Server Error

Changelog

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