Checkout authorizations
Report a checkout outcome
Tell Agentcard what the merchant did with an auto-approved purchase whose charge Agentcard never sees: charged, declined, or refunded.
POST
An auto-approved purchase that finished with
A purchase takes one charge or one decline, never both. Refunds come after the charge, one per call, and together they never exceed it. Agentcard tells two refunds apart by their references, never by their amount, so two refunds of the same amount need two references. Agentcard appends each report as its own entry, never edits one, and does not verify what you report. Each new entry sends
Read that purchase with Get a checkout authorization: its
charged_kind: "none" returned a card token to the merchant’s page, and the merchant charges that token later from its own server. Report the charge, a failed charge, or each refund here, with the platform access token of the app that created the purchase. See Enable auto-approval.
string
required
The authorization id.
string
required
charged, declined, or refunded. Each outcome takes only the fields listed for it, and any other field is refused.integer
Required on
charged and refunded. A positive amount in the currency’s smallest unit (2306 for $23.06).string
Required on
charged: the purchase’s ISO 4217 code. A refund takes the charge’s currency.string
The processor’s id for the charge, optional on
charged, or for this refund on refunded. Up to 255 characters.string
refunded only. Your own id for this refund when the processor gave you none, the same id on every retry. A refund needs processor_reference, partner_reference, or both.string
declined only, optional. Why the merchant’s charge failed, up to 255 characters.boolean
true when the report repeats an entry Agentcard already holds. The answer is then 200 with that entry, and nothing is added.object
Your account of the purchase so far:
status (unreported, charged, declined, refunded, or partially_refunded), charged_amount, refunded_amount, net_amount, currency, reports, last_reported_at, and reported_by: "partner". Every read of the authorization carries the same object.checkout_authorization.outcome_reported to your webhook endpoints.
Only an auto-approved purchase that finished with charged_kind: "none" takes a report. Agentcard refuses any other purchase and names the facts that answer it:
charged_kind and settlement say what happened to the charge.