Metaverse Orbs API
- Topup user's multicurrency balance
Get multi virtual currencies balance
Retrieve info about automatic purchase
Update info about automatic purchase
Topup user's multicurrenc...
Metaverse Orbs API (1.0.0)
Télécharger la description d'OpenAPI
Langues
Serveurs
http://orbs.babka.com/
Mock server
https://xsolla.redocly.app/_mock/fr/api/metaframe/
- http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-balance
- Mock serverhttps://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-balance
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-balance' \
-H 'Authorization: YOUR_API_KEY_HERE'Values of multi virtual crrencies balances.
List of multicurrency balances.
Exemple: [{"balance":14,"image_url":"https://imgurl.com","name":"Blue Orb Point","points":{"base":240,"point":80},"shards":2,"virtual_currency_sku":"xxxxx"}]
To distingush between partially available and available status of virtual currency
Shards balance in time points.
Réponse
application/json
{ "items": [ { … } ] }
Corpsapplication/json
Xsolla Account ID.
Exemple: "b8fa3003-2448-49fb-bbe2-7f72f420e350"
- http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-balance-topup
- Mock serverhttps://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-balance-topup
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-balance-topup' \
-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": "sapphire_point"
}'Réponse
application/json
{ "balance": { "balance": 1, "shards": 5 } }
- http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup
- Mock serverhttps://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup' \
-H 'X-HOST-ID: stringstringstringstringstringstring' \
-H 'X-SERVER-AUTHORIZATION: YOUR_API_KEY_HERE'Réponse
application/json
{ "items": [ { … } ] }
- http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup
- Mock serverhttps://xsolla.redocly.app/_mock/fr/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'http://orbs.babka.com/v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup' \
-H 'Content-Type: application/json' \
-H 'X-HOST-ID: stringstringstringstringstringstring' \
-H 'X-SERVER-AUTHORIZATION: YOUR_API_KEY_HERE' \
-d '{
"items": [
{
"enabled": false,
"virtual_currency_sku": "xxx-xxx-xxx"
}
]
}'Réponse
application/json
{ "items": [ { … } ] }