Xsolla-logo
  • 文档
  • 创建帐户

Update info about automatic purchase

put/v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup

Updates information about automatic purchase.

SecurityServer
Request
path Parameters
merchantId
required
string

Merchant ID of the client

projectId
required
string

Project ID of the project

userId
required
string <UUID> = 36 characters

Unique User ID.

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

Unique operator ID.

Request Body schema: application/json
Array of objects
Array
virtual_currency_sku
required
string

Virtual Currency SKU.

enabled
boolean

Whether automatic purchase of Blue Orbs is enabled for the user.

Responses
200

Information about automatic purchase.

400

Bad request

401

Unauthorized

404

User not found

422

Unprocessable entity

Request samples
application/json
{
  • "items": [
    ]
}
Response samples
application/json
{
  • "items": [
    ]
}