Kampagnenname.
- Gutschein zur Kampagne hinzufügen
Subscriptions API (2.0)
- Version: 2.0
- Servers:
https://api.xsolla.com/merchant/v2/
Diese API-Referenz beschreibt Endpunkte für die Verwaltung von Abonnements, Gutscheinen und Werbeaktionen. Weitere Informationen über Subscriptions finden Sie in der Produktanleitung und in der Begriffserläuterung.
Objekt, das lokalisierte Kampagnennamen enthält.
Maximale Anzahl der Gutscheine, die ein Benutzer innerhalb einer Kampagne einlösen kann. Wenn null bestanden wurde, ist die Anzahl Gutscheine unbeschränkt.
Das Ablaufdatum im YYYY-MM-DD’T’HH:MM:SS-Format laut ISO 8601.
Maximale Anzahl der Gutscheine zum Einlösen. Wenn null bestanden wurde, ist die Anzahl Gutscheine unbeschränkt.
Maximale Anzahl der einlösbaren Gutscheine pro Nutzer. Wenn null übermittelt wurde, ist die Anzahl der einlösbaren Gutscheine unbeschränkt.
Objekt, das die Abo-Parameter einer Belohnung enthält.
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/coupon_promotions
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/coupon_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/de/api/subscriptions/merchants/{merchant_id}/coupon_promotions' \
-H 'Content-Type: application/json' \
-d '{
"campaign_code": "sample_campaign",
"campaign_names": {
"en": "Campaign Name",
"ru": "Название кампании"
},
"campaign_redeems_count_for_user": 1,
"expiration_date": "2019-12-31",
"project_id": 12345,
"redeems_count": 10,
"redeems_count_for_user": 1,
"subscription_coupon": {
"plan_id": 123,
"product_id": 456,
"trial_period": 30
},
"virtual_currency_amount": 200
}'- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/coupon_promotions/{campaign_id}/coupons
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/coupon_promotions/{campaign_id}/coupons
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/coupon_promotions/{campaign_id}/coupons' \
-H 'Content-Type: application/json' \
-d '{
"coupon_code": "34bryrb3"
}'- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/coupons
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/coupons
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/coupons' \
-H 'Content-Type: application/json' \
-d '{
"campaigns": [
9135
]
}'