콘텐츠로 건너뛰기
OpenAPI 설명 다운로드
언어
서버
Mock server
https://xsolla.redocly.app/_mock/ko/api/metaframe/
http://orbs.babka.com/
작업
작업

요청

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/ko/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/ko/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 } }
작업
작업