Xsolla-logoXsolla Developers
or
To Publisher Account

Create order for paid offer chain stepClient-side

post/v2/project/{project_id}/user/offer_chain/{offer_chain_id}/step/number/{step_number}/order

Creates an order for the item associated with the specified paid offer chain step. The created order gets the new order status.

To open the payment UI in a new window, use the following link: https://secure.xsolla.com/paystation4/?token={token}, where {token} is the received token.

For testing purposes, use this URL: https://sandbox-secure.xsolla.com/paystation4/?token={token}.

Notice

This method must be used on the client side. The user's IP address is used to determine the country, which affects the currency and available payment methods. Using this method from the server side may result in incorrect currency detection and affect payment methods in Pay Station.

Notice

Use this call only for paid offer chain steps. For free steps, use the Claim free offer chain step call instead.
SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

Example: 44056
offer_chain_id
required
integer

Offer chain ID.

Example: 101
step_number
required
integer

Offer chain step number.

Example: 1
Responses
200

Order was successfully created.

401

Authentication not passed or wrong.

404

Either the offer chain or the step was not found.

422

The step cannot be purchased.

Request samples
Response samples
application/json
{
  • "order_id": 641,
  • "token": "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo"
}