For the complete documentation index, see llms.txt. This page is also available as Markdown.

Simulate Reconciliation Webhook

Queue a reconciliation webhook against one of your own shipments, for testing your integration.

/reconciliation/mock/:shipment_id

POST https://api.terminal.africa/v1/reconciliation/mock/:shipment_id

This endpoint queues a real reconciliation.flagged, reconciliation.billed or reconciliation.corrected webhook, built from the reconciliation record that already exists on one of your own shipments. Use it to exercise your webhook handler without waiting for a discrepancy to be raised.

Path Parameters

Name
Type
Description

shipment_id*

String

Unique shipment_id of a shipment that already has a reconciliation record.

Headers

Name
Type
Description

Authorization*

String

Set value to Bearer SECRET_KEY

Content-Type

String

Set value to application/json

Request Body

Name
Type
Description

correction_type

String

reconciliation.corrected only. voided or replaced — which correction shape to send when the shipment has no real correction to replay. Optional; a shipment that really was corrected replays what actually happened, and anything else defaults to voided.

event*

String

The event to send. One of reconciliation.flagged, reconciliation.billed or reconciliation.corrected.

{
    "event": "reconciliation.flagged"
}
{
    "event": "reconciliation.corrected",
    "correction_type": "replaced"
}

Was this helpful?