/v1/subscriptions/
Request
GET
https://pay.yandex.ru/api/merchant/v1/subscriptions/{customer_subscription_id}
Production
GET
https://sandbox.pay.yandex.ru/api/merchant/v1/subscriptions/{customer_subscription_id}
Sandbox
Path parameters
Name |
Type |
Description |
customer_subscription_id* |
string |
ID подписки |
Responses
200 OK
Body
application/json
{
"code": 200,
"data": {
"cancelledAt": "2022-12-29T18:02:01Z",
"customerSubscriptionId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
"nextWriteOff": "2022-12-29T18:02:01Z",
"status": "NEW",
"subscriptionPlanId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b"
},
"status": "success"
}
Name |
Type |
Description |
code |
number |
Default: |
data |
||
status |
string |
Enum: |
CustomerSubscriptionResponseData
Name |
Type |
Description |
cancelledAt |
string<date-time> |
|
customerSubscriptionId |
string<uuid> |
Max length: |
nextWriteOff |
string<date-time> |
|
status* |
string |
Enum: |
subscriptionPlanId* |
string<uuid> |
Max length: |