Skip to main content
POST
/
api
/
checkout
/
token
/
platform
Generate Checkout Token (Platform)
curl --request POST \
  --url https://api.sandbox.paywint.com/api/checkout/token/platform \
  --header 'Content-Type: application/json' \
  --header 'X-Platform-ID: <x-platform-id>' \
  --header 'X-Signature: <x-signature>' \
  --data '
{
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 123,
  "currency": "USD"
}
'
{
  "success": true,
  "message": "Operation completed.",
  "data": {
    "checkout_token": "<string>",
    "expires_at": "2023-11-07T05:31:56Z"
  },
  "queryGeneratedTime": 1718006400
}

Documentation Index

Fetch the complete documentation index at: https://developer.paywint.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-Platform-ID
string<uuid>
required

Unique platform identifier (UUID). You receive this during onboarding. Must be sent with every API request.

X-Signature
string
required

HMAC-SHA256 request signature for authentication. Use your platform secret key to compute it as: METHOD + PATH + QUERY + BODY_HASH.

Body

application/json

Token generation request for Inline Checkout.

Notes Amount and currency are merchant-controlled for Inline Checkout. They are provided by the initiator backend when requesting the token and stored server-side keyed by the checkout nonce.

user_id
string<uuid>
required

Payer (end-user) UUID.

amount
number
required

Payment amount (canonical).

Required range: x <= 100000
currency
string
default:USD

Payment currency code (canonical).

Required string length: 3 - 10

Response

Successful Response

success
boolean
default:true

Indicates whether the request was processed successfully.

Example:

true

message
string
default:Success

A short, human-readable message describing the result of the request.

Example:

"Operation completed."

data
CheckoutTokenResponse · object

The main response payload, if applicable

queryGeneratedTime
number | null
default:1778161546.973489

The Unix timestamp (in seconds) indicating when the response was generated.

Example:

1718006400