Array of localized promotion descriptions.
정기 결제 API (2.0)
- Version: 2.0
- Servers:
https://api.xsolla.com/merchant/v2/
This API reference describes endpoints for managing subscriptions, coupons, and promotions. To get more information about Subscriptions, see the product guide and the glossary.
OpenAPI 설명 다운로드
언어
서버
Mock server
https://xsolla.redocly.app/_mock/ko/api/subscriptions/
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions
- Mock serverhttps://xsolla.redocly.app/_mock/ko/api/subscriptions/merchants/{merchant_id}/promotions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/ko/api/subscriptions/merchants/{merchant_id}/promotions'응답
application/json
[ { "datetime": { … }, "enabled": true, "id": 17840, "is_active": true, "is_infinite": false, "project": { … }, "read_only": false, "technical_name": "christmas" }, { "datetime": null, "enabled": false, "id": 17891, "is_active": false, "is_infinite": true, "project": { … }, "read_only": false, "technical_name": "Sale promotion" } ]
본문application/json필수
Array of localized labels to show in the payment UI.
Array of localized promotion names.
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions
- Mock serverhttps://xsolla.redocly.app/_mock/ko/api/subscriptions/merchants/{merchant_id}/promotions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/ko/api/subscriptions/merchants/{merchant_id}/promotions' \
-H 'Content-Type: application/json' \
-d '{
"description": {
"en": "Promotion with 30% discount",
"ru": "Акция со скидкой 30%"
},
"label": {
"en": "30%",
"ru": "30%"
},
"name": {
"en": "30% discount",
"ru": "скидка 30%"
},
"project_id": 12345,
"technical_name": "Sale promotion"
}'- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}
- Mock serverhttps://xsolla.redocly.app/_mock/ko/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/ko/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}'