API reference
Cancel a confirmation
Stops the plan, hangs up any live call and closes the confirmation as cancelled.
POST
/v1/confirmations/{id}/cancelUse this when the job itself has changed: the order was cancelled, the delivery was moved in your own system, or it was confirmed another way. Nothing more is sent to the customer.
Path parameters
idstringrequiredThe confirmation's
id.
Returns
200 OK with the updated confirmation:
statusiscancelledandoutcomestays as it was (usuallynull);- every
pendingstep becomescancelled; - a call in progress is hung up;
- a
systemevent records "Cancelled by API."; - a
confirmation.updatedwebhook is sent, if you set awebhookUrl.
Errors
| Status | error | When |
|---|---|---|
404 | No confirmation with that id. | The id doesn't exist |
409 | This confirmation is already closed. | It already has an outcome, or was already cancelled |
A confirmation that has closed with an outcome can't be cancelled. If the job changes after that, update it in your own system; the customer has already had their answer.
Base URL https://api.anyonein.co.uk/v1 is a placeholder until the production domain is confirmed. Found a mistake? Tell us.