Skip to main content

Response ID Fields

Technical Author Note

Drafted from sample content. Verify all field names, request/response examples, and status values against the OpenAPI spec or a real API response before publication.

The gateway returns several ID fields, and the same logical concept appears under different names depending on the operation. This page is the definitive mapping.

Naming asymmetry

  • initial_operation_id appears only on originating direct-payment responses (sale, pre-auth, payout, funding).
  • parent_operation_id appears on all back-office responses (capture, reverse, cancel) and links back to the originating authorisation/transfer.
  • The top-level id always identifies the object returned in that specific response — never the same as initial_operation_id or parent_operation_id.

Per-operation mapping

OperationResponse fieldStore asPurpose
Saleidpayment_idPayment object UUID — used in the /reverse URL
Saleinitial_operation_idtransfer_idInternal transfer ID
Pre-Authidpayment_idUsed in /capture and /cancel URLs
Pre-Authinitial_operation_idauthorisation_idInternal authorisation ID
Captureidtransfer_idTransfer operation UUID created by this capture
Captureparent_operation_idauthorisation_idEchoes the pre-auth's ID — confirms linkage
Reverseidtransfer_idTransfer operation UUID for this reversal
Reverseparent_operation_id(not stored)Informational — echoes authorisation_id
Reverseauthorisation_idauthorisation_idConditional — present only when offline refunds are not allowed
Cancelidcancel_idUUID of the void operation
Cancelparent_operation_idauthorisation_idEchoes the pre-auth's ID — confirms which pre-auth was voided
Payoutidpayment_idPayment object UUID
Payoutinitial_operation_idtransfer_idInternal transfer ID
Funding (AFT)idpayment_idPayment object UUID
Funding (AFT)initial_operation_idtransfer_idInternal transfer ID

Key rules

  • Never overwrite payment_id from a back-office response. Capture, cancel and reverse return their own id (the operation's UUID), not the payment's. The original payment_id is the URL path parameter for the lifetime of that payment.
  • transfer_id, authorisation_id and cancel_id are for reconciliation and tracing, not for URL construction. Back-office endpoints only need payment_id in the URL.
  • Capture and Cancel re-confirm authorisation_id via parent_operation_id.