コンテンツへスキップ

Metaverse Orbs API (1.0.0)

Metaverse Orbs API

OpenAPI記述をダウンロード
言語
サーバー
Mock server
https://xsolla.redocly.app/_mock/ja/api/metaframe/
http://orbs.babka.com/
操作
操作

Charges Shards from user's balance

リクエスト

Charge shards from user

セキュリティ
Server
パス
merchantIdstring必須

Merchant ID of the client

projectIdstring必須

Project ID of the project

ヘッダー
X-OPERATION-IDstring(UUID)= 36 characters必須

Unique operation ID.

X-HOST-IDstring(UUID)= 36 characters必須

Unique operator ID.

ボディapplication/json
shardsinteger(int64)>= 1必須

Number of Shards to charge.

例: 22
user_tokenstringnon-empty必須

Authentication token of the user whose balance is to charge.

virtual_currency_skustringnon-empty必須

Multicurrency SKU

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

レスポンス

Operation successful

ボディapplication/json
balanceobject
例: {"orbs":1,"shards":5}
レスポンス
application/json
{ "balance": { "orbs": 1, "shards": 5 } }

Charges Shards from user's balance by Xsolla Account ID

リクエスト

Charge shards from user by Xsolla Account ID

セキュリティ
Server
パス
merchantIdstring必須

Merchant ID of the client

projectIdstring必須

Project ID of the project

ヘッダー
X-OPERATION-IDstring(UUID)= 36 characters必須

Unique operation ID.

X-HOST-IDstring(UUID)= 36 characters必須

Unique operator ID.

ボディapplication/json
shardsinteger(int64)>= 1必須

Number of Shards to charge.

例: 22
user_idstring(UUID)non-empty必須

Xsolla Account ID.

例: "b8fa3003-2448-49fb-bbe2-7f72f420e350"
virtual_currency_skustringnon-empty必須

Multicurrency SKU

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

レスポンス

Operation successful

ボディapplication/json
balanceobject
例: {"orbs":1,"shards":5}
レスポンス
application/json
{ "balance": { "orbs": 1, "shards": 5 } }
操作
操作