Cancelar um lote
curl --request POST \
--url https://api.validator.blubash.io/v1/batches/{id}/cancel \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/batches/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/batches/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"charged": "23.8400",
"completed_at": "2026-12-01T14:09:41.000Z",
"country_calling_code": "55",
"country_counts": {
"55": 1200
},
"created_at": "2026-12-01T14:00:00.000Z",
"duplicates": 20,
"id": "bat_01JF3S4D6F8H0K2M4P6R8T0V2X",
"invalid": 30,
"not_registered": 322,
"poll_after_seconds": null,
"registered": 870,
"reject_code": null,
"reserved": "24.0000",
"source": "upload",
"status": "completed",
"submitted_at": "2026-12-01T14:02:10.000Z",
"total": 1250,
"unit_price": "0.0200",
"unknown": 8,
"upload": null,
"upload_expires_at": "2026-12-01T14:15:00.000Z",
"valid": 1200
}Lotes
Cancelar um lote
Cancela um lote que ainda não começou a ser processado: em awaiting_upload, ou em queued antes do envio para processamento. A reserva, se houver, volta ao saldo. Em qualquer outro estado responde 409.
Escopo exigido: batches. Bloqueada para workspace suspenso (403 workspace_suspended).
POST
/
v1
/
batches
/
{id}
/
cancel
Cancelar um lote
curl --request POST \
--url https://api.validator.blubash.io/v1/batches/{id}/cancel \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/batches/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/batches/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"charged": "23.8400",
"completed_at": "2026-12-01T14:09:41.000Z",
"country_calling_code": "55",
"country_counts": {
"55": 1200
},
"created_at": "2026-12-01T14:00:00.000Z",
"duplicates": 20,
"id": "bat_01JF3S4D6F8H0K2M4P6R8T0V2X",
"invalid": 30,
"not_registered": 322,
"poll_after_seconds": null,
"registered": 870,
"reject_code": null,
"reserved": "24.0000",
"source": "upload",
"status": "completed",
"submitted_at": "2026-12-01T14:02:10.000Z",
"total": 1250,
"unit_price": "0.0200",
"unknown": 8,
"upload": null,
"upload_expires_at": "2026-12-01T14:15:00.000Z",
"valid": 1200
}Authorizations
Response
O lote, agora cancelled.