Create a new payment
Documentation Index
Fetch the complete documentation index at: https://docs.zafapay.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication using access token
Payment amount (positive number, supports up to 2 decimal places)
17.62
3-letter currency code (e.g., usd, sgd, jpy)
"usd"
Capture method (uses flow configuration if omitted)
automatic, manual Merchant's order ID
"order_12345"
Flow ID to use (defaults to default flow if omitted)
"flow_abc123"
Payment method (string or object format)
"card"
Additional data to store with the transaction
If true, save card for future recurring payments
true
Use a saved payment method for recurring payment (get from /v1/customers/{id}/payment-methods)
"pmi_abc123"
Cardholder name (required for some payment methods)
"John Doe"
Customer ID (used for saving and retrieving payment methods)
"cust_abc123"
Customer email address
"customer@example.com"
Customer phone number
"+81-90-1234-5678"
Token ID from the JavaScript SDK (tok_ prefix). Used for server-to-server payments. The token is single-use and expires after 30 minutes.
"tok_xxxxxxxxxxxxxxxxxxxxxx"
URL to redirect the customer after 3D Secure authentication. Strongly recommended when using token parameter — without it, the customer has no redirect destination after 3DS.
"https://your-site.com/payment-complete"
Payment created successfully
Payment request ID
"req_abc123"
Status
"pending"
Payment amount
17.62
Currency code
"usd"
Merchant's order ID
"order_12345"
Additional data (empty object if not specified)
{}Payment flow ID used
"flow_default"
Payment type. single: Regular one-time payment, initial: Initial payment with card saving, recurring: Recurring payment using saved card, token: Server-to-server payment using token
single, initial, recurring, token "single"
Hosted checkout page URL (with signature). Returned for hosted checkout payments.
"https://pay.sandbox.zafapay.com/checkout/req_abc123?token=xxxxxxxx"
3D Secure authentication URL. Returned when status is requires_action (token payments only).
"https://pay.sandbox.zafapay.com/3ds/req_abc123?token=xxxxxxxx"
Creation timestamp (ISO 8601 format)
"2025-01-01T00:00:00.000Z"