Get the decision behind a selected rate
Returns the rule-evaluation decision for a request: the rule that matched, the rate selected, the facts the engine evaluated, and the full rule trace. Read-only.
This is the answer to “why this carrier, why this price” — the audit record for the decision; it does not change once written.
In this beta the matched rule is always default, the single rule provisioned for your account. matched_priority and fallback_triggered describe ordering and fallback behavior that become meaningful when customer-defined rules ship.
Available once evaluation has written a decision, including while a purchase is still processing. Outcomes reached before evaluation have no decision and return 409, and 404 for a request id that does not exist or does not belong to your account.
Authorizations
Shippo API token, sent as Authorization: ShippoToken <API_TOKEN>.
Path Parameters
Response
Successful Response
Returned by GET /automations/labels/{request_id}/decision: the request's status and identifiers plus its full decision record. Available once rule evaluation has completed.
Whether this request was created in test mode.
Current status of the request.
processing, purchased, dry_run_completed, no_match, failed Whether this request evaluates selection without purchasing a label.
The record of one completed rule evaluation: the rule that matched, the rate selected, the facts evaluated, and the full rule trace. It is written once and never changes. estimate_available is always false in this beta.