post

/v2/project/{project_id}/payment/item/{item_sku}

Creates an order with a specified item. The created order will be given a “new” order status. To open the payment UI in a new window, use the following link: https://secure.xsolla.com/paystation2/?access_token=ACCESS_TOKEN, where ACCESS_TOKEN is the received token. For testing purposes, use this URL: https://sandbox-secure.xsolla.com/paystation2/?access_token=ACCESS_TOKEN.

Authorization

apiKey - Authorization

Request Parameters

2 Path Parameters

Request Body

Schema
object
$schema: http://json-schema.org/draft-04/schema#
currency
string

The currency which prices are displayed in (USD by default). Three-letter currency code per ISO 4217.

1 validation
locale
string

Response language.

1 validation
sandbox
boolean

Creates an order in the sandbox mode. The option is available for the company users only.

1 validation
settings
object

Custom project settings.

custom_parameters
object

Project specific parameters.

Responses

order was successfully created.

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
order_id
integer

Order ID.

token
string

Payment token.

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
project_id
item_sku
$$.env
Authorization