Core Concepts

Correlation Keys & Metadata

The key that ties a Tonder payment to your order across the API, webhooks and reports.

Reference field names differ across integration modes. Use this map to keep your reconciliation logic consistent, no matter how you integrate.

Root reference field (you send it in the request)

This is the field that appears in the Dashboard and in Excel reports so you can recognize your orders.

FieldHosted CheckoutSDKAPI Direct
Root field nameexternal_idorderReferenceclient_reference
Appears inDashboard · ExcelDashboard · ExcelDashboard · Excel · Webhook
Arrives in webhook?❌ No❌ No✅ Yes — top-level

Webhook reconciliation (use the metadata fields)

The metadata fields arrive in all formats for all modes.

FieldHosted CheckoutSDKAPI Direct
Recommended namemetadata.external_idmetadata.external_idmetadata.external_id
Other fieldsmetadata.order_id · metadata.customer_id · metadata.business_user(same)(same)
Arrives in webhook?✅ Yes — always✅ Yes — always✅ Yes — always

API Direct is the only mode where the root reference field (client_reference) also arrives in the webhook. For all modes, metadata.external_id is the safest reconciliation key.

Quick reference

ModeRequest field (you send)Webhook field (you read)
Hosted Checkoutexternal_idmetadata.external_id
SDK (any platform)orderReferencemetadata.external_id or metadata.order_id
API Directclient_referenceclient_reference (top-level) + metadata.external_id
Hybridboth, per legboth formats — dedupe on metadata.external_id

Universal rule: populate metadata.external_id on every request — it's the only field guaranteed to arrive in every webhook of every format.

Next steps

Was this page helpful?

On this page