Authorize · Guide
Review orders
When a customer approves a cart, your after-approval rules run once before the token is minted. A rule with the Review action holds the order: the customer said yes, and the order waits for your decision. This guide covers deciding it from your own admin, from the console, and what happens when nobody does.
Before you begin: after-approval rules run on every plan. Every account has the default rows below; to change them, see set your checkout rules. The decision itself is free.
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
- The customer approveswith a passkey on the approval page
- Your after-approval rulesapprove, review or reject
- You decideyour API, the console, or the timeout
1. When an order waits for you
The default rows hold an order when the customer approves from somewhere that doesn't match the billing address you sent:
| Order | Rule id | When | Then |
|---|---|---|---|
| 3 | rul_ | approval. eq declined | Reject |
| 4 | rul_ | approval. eq matches_ | Approve |
| 5 | rul_ | approval. in differs, unavailable | Review |
An order sent without billing_address reads no_billing and matches none of these rows, so it is approved when the customer says yes. An integration that doesn't send billing addresses never meets a review.
A held order stays a challenge on its checkout assessment, with challenge.status: "in_review", reason: "policy_review", the rule that held it in policy, and how the customer approved in approval_context. No token exists yet. Your endpoint gets authorize.checkout_assessment.updated, the assessment itself:
{
"object": "checkout_assessment",
"id": "cas_01M7JD3RF2X8N4PQ6T0VZKWG8M",
"outcome": "challenge",
"previous_outcome": "challenge",
"reason": "policy_review",
"policy": {
"id": "pol_AC2A5612965B31B91188589F91",
"version": 3,
"rule": {
"id": "rul_default_location_differs",
"name": "Location doesn't match billing",
"phase": "after_approval",
"action": "review",
"conditions": [{ "fact": "approval.location", "op": "in", "value": ["differs", "unavailable"], "actual": "differs" }]
}
},
"challenge": { "channel": "agent_relay", "sent_to": null, "status": "in_review", "expires_at": "2026-11-17T14:47:02.114Z" },
"approval_context": { "object": "approval_context", "subject": { "type": "checkout_approval", "id": "coap_01M7JD3RFRNGQ5742W9ZZKWG8M" }, "decision": "approved" },
"order_id": "ord_8817",
"updated_at": "2026-11-16T14:47:02.114Z"
}
challenge.expires_at is when the review times out. The webhook's approval_context.billing is always null; your own read of the assessment carries the full address. The comparison itself appears only as the rule's condition. List what's waiting with GET / and ?approval_status=in_review.
Meanwhile the agent's status_url answers status: "in_review" with review.expires_at and retry_after: 30, and its long poll returns as soon as you decide. The customer's page says "Approved. Your store is checking the order and will confirm." A later assessment of the same cart attaches to the open approval and answers challenge.status: "in_review"; nobody is asked twice.
2. Decide from your own admin
Send POST / with approve or reject, and an optional note for your records:
import { Provenance } from "@provenanceauth/sdk";
const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const assessment = await prov.authorize.assessments.review("cas_01M7JD3RF2X8N4PQ6T0VZKWG8M", {
decision: "approve",
note: "Called the customer; the new address is theirs.",
});
import os
from provenanceauth import Provenance
prov = Provenance(api_key=os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
assessment = prov.authorize.assessments.review(
"cas_01M7JD3RF2X8N4PQ6T0VZKWG8M", decision="approve", note="Called the customer; the new address is theirs."
)
The answer is the assessment, updated:
- Approve mints the cart-bound token for the agent; the assessment reads
outcome: "frictionless"withreason: "review_approved". The agent's next poll returns the token. - Reject reads
outcome: "reject"withreason: "store_review". Tell your customer the order didn't go through.
Either sends authorize.checkout_assessment.updated with previous_outcome: "challenge". Sending the same decision again returns the assessment. The other decision after one answers review_already_decided (409); an order that isn't in review answers review_not_open (409). Another account's assessment is a 404.
A cart approval you created yourself with POST / has no assessment: decide it from the console, and its own authorize.checkout_approval.* events tell you the outcome.
3. Decide from the console
Under Approvals → Cart approvals, an order in review shows Your review: the rule, when it opened and when it ends, an optional note, and Approve and Reject. The buttons need the Manage policies permission and record decided_by: "console". A decision from the console updates the assessment at once, and the 409 rule is the same.
4. Set how long a review waits
Two account settings, beside the approval expiry default, in Rules → Orders or PUT /v1/account/policies/settings:
| Setting | Values | Default |
|---|---|---|
checkout_ | 300 to 604800 seconds (5 minutes to 7 days) | 86400 (24 hours) |
checkout_ | reject or approve | reject |
{ "checkout_review_timeout": 3600, "checkout_review_at_expiry": "reject" }
They apply to reviews opened after the change; each review keeps its own expires_at and at_expiry. At the timeout, reject makes the assessment reject with reason: "review_expired"; approve mints the token and makes it frictionless with reason: "review_approved". Either sends authorize.checkout_assessment.updated. Changing either is on Pro and above, and needs Manage policies and a recent second-factor check in the console. On Free a review waits 24 hours and then rejects.
5. When your rules can't run
If the after-approval rules can't be read when the customer approves, the order waits in review (the assessment's reason: "rules_unavailable") rather than going ahead. Decide it as any other.
Errors you might see
| Symptom | Cause | Fix |
|---|---|---|
review_ (409) | The review was decided already, by your API, the console or the timeout | Read the assessment's outcome and reason. |
review_ (409) | The order isn't in review | Check challenge.; list reviews with ?approval_. |
dashboard_ (403) | An API key called the console's route | Use POST /. |
parameter_ (400) on checkout_ | Outside 5 minutes to 7 days | Send seconds between 300 and 604800. |
plan_ (402) on checkout_ or checkout_ | Setting them is on Pro and above | Upgrade, or keep the defaults (24 hours, then reject). |