Xsolla-logo

Create payment token by server

post/v2/project/{project_id}/admin/payment

Creates a new payment token by server.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

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

Custom project settings.

object or null [ 1 .. 200 ] properties

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

Responses
200

Successful purchase.

401

Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.

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