API reference

Cancel a confirmation

Stops the plan, hangs up any live call and closes the confirmation as cancelled.

POST/v1/confirmations/{id}/cancel

Use 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

idstringrequired

The confirmation's id.

Returns

200 OK with the updated confirmation:

  • status is cancelled and outcome stays as it was (usually null);
  • every pending step becomes cancelled;
  • a call in progress is hung up;
  • a system event records "Cancelled by API.";
  • a confirmation.updated webhook is sent, if you set a webhookUrl.

Errors

StatuserrorWhen
404No confirmation with that id.The id doesn't exist
409This 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.