Transactions
GET /analysis
Where a /analyze/async request stands, and its decision once there is one
GET /analysis
transactionId is the transaction_id returned by the 202 from
/analyze/async. It requires an X-Api-Key with the
TRANSACTIONS_WRITE scope and only sees your company’s requests. It doesn’t take an X-Idempotency-Key.
It’s the source of truth for the result: the webhook is the notice, this route is the state.
Response
Here nulls are sent (
response: null, code: null), unlike in the
webhooks.
Statuses
REJECTED and FAILED can be resent with the same X-Idempotency-Key once
the cause is fixed.
After you resend a stopped key, the status may keep showing the previous result
(
REJECTED or FAILED) until the new request is picked up. Don’t draw conclusions from a
status read right after resending: wait for the new webhook or query again.Errors
Error envelope:404
A single 404 covers three cases, on purpose:
- The id doesn’t match any of your requests.
- The id belongs to another company: it’s never a
403. - The request is older than what’s retained: 72 hours.
202, before the request shows up as
QUEUED. Retry for a few seconds before concluding the id is wrong.
Reconcile
Once a day, query this route for every acceptedtransaction_id that has no result
in your system. Webhook delivery isn’t guaranteed: this read covers what was lost,
and the state is only kept for 72 hours. See Asynchronous analysis.
Next step: Asynchronous analysis.GET /analysis