/analyze/async, never for /analyze. Each
202 ends in exactly one of these three notifications:
They use the common envelope and the usual
signature.
A field with no value is not sent (no null arrives): an order_id the request did not include,
or a rejection whose body could not be read, arrive without that key. Treat a missing key as
null.
transaction.analysis.completed
data is the /analyze response plus idempotency_key.
decision.type, as in synchronous mode. With enforced: false
the decision is a recommendation, not an order.
transaction.analysis.rejected
The request was accepted, but there is something for you to fix. code says what
(code table); message is English prose for a log.
transaction.analysis.failed
It failed on our side after all internal retries. code is always INTERNAL and
message is generic.
One notification per 202
- Each
202gets its own notification, with its ownevent_id. Resending a key that was alreadyREJECTEDorFAILEDand that ends the same way again notifies again; resending a key that is alreadyDECIDEDgets its owncompletedwith the stored decision. - A redelivery of the same notification keeps its
event_id: deduplicate byevent_id, not bytransaction_id. - Notifications are at least once. If you get two different ones for a key, the status in
/analysisdecides which one wins.