Xsolla-logo

Charges Shards from user's balance

post/v2/merchants/{merchantId}/projects/{projectId}/multicurrency-charge

Charge shards from user

SecurityServer
Request
path Parameters
merchantId
required
string

Merchant ID of the client

projectId
required
string

Project ID of the project

header Parameters
X-OPERATION-ID
required
string <UUID> = 36 characters

Unique operation ID.

X-HOST-ID
required
string <UUID> = 36 characters

Unique operator ID.

Request Body schema: application/json
shards
required
integer <int64> >= 1

Number of Shards to charge.

user_token
required
string non-empty

Authentication token of the user whose balance is to charge.

virtual_currency_sku
required
string non-empty

Multicurrency SKU

Responses
200

Operation successful

400

Bad request

401

Unauthorized

404

User not found

409

Low balance

422

Unprocessable entity

Request samples
application/json
{
  • "shards": 22,
  • "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJ....LGH2xCeJHxl8u8Xn2aI=",
  • "virtual_currency_sku": "blue_orb_point"
}
Response samples
application/json
{
  • "balance": {
    }
}