akwitoEU VAT proof

GET /v1/requests/{id}

Reads the state of a background request. Requests belonging to another account are 404 NOT_FOUND, never 403.

The response always carries request_id, status, vat_number, country, mode, created_at, attempts_log and availability. The rest depends on status:

statusAdditional fields
pendingretry_after, provisional, checks, warnings, poll_url
donecheck_id, and check — byte-for-byte the body of GET /v1/checks/{check_id}
failedreason, and last_error when an upstream diagnostic was recorded

reason is the contractual cause of the abandon: VALIDATION_UNAVAILABLE when VIES never answered within 24 hours, ACCOUNT_DISABLED or BAD_REQUEST when replaying the request can no longer succeed. While the account is scheduled for deletion, a pending request is paused rather than failed: it is not replayed, and resumes within the hour if the deletion is cancelled; the 24-hour limit still applies. last_error is the last upstream error code seen; it is informative only, and a failure may legitimately carry none.

attempts_log holds one entry per upstream attempt, oldest first. The first one is the synchronous attempt that produced the 202; the others are the automatic retries. error is the upstream diagnostic of that attempt, and is empty on the attempt that finally succeeded. A reschedule that attempted nothing — an exhausted monthly quota — adds no entry.

availability is the VIES availability measured by our own probe for the country of the request, over the waiting window, frozen when the request was closed. It is null while the request is still pending. probe_ok and probe_ko both zero means we have no measurement for that window, not that VIES was available.

json
{
  "request_id": "req_01J9ZK8H2Q3M4N5P6R7S8T9V0W",
  "status": "done",
  "vat_number": "FR81775670417",
  "country": "FR",
  "mode": "lookup",
  "created_at": "2026-09-11T10:00:00Z",
  "check_id": "chk_01J9X0000000000000000000",
  "attempts_log": [
    { "at": "2026-09-11T10:00:00Z", "error": "MS_UNAVAILABLE" },
    { "at": "2026-09-11T10:01:05Z", "error": "MS_MAX_CONCURRENT_REQ" },
    { "at": "2026-09-11T10:06:05Z", "error": "" }
  ],
  "availability": {
    "country": "FR",
    "from": "2026-09-11T10:00:00Z",
    "to": "2026-09-11T10:06:05Z",
    "probe_ok": 1,
    "probe_ko": 2
  }
}

A request is retried with a 1, 2, 4, 8 then 15 minute backoff for up to 24 hours. After that it becomes failed.