No content.
Subscriptions API (2.0)
下载 OpenAPI 描述
语言
服务器
Mock server
https://xsolla.redocly.app/_mock/zh/api/subscriptions/
- Mock serverhttps://xsolla.redocly.app/_mock/zh/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/payment_systems
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/payment_systems
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/zh/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/payment_systems' \
-H 'Content-Type: application/json' \
-d '{
"payment_systems": [
{
"id": 24,
"name": "PayPal"
}
]
}'- Mock serverhttps://xsolla.redocly.app/_mock/zh/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/periods
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/periods
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/zh/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/periods'响应
application/json
{ "id": 17840, "periods": [ { … } ] }
- Mock serverhttps://xsolla.redocly.app/_mock/zh/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/periods
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/periods
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/zh/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/periods' \
-H 'Content-Type: application/json' \
-d '{
"periods": [
{
"from": "2019-03-02T00:00:00+04:00",
"to": "2019-04-02T00:00:00+04:00"
}
]
}'