Xsolla-logo
  • 文档
  • 创建帐户

Charges Shards from user's balance by Xsolla Account ID

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

Charge shards from user by Xsolla Account ID

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_id
required
string <UUID> non-empty

Xsolla Account ID.

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,
  • "user_id": "b8fa3003-2448-49fb-bbe2-7f72f420e350",
  • "virtual_currency_sku": "blue_orb_point"
}
Response samples
application/json
{
  • "balance": {
    }
}