ID der Werbeaktion.
- Thema 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.
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/subject
- https://api.xsolla.com/merchant/v2/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 }
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. Das Subjekt kann folgende Werte annehmen:purchase, oder items, oderpackages.
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.
Array der Angebotspakete mit virtueller Währung, die bei der Werbeaktion zum Einsatz kommen.
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/subject
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/subject
- 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}/subject' \
-H 'Content-Type: application/json' \
-d '{
"digital_contents": null,
"items": [
{
"sku": "1234"
}
],
"packages": null,
"purchase": false,
"subscriptions": null
}'Anfrage
Schaltet den Status einer Aktion von enabled auf disabled um und umgekehrt.
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.
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/merchants/{merchant_id}/promotions/{promotion_id}/toggle
- https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/promotions/{promotion_id}/toggle
- 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}/toggle'