← Back to schema index

ValidationQueued

Asynchronous response from `POST /v1/validate?async=1` and `POST /v1/validate-ocr?async=1`, and from the same operations without `?async=1` when the Banxico query takes longer than 45 seconds. Contains the queued validation and the data needed to retrieve its result from `GET /v1/validations/{id}`.

Properties

FieldTypeDescription
dataobject

JSON:API wrapper for the queued resource.

typestring

JSON:API resource type. Always validation.

idstring (uuid)

Unique identifier of the created validation (UUID v4), usable in GET /v1/validations/{id}.

attributesobject

Fields of the queued resource.

validation_idstring (uuid)

UUID of the validation (identical to data.id).

statusstring

Immediate status after queuing: queued with ?async=1 and processing when the Banxico query had already started and took longer than 45 seconds (meta.async_reason is sync_deadline).

etag_versioninteger

Initial resource version for conditional polling with If-None-Match. Sending it as an ETag avoids unnecessary responses when the status has not changed.

enqueued_atstring (date-time)

ISO 8601 timestamp in UTC with an explicit Z suffix; for example, "2026-05-01T05:14:38Z". The *_at, *_end, *_start, and *_date fields follow this format. meta.datetime describes the same contract in the response.

expires_atstring (date-time)

ISO 8601 timestamp in UTC with an explicit Z suffix; for example, "2026-05-01T05:14:38Z". The *_at, *_end, *_start, and *_date fields follow this format. meta.datetime describes the same contract in the response.

retry_stateobject

Automatic retry cycle state at queue time. Always present; if neither a body retry_policy nor a user default policy was provided, enabled=false and policy fields are null.

enabledboolean

true when the validation has retries configured, even if its cycle has already ended (terminal_state).

max_retriesinteger | null

Configured maximum number of retries; null when enabled is false.

interval_secondsinteger | null

Interval between retries in seconds, from 300 to 86400; null when enabled is false.

outcomesarray | null

Outcomes that trigger a retry: not_found, cep_unavailable, and error; null when enabled is false.

attempts_completedinteger

Number of retries completed so far.

next_attempt_atTimestampUTC | null

Date of the next retry; null when none is scheduled.

resolved_atTimestampUTC | null

Date when a retry produced valid; null until that occurs.

exhausted_atTimestampUTC | null

Date when attempts were exhausted; null until that occurs.

cancelled_atTimestampUTC | null

Cycle cancellation date; null until that occurs.

terminal_statestring | null

Cycle state: pending, resolved, exhausted, or cancelled. It is null when the validation has no retry cycle.

client_refstring

Reference of your own sent in the request (client_ref), returned as sent. It only appears when the request included it.

metaobject

Control metadata for the polling flow.

field_names_noticeobject

Field-name change notice. It only appears on POST /v1/validate, POST /v1/validate-ocr, GET /v1/validations, GET /v1/validations/{id}, POST /v1/validations/{id}/recheck, GET /v1/summary and GET /v1/finance/summary, the same operations that send the Deprecation and Sunset headers. With legacy_request_fields, the request used Spanish field names; it is also sent on error responses. With legacy_response_fields, the request used English names only and the notice refers to the Spanish fields the response duplicates; it is sent on successful responses only.

code*string

Notice type. legacy_request_fields: the request used Spanish field names. legacy_response_fields: the response includes duplicated Spanish fields that will stop being sent.

message*string

Notice text, in the response language (Accept-Language).

sunset*string (date)

Cut-off date, the same one the Sunset header announces.

documentation_url*string (uri)

Migration guide to the English names, in the response language.

legacy_fieldsarray

Spanish names the request sent. Only with legacy_request_fields.

quotaobject

Validation quota as it stood after this request. Only present on responses that check or charge the quota (direct, OCR and asynchronous validations, also on the 429 for an exhausted quota) and it says the same as the X-Quota-* headers. limit and remaining are the hard cap, where service stops; included and included_remaining are what the plan includes at no extra charge, and overage_used is what went past that and is billed separately.

kind*string

Where the quota comes from: cycle (the subscription cycle) or trial (the initial trial of an account that has not claimed its plan).

included*integer

Validations included in the cycle. Equal to limit when the plan does not separate what is included from the cap.

used*integer

Validations consumed in the cycle, counting this one.

included_remaining*integer

Included validations left at no extra charge (max(0, included - used)).

overage_enabled*boolean

true when overage is enabled: you can validate above included, up to limit, billed separately.

overage_used*integer

Validations above included in the cycle; billed separately at the end of the period. 0 without overage.

limit*integer

Hard cap of the cycle, equal to X-Quota-Limit.

remaining*integer

Validations left before the cap, equal to X-Quota-Remaining.

resets_at*string (date-time)

ISO 8601 timestamp in UTC with an explicit Z suffix; for example, "2026-05-01T05:14:38Z". The *_at, *_end, *_start, and *_date fields follow this format. meta.datetime describes the same contract in the response.

async_reasonstring

Reason for a 202 response to a request without ?async=1. sync_deadline: the Banxico query took longer than 45 seconds and the validation continues in the background. It only appears in that case.

next_poll_after_secondsinteger

Recommended seconds to wait before the first poll to GET /v1/validations/{id}. Polling before this interval can trigger the request limit.

playgroundboolean

true when the validation belongs to the playground. Field reserved for compatibility: current asynchronous responses omit it, because the playground does not queue validations.

Used in operations

  • POST /v1/validate
  • POST /v1/validate-ocr