Saltar para o conteúdo

Metaverse Orbs API (1.0.0)

Metaverse Orbs API

Transferir a descrição da OpenAPI
Idiomas
Servidores
Mock server
https://xsolla.redocly.app/_mock/pt/api/metaframe/
http://orbs.babka.com/
Operações
Operações

Charges Shards from user's balance

Pedido

Charge shards from user

Segurança
Server
Caminho
merchantIdstringobrigatório

Merchant ID of the client

projectIdstringobrigatório

Project ID of the project

Cabeçalhos
X-OPERATION-IDstring(UUID)= 36 charactersobrigatório

Unique operation ID.

X-HOST-IDstring(UUID)= 36 charactersobrigatório

Unique operator ID.

Corpoapplication/json
shardsinteger(int64)>= 1obrigatório

Number of Shards to charge.

Exemplo: 22
user_tokenstringnon-emptyobrigatório

Authentication token of the user whose balance is to charge.

virtual_currency_skustringnon-emptyobrigatório

Multicurrency SKU

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

Respostas

Operation successful

Corpoapplication/json
balanceobject
Exemplo: {"orbs":1,"shards":5}
Resposta
application/json
{ "balance": { "orbs": 1, "shards": 5 } }

Charges Shards from user's balance by Xsolla Account ID

Pedido

Charge shards from user by Xsolla Account ID

Segurança
Server
Caminho
merchantIdstringobrigatório

Merchant ID of the client

projectIdstringobrigatório

Project ID of the project

Cabeçalhos
X-OPERATION-IDstring(UUID)= 36 charactersobrigatório

Unique operation ID.

X-HOST-IDstring(UUID)= 36 charactersobrigatório

Unique operator ID.

Corpoapplication/json
shardsinteger(int64)>= 1obrigatório

Number of Shards to charge.

Exemplo: 22
user_idstring(UUID)non-emptyobrigatório

Xsolla Account ID.

Exemplo: "b8fa3003-2448-49fb-bbe2-7f72f420e350"
virtual_currency_skustringnon-emptyobrigatório

Multicurrency SKU

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

Respostas

Operation successful

Corpoapplication/json
balanceobject
Exemplo: {"orbs":1,"shards":5}
Resposta
application/json
{ "balance": { "orbs": 1, "shards": 5 } }
Operações
Operações