Relationship fields
These optional fields appear in transaction detail, transaction lists, andcard.transaction webhooks after the relationship is verified.
The API uses
id for the record’s own transaction ID. Webhooks use data.transaction_id. Relationship fields always contain public Swerv transaction IDs, not card IDs or references.
Example: one $25 purchase
The following examples use fictional identifiers and show selected response fields. Before settlement, the original purchase authorization isAPPROVED. This is not settlement evidence.
COMPLETED and links to the settlement:
Recommended reconciliation flow
- Upsert each transaction using its own
idfrom the API ordata.transaction_idfrom a webhook. - When a settlement includes
original_transaction_id, attach it to that authorization in your payment record. Use the completed settlement as settlement evidence. - When the authorization includes
settlement_transaction_id, close its processing state and retain both records for audit. Their IDs and references remain unchanged. - Accept duplicate deliveries and updates in either order. If the linked record is missing locally, fetch it from
GET /cards/{id}/transactions/{transactionId}. - If an older notification conflicts with a completed, linked authorization, fetch the current API record before changing your local state. Do not reopen a payment based only on a stale
APPROVEDevent.
card.transaction notifications contain the same linking fields as the API. A linking update does not create another charge or adjust the card balance.
Missing links and scope
Fields are omitted when no relationship has been verified; absence of a link does not prove that two records are separate purchases. Do not infer a relationship solely from merchant, amount, date, or similar references. Fetch the latest records and contact support if reconciliation remains unresolved. Automatic linking currently covers verified, full-amount purchase settlements on the same card with matching currency. Do not apply this one-to-one model to partial or multiple settlements, refunds, or reversals without an explicit supported relationship.COMPLETED on other transaction categories, such as funding, is not purchase-settlement evidence.