Listet alle Abo-Modelle auf.
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/projects/{project_id}/subscriptions/plans
- https://api.xsolla.com/merchant/v2/projects/{project_id}/subscriptions/plans
- 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/projects/{project_id}/subscriptions/plans?plan_id=0&limit=0&offset=0&external_id=string&group_id=string&product_id=0&query=string'OK.
Beschreibung zum Abo-Modell. Besteht aus Paaren vom Typ "localization":"plan description" (Sprache:Beschreibung zum Abo-Modell).
Bezeichnung des Abo-Modells. Besteht aus Paaren vom Typ "localization":"plan name" (Sprache:Bezeichnung des Abo-Modells).
Zeitraum, in dem der Nutzer die Zahlung für ein Abo-Modell erstattet bekommen kann (in Tagen).
[ { "billing_retry": { … }, "charge": { … }, "description": { … }, "expiration": { … }, "external_id": "3b355320", "grace_period": { … }, "group_id": null, "id": 241037, "localized_name": "Platinum VIP", "name": { … }, "project_id": 40797, "refund_period": null, "status": { … }, "tags": [], "trial": { … } }, { "billing_retry": { … }, "charge": { … }, "description": { … }, "expiration": { … }, "external_id": "0fe1b6fc", "grace_period": { … }, "group_id": null, "id": 241038, "localized_name": "Gold Status", "name": { … }, "project_id": 40797, "refund_period": null, "status": { … }, "tags": [], "trial": { … } } ]
Details zur Abrechnung.
Kaufwährung. Währungscode, bestehend aus drei Buchstaben gemäß ISO 4217.
Abrechnungszeitraum.
Zeiteinheit. Möglich sind day, month oder lifetime.
Beschreibung zum Abo-Modell. Besteht aus Paaren vom Typ "localization":"plan description" (Sprache:Beschreibung zum Abo-Modell).
Bezeichnung des Abo-Modells. Besteht aus Paaren vom Typ "localization":"plan name" (Sprache:Bezeichnung des Abo-Modells).
Zeitraum, in dem der Nutzer die Zahlung für ein Abo-Modell erstattet bekommen kann (in Tagen).
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/projects/{project_id}/subscriptions/plans
- https://api.xsolla.com/merchant/v2/projects/{project_id}/subscriptions/plans
- 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/projects/{project_id}/subscriptions/plans' \
-H 'Content-Type: application/json' \
-d '{
"billing_retry": {
"value": 1
},
"charge": {
"amount": 10,
"currency": "USD",
"period": {
"type": "month",
"value": 1
},
"prices": [
{
"amount": 8,
"currency": "EUR",
"setup_fee": 1.5
},
{
"amount": 1000,
"currency": "JPY",
"setup_fee": 2.5
}
]
},
"description": {
"en": "2x more experience!"
},
"expiration": {
"type": "day",
"value": null
},
"external_id": "exp",
"grace_period": {
"type": "day",
"value": 2
},
"name": {
"en": "Experience boost"
},
"refund_period": null,
"status": {
"value": "active"
},
"trial": {
"type": "day",
"value": 7
}
}'{ "external_id": "exp", "plan_id": 241082 }
- Mock serverhttps://xsolla.redocly.app/_mock/de/api/subscriptions/projects/{project_id}/subscriptions/plans/{plan_id}
- https://api.xsolla.com/merchant/v2/projects/{project_id}/subscriptions/plans/{plan_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/de/api/subscriptions/projects/{project_id}/subscriptions/plans/{plan_id}'