ID der Werbeaktion.
- Belohnungen festlegen
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.
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/rewards
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/rewards
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/rewards'OK.
Legt die Belohnung für bestimmte virtuelle Gegenstände fest.
Zusätzliche virtuelle Gegenstände, die als Bonus verteilt werden.
Rabatte für bestimmte virtuelle Gegenstände.
Name des Abo-Modells in der Standardsprache (en), repliziert den Wert name.en.
Maximale Anzahl an Gegenständen, die für die Werbeaktion verwendet wird.
Legt die Belohnung für ein virtuelles Währungspaket fest.
Legt die Belohnung für den gesamten Einkauf fest.
{ "id": 17840, "item": { "bonus": [ … ], "discount": [ … ] }, "package": { "bonus_amount": 5, "bonus_percent": 5 }, "purchase": { "discount_percent": 10 }, "subscription": { "trial_days": 30 } }
Anfrage
Ruft die Liste der Projekte des Händlers ab. Wenn die Aktion schreibgeschützt ist(read_only = true), können Sie die Prämien nicht aktualisieren.
Bemerkung
Dieser API-Aufruf enthält nicht den Pfadparameter project_id, Sie müssen also den API-Schlüssel verwenden, der in allen Projekten des Unternehmens gültig ist, um die Autorisierung einzurichten.
Legt die Belohnung für bestimmte virtuelle Gegenstände fest.
Zusätzliche virtuelle Gegenstände, die als Bonus verteilt werden.
Rabatte für bestimmte virtuelle Gegenstände.
Name des Abo-Modells in der Standardsprache (en), repliziert den Wert name.en.
Maximale Anzahl an Gegenständen, die für die Werbeaktion verwendet wird.
Legt die Belohnung für ein virtuelles Währungspaket fest.
Legt die Belohnung für den gesamten Einkauf fest.
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/rewards
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/rewards
- 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}/rewards' \
-H 'Content-Type: application/json' \
-d '{
"item": {
"bonus": [
{
"quantity": 2,
"sku": "1234"
}
],
"discount": [
{
"discount_percent": 5,
"max_amount": 10,
"sku": "1234"
}
]
},
"package": {
"bonus_amount": 5,
"bonus_percent": 5
},
"purchase": {
"discount_percent": 10
},
"subscription": {
"trial_days": 30
}
}'- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/subject
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/subject
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/subject'{ "digital_contents": null, "id": 178, "items": [ { … } ], "packages": null, "purchase": false, "subscriptions": null }