Skip to Content
Saved templates

Cancel a batch

Every row not sent yet is cancelled; envelopes already sent are untouched (void them one by one if needed). A batch that already finished is refused.

POST
/api/v1/bulk-batches/{id}/cancel

Every row not sent yet is cancelled; envelopes already sent are untouched (void them one by one if needed). A batch that already finished is refused.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Workspace API key, e.g. "Authorization: Bearer aflo_live_<64 hex chars>". Keys are hashed at rest and shown only once at creation. A key has scopes: read (GET routes), draft (create or change documents, fields and templates) and send (send, void, remind and bulk send); a call outside them gets 403 insufficient_scope. A key may expire (401 api_key_expired). Keys made before scopes existed have full access.

Path Parameters

id*string

batch_id from POST /templates/{id}/bulk.

Response Body

The batch, cancelled.

application/json
  1. response
success*boolean
data*
Example Request
curl -X POST 'https://appliflo.com/api/v1/bulk-batches/string/cancel'
Example Response
{  "success": true,  "data": {    "batch_id": "string",    "status": "cancelled",    "cancelled": 0,    "counts": {      "total": 0,      "queued": 0,      "sent": 0,      "failed": 0,      "excluded": 0,      "cancelled": 0    }  }}