Skip to main content

Cancel Interchange

Cancel an outbound interchange that has not yet been delivered to the recipient.

Endpoint

POST /v2/interchanges/cancel/{id}

Path Parameters

ParameterTypeRequiredDescription
idlongYesThe unique ECGrid Interchange ID to cancel.
caution

Only outbound interchanges that have not yet been delivered can be cancelled. Attempting to cancel an already-delivered or inbound interchange will return an error.

Response

Returns a boolean indicating whether the cancellation was successful.

{
"success": true,
"data": true
}

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/interchanges/cancel/$ID" \
-H "X-API-Key: $ECGRID_API_KEY"

See Also