Contract registry

Integrate through contracts,
not provider assumptions.

Thonem integration boundaries are easier to evolve when each adapter has explicit inputs, outputs, idempotency, error and reconciliation semantics.

TH / CONTRACTS
INPUTValidate
ACTIONExecute
EVENTVerify
RECONRecover
PAYMENT

Payment adapter

Internal checkout creates a provider request through a narrow adapter. Provider state is translated back into internal payment/order state.

inputamount, currency, order/customer reference
returnprovider reference + actionable state
eventverified callback/webhook
reconcilequery provider truth after uncertainty
SHIPPING

Carrier adapter

Shipment creation, labels, tracking and cancellation remain provider-specific while commerce workflows use normalized internal concepts.

inputshipment, address, package, service level
returnshipment reference + label/tracking data
eventtracking/status update
fallbackmanual/retry path when automation fails
ERP / CRM

Business-system sync

Synchronization defines source-of-truth ownership per field or event instead of assuming bidirectional sync is always correct.

ownershipsystem of record by domain
mappingidentifiers and normalized values
retrybounded queue/replay semantics
audittraceable sync result
PUBLIC MODEL

Descriptors, not secrets

The machine-readable contract file documents categories and required implementation decisions. It contains no credentials, live endpoints or private provider configuration.