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
shipment_id*
String
Unique shipment_id of a shipment that already has a reconciliation record.
Headers
Authorization*
String
Set value to Bearer SECRET_KEY
Content-Type
String
Set value to application/json
Request Body
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?