Xsolla-logo

Grant items by purchases to users

post/v2/project/{project_id}/inventory/purchase

Adds the specified items by purchase to the specified user inventories.

Attention

Only 50 operations can be processed at once. Operations that exceed this limit will be ignored.
SecuritybasicAuth
Request
path Parameters
project_id
required
integer
Default: 44056

Project ID.

Request Body schema: application/json
Array
required
object
required
Array of objects non-empty
required
object
comment
string [ 1 .. 255 ] characters
Default: "Monthly challenge rewards"

Operation description. For example: "Monthly challenge rewards".

platform
string
Default: "xsolla"

Publishing platform the user plays on.

Enum: "playstation_network" "xbox_live" "xsolla" "pc_standalone" "nintendo_shop" "google_play" "app_store_ios" "android_standalone" "ios_standalone" "android_other" "ios_other" "pc_other"
object [ 1 .. 200 ] properties

Project specific parameters.

Responses
200

Successful user purchase.

422

Unprocessable Entity.

Request samples
application/json
[
  • {
    }
]
Response samples
application/json
{
  • "count": 2,
  • "operations": [
    ]
}