Tikin · Docs
API ReferenceServicesBonuses

Cancelar un lote

POST
/v1/bonus_batches/{batch_id}/cancel

Cancela un lote validating o ready. Uno executing ya no se cancela (409).

Authorization

tenantToken
AuthorizationBearer <token>

Tu token de tenant: tk_live_…. El entorno sandbox llega pronto; los tokens tk_test_ quedarán reservados para él. Scopes: read, lookup, transfers, bonuses, payouts, webhooks. Usa el mínimo.

In: header

Path Parameters

batch_id*string
Formatuuid

Header Parameters

Idempotency-Key*string

UUID tuyo. Reintentar con la misma llave es el MISMO pedido (200 en vez de 201, y la respuesta trae el header Idempotent-Replay: true para que tu observabilidad distinga el replay del original); la misma llave con otro cuerpo — bytes de archivos incluidos — es 409.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/bonus_batches/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel" \  -H "Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "validating",  "source_account": "0b96a69a-83bf-4bb3-9b52-1bfb05c01fa0",  "rows": 0,  "rows_rejected": 0,  "total": {    "raw": "string",    "asset": "COPM"  },  "description": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}