Xsolla-logo

Create manual purchase

post/v2/merchants/{merchantId}/projects/{projectId}/purchase

Creates a manual purchase.

SecurityBearer
Request
path Parameters
merchantId
required
string

Merchant ID of the client

projectId
required
string

Project ID of the project

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

Unique operator ID.

X-GEOIP-COUNTRY
string

Determine country based on user's ip

X-IFRAME-HOST-ORIGIN
string <uri>

Determine parent payment page

Request Body schema: application/json
package_item_sku
string

Package Item SKU.

ps_ui_close_button
boolean

PayStation 4 UI close button.

ps_ui_locale
string

PayStation 4 UI lanugage

Enum: "en" "de" "es" "ja" "ko" "pt" "cn" "ru"
ps_ui_theme
string

PayStation 4 appearance.

quantity
integer <int64> >= 1

Number of items.

Responses
200

Operation success

400

Bad request

401

Unauthorized

404

User not found

422

Unprocessable entity

Request samples
application/json
{
  • "package_item_sku": "xxx-xxx-xxx",
  • "ps_ui_theme": "babka_dark",
  • "quantity": 1
}
Response samples
application/json
{
  • "order_id": "641,",
  • "token": "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo"
}