Subscriptions API (2.0)
OpenAPI記述をダウンロード
言語
サーバー
Mock server
https://xsolla.redocly.app/_mock/ja/api/subscriptions/
- Mock serverhttps://xsolla.redocly.app/_mock/ja/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/ja/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}' \
-H 'Content-Type: application/json' \
-d '{
"description": {
"en": "Promotion with 5% discount",
"ru": "Акция со скидкой 5%"
},
"label": {
"en": "5%",
"ru": "5%"
},
"name": {
"en": "5% discount",
"ru": "скидка 5%"
},
"project_id": 40544,
"technical_name": "Sale promotion"
}'- Mock serverhttps://xsolla.redocly.app/_mock/ja/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 GET \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/ja/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/payment_systems'レスポンス
application/json
{ "id": 17840, "payment_systems": [ { … } ] }
- Mock serverhttps://xsolla.redocly.app/_mock/ja/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/ja/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/payment_systems' \
-H 'Content-Type: application/json' \
-d '{
"payment_systems": [
{
"id": 24,
"name": "PayPal"
}
]
}'