Skip to main content
POST
/
api
/
checkout
/
token
/
developer
Generate Checkout Token (Developer)
curl --request POST \
  --url https://api.sandbox.paywint.com/api/checkout/token/developer \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --header 'X-Api-Secret: <x-api-secret>' \
  --data '
{
  "amount": 123,
  "email": "jane@example.com",
  "phone": "5550001234",
  "phone_country_code": "+1",
  "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://docs.paywint.com/llms.txt

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

Headers

X-Api-Key
string
required

Your API Key (UUID format). Required to identify and authorize each request

X-Api-Secret
string
required

Secret associated with your API Key. Used for authenticating requests. Keep this secure.

Body

application/json

Token generation request for Inline Checkout (developer initiator).

Notes The developer passes the payer's email OR phone+phone_country_code. The backend resolves or creates the payer user (platform_id=1) and issues the token.

amount
number
required

Payment amount (canonical).

Required range: x <= 100000
email
string<email> | null

Payer email address. Provide this OR phone+phone_country_code.

Example:

"jane@example.com"

phone
string | null

Payer phone number (digits only, no country code). Required if email is not provided.

Required string length: 5 - 20
Example:

"5550001234"

phone_country_code
string | null

Phone country code (e.g. +1). Required if phone is provided.

Required string length: 1 - 10
Example:

"+1"

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