Metaverse Orbs API
- Charges Shards from user's balance by Xsolla Account ID
Charges Shards from user's balance
Charges Shards from user'...
Metaverse Orbs API (1.0.0)
Télécharger la description d'OpenAPI
Langues
Serveurs
Mock server
https://xsolla.redocly.app/_mock/fr/api/metaframe/
http://orbs.babka.com/
- Mock serverhttps://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-charge
- http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-charge
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-charge' \
-H 'Content-Type: application/json' \
-H 'X-HOST-ID: stringstringstringstringstringstring' \
-H 'X-OPERATION-ID: stringstringstringstringstringstring' \
-H 'X-SERVER-AUTHORIZATION: YOUR_API_KEY_HERE' \
-d '{
"shards": 22,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJ....LGH2xCeJHxl8u8Xn2aI=",
"virtual_currency_sku": "blue_orb_point"
}'Réponse
application/json
{ "balance": { "orbs": 1, "shards": 5 } }
Corpsapplication/json
Xsolla Account ID.
Exemple: "b8fa3003-2448-49fb-bbe2-7f72f420e350"
- Mock serverhttps://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-charge-user
- http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-charge-user
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-charge-user' \
-H 'Content-Type: application/json' \
-H 'X-HOST-ID: stringstringstringstringstringstring' \
-H 'X-OPERATION-ID: stringstringstringstringstringstring' \
-H 'X-SERVER-AUTHORIZATION: YOUR_API_KEY_HERE' \
-d '{
"shards": 22,
"user_id": "b8fa3003-2448-49fb-bbe2-7f72f420e350",
"virtual_currency_sku": "blue_orb_point"
}'Réponse
application/json
{ "balance": { "orbs": 1, "shards": 5 } }