Xsolla-logo

Create payment token

post/v2/project/{project_id}/payment

Creates a new payment token.

Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
Request Body schema: application/json
required
object
object

Custom project settings.

custom_parameters
object
Default: {"character_id":"ingameUsername"}

Your custom parameters represented as a valid JSON set of key-value pairs.

Responses
200

Successful purchase.

401

Authentication not passed or wrong.

Request samples
application/json
{
  • "purchase": {
    }
}
Response samples
application/json
{
  • "token": "huooAqbXBSJxB8Q4dYBqJp4ybiInqsPb"
}