https://api.veriko.mx/v1/validations/{id}/cancel-retriesCancel pending retries
How-to guide →Stops a validation's automatic retry cycle. The first call responds 200 with terminal_state: 'cancelled'; a second one, with no active cycle left, responds 422 retry_not_active. That difference is deliberate: cancelling something that is not running is not a no-op, it is a sign that the state was not what the caller believed. The Idempotency-Key header is optional and keeps a network failure from turning one cancellation into two.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id* | path | string (uuid) | required | Validation UUID. |
Idempotency-Key | header | string | optional | Optional client-generated key (Stripe-style) that guarantees the request is processed exactly once within a 24-hour TTL. The scope is 11111111-2222-3333-4444-555555555555 |
curl -X POST 'https://api.veriko.mx/v1/validations/{id}/cancel-retries' \
-H 'Authorization: Bearer veriko_••••' \
-H 'Content-Type: application/json'Python example — coming soon.
JavaScript example — coming soon.
PHP example — coming soon.
| Field | Type | Description |
|---|---|---|
retry_state | object | Full retry cycle state, included in the individual validation response ( |
enabled | boolean | Whether the retry cycle is active for this validation. e.g.true |
max_retries | integer | nullnullable | Configured maximum number of retries. The upper bound depends on the plan ( 3 |
interval_seconds | integer | nullnullable | Interval between retries in seconds (300–86400). 600 |
outcomes | array | nullnullable | Validation outcomes that trigger a retry ( ["not_found","cep_unavailable","error"] |
attempts_completed | integer | Number of retries completed so far. e.g.1 |
next_attempt_at | TimestampUTC | null | Timestamp of the next scheduled retry. |
resolved_at | TimestampUTC | null | Timestamp when a retry resolved the validation to |
exhausted_at | TimestampUTC | null | Timestamp when retries were exhausted without resolution. |
cancelled_at | TimestampUTC | null | Timestamp when the cycle was explicitly cancelled. |
terminal_state | string | nullnullable | Terminal state of the cycle: pending |
| Status | Class | Description | Body |
|---|---|---|---|
| 200 | 2xx | Retry cycle cancelled. retry_state.terminal_state is now cancelled. | No body |
| 401 | 4xx | Authentication is required or the provided credentials are invalid. | ErrorResponse |
| 403 | 4xx | Insufficient permissions. | ErrorResponse |
| 404 | 4xx | Validation not found or not owned by the user (not_found). | ErrorResponse |
| 422 | 4xx | No active retry cycle to cancel (code retry_not_active). Invalid UUID (invalid_uuid). | ErrorResponse |
| Header | Type | Description |
|---|---|---|
Idempotent-Replayed | string | Only present when the client sent Idempotency-Key. true when the response is a replay from the idempotency cache (24h TTL per user+endpoint+key). |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | Invalid or missing authentication credentials. Envelope
|
| 403 | forbidden | You do not have permission to access this resource. Envelope
|