Download OpenAPI specification:Download
Payment API flow: create payment (hosted checkout), webhooks (payment status updates), and get payment by id (amount, status, etc.).
Create a payment session (hosted checkout). Returns checkout_url and token. Redirect the customer to checkout_url to complete payment. Requires API key with checkout:create scope.
| billing_country required | string <= 2 characters |
| billing_postal_code | string |
| billing_first_name required | string <= 100 characters |
| billing_last_name required | string <= 100 characters |
| billing_email required | string <email> |
| billing_phone | string |
| currency required | string Enum: "USD" "EUR" |
required | Array of objects or objects (ProductItem) |
| successUrl | string <uri> |
| failedUrl | string <uri> |
| cancelUrl | string <uri> |
{- "billing_country": "US",
- "billing_postal_code": "string",
- "billing_first_name": "string",
- "billing_last_name": "string",
- "billing_email": "user@example.com",
- "billing_phone": "string",
- "currency": "USD",
- "products": [
- {
- "id": "string",
- "quantity": 1
}
],
}{- "token": "string",
- "expires_at": 0
}Retrieve a payment by its public ID (e.g. TXabc123) or numeric ID. Returns amount, status, currency, products, and timestamps. Requires API key.
| id required | string Payment ID — use public ID (e.g. TXabc123) or numeric transaction ID |
{- "id": "string",
- "amount": "99.00",
- "status": "string",
- "currency": "USD",
- "payer_email": "user@example.com",
- "products": [
- {
- "id": "string",
- "name": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}