Zum Inhalt springen

Metaverse Orbs API (1.0.0)

Metaverse Orbs API

OpenAPI-Beschreibung herunterladen
Sprachen
Server
Mock server
https://xsolla.redocly.app/_mock/de/api/metaframe/
http://orbs.babka.com/
Operationen
Operationen

Anfrage

Charge shards from user

Sicherheit
Server
Pfad
merchantIdstringerforderlich

Merchant ID of the client

projectIdstringerforderlich

Project ID of the project

Header
X-OPERATION-IDstring(UUID)= 36 characterserforderlich

Unique operation ID.

X-HOST-IDstring(UUID)= 36 characterserforderlich

Unique operator ID.

Bodyapplication/json
shardsinteger(int64)>= 1erforderlich

Number of Shards to charge.

Beispiel: 22
user_tokenstringnon-emptyerforderlich

Authentication token of the user whose balance is to charge.

virtual_currency_skustringnon-emptyerforderlich

Multicurrency SKU

Beispiel: "blue_orb_point"
curl -i -X POST \
  'https://xsolla.redocly.app/_mock/de/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"
  }'

Antworten

Operation successful

Bodyapplication/json
balanceobject
Beispiel: {"orbs":1,"shards":5}
Antwort
application/json
{ "balance": { "orbs": 1, "shards": 5 } }

Charges Shards from user's balance by Xsolla Account ID

Anfrage

Charge shards from user by Xsolla Account ID

Sicherheit
Server
Pfad
merchantIdstringerforderlich

Merchant ID of the client

projectIdstringerforderlich

Project ID of the project

Header
X-OPERATION-IDstring(UUID)= 36 characterserforderlich

Unique operation ID.

X-HOST-IDstring(UUID)= 36 characterserforderlich

Unique operator ID.

Bodyapplication/json
shardsinteger(int64)>= 1erforderlich

Number of Shards to charge.

Beispiel: 22
user_idstring(UUID)non-emptyerforderlich

Xsolla Account ID.

Beispiel: "b8fa3003-2448-49fb-bbe2-7f72f420e350"
virtual_currency_skustringnon-emptyerforderlich

Multicurrency SKU

Beispiel: "blue_orb_point"
curl -i -X POST \
  'https://xsolla.redocly.app/_mock/de/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"
  }'

Antworten

Operation successful

Bodyapplication/json
balanceobject
Beispiel: {"orbs":1,"shards":5}
Antwort
application/json
{ "balance": { "orbs": 1, "shards": 5 } }
Operationen
Operationen