Skip to main content
They are only sent for /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.
Act on 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.
Fix the cause and resend with the same key.

transaction.analysis.failed

It failed on our side after all internal retries. code is always INTERNAL and message is generic.
Resend with the same key.
A failed can arrive without any record of your request existing, only when we could not read it within the whole retry window. In that case the status is the truth: read /analysis before resending. A retry with the same key repeats the decision if one already exists, or scores if not.

One notification per 202

  • Each 202 gets its own notification, with its own event_id. Resending a key that was already REJECTED or FAILED and that ends the same way again notifies again; resending a key that is already DECIDED gets its own completed with the stored decision.
  • A redelivery of the same notification keeps its event_id: deduplicate by event_id, not by transaction_id.
  • Notifications are at least once. If you get two different ones for a key, the status in /analysis decides which one wins.
Reconciliation: Signature and delivery › Reconcile anyway.