The payment intent object
A payment to be taken on one of your terminals, and its lifecycle.
A payment to be taken on one of your terminals, and its lifecycle.
Endpoints
GET /v1/payment_intents: List payment intentsPOST /v1/payment_intents: Create a payment intentGET /v1/payment_intents/{id}: Retrieve a payment intentPOST /v1/payment_intents/{id}/cancel: Cancel a payment intent
Attributes
idstringUnique identifier (
pi_…).objectstringlivemodebooleanamountintegerAmount to charge (USDC atoms).
currencystringstatusstringOne of:
requires_payment_method,requires_action,processing,succeeded,canceledrequires_payment_method: waiting for a tap (again, after a failed attempt).requires_action: held for payer confirmation (next_action).processing: settlement sent, outcome pending — never retry.succeeded: settled (paymentonce indexed).canceled: nothing was or will be charged.terminalstringTerminal that takes the payment (
tml_…).order_idstringdescriptionstring | nullmetadataobjectsourcestringOne of:
api,terminalCreated by your server (
api) or by the POS (terminal).paymentstring | nullThe settled payment (
pay_…), once indexed.tx_hashstring | nullSettlement transaction hash, once sent.
next_actionobject | nullAttributes of next_action
typestringThe payer must confirm the payment in the ZyloPay app.
reason_codestring | nullOne of:
AMOUNT_ABOVE_THRESHOLD,RISK_FLAGGED,FIRST_MERCHANT_PAYMENT,CUMULATIVE_LIMITWhy confirmation is needed.
expires_atstring (date-time) | nullThe confirmation request expires at this time.
last_payment_errorobject | nullWhy the last attempt failed. Cleared on success.
Attributes of last_payment_error
codestringMachine-readable reason (see the payment error codes in the API reference).
messagestring
cancellation_reasonstring | nullOne of:
requested_by_merchant,canceled_at_terminal,expired,step_up_denied,step_up_expiredcanceled_atstring (date-time) | nullWhen the intent was canceled.
networkstringOne of:
mainnet,testnetexpires_atstring (date-time)The intent can no longer be paid after this time.
createdstring (date-time)Creation time.
Example
{
"id": "pi_3f2c9e1a7b6d4c0e9f8a1b2c3d4e5f60",
"object": "payment_intent",
"livemode": false,
"amount": 2500000,
"currency": "usdc",
"status": "requires_payment_method",
"terminal": "tml_ZP-4821-K",
"order_id": "A7K2Q9XZ",
"description": "Table 12",
"metadata": {
"pos_order": "48213"
},
"source": "api",
"payment": null,
"tx_hash": null,
"next_action": null,
"last_payment_error": null,
"cancellation_reason": null,
"canceled_at": null,
"network": "testnet",
"expires_at": "2026-09-28T14:04:11.000Z",
"created": "2026-09-28T14:02:11.000Z"
}