Skip to main content
Close an unpaid Checkout session

Authorizations

Authorization
string
header
required

BoxRouter API key; never an upstream provider key.

Path Parameters

purchase_id
string
required

Purchase ID owned by the calling workspace.

Minimum string length: 1

Body

application/json
success_url
string<uri>

BoxRouter website URL for a recovered Checkout session.

Maximum string length: 2048
cancel_url
string<uri>

BoxRouter website URL used if recovered Checkout is canceled.

Maximum string length: 2048

Response

Current purchase state after attempting to close Checkout.

id
string
required
status
string
required

pending until the payment provider's verified notification arrives; confirmed once the payment has been verified; canceled when an unpaid Checkout session expires; failed when a saved-card attempt is definitively declined. Later refunds and disputes are separate adjustments and do not change this status. Clients must handle unknown values explicitly.

amount_minor
integer
required

Credit added to the balance, in US cents. The purchase fee is never part of it.

Required range: x >= 1
currency
string
required
Allowed value: "usd"
created_at
string<date-time>
required
updated_at
string<date-time>
required
fee_minor
integer

BoxRouter's fee for adding credits, in US cents, charged on top of amount_minor and never credited. Zero when the purchase carried no fee. Absent on older services.

Required range: x >= 0
total_minor
integer

amount_minor plus fee_minor, in US cents, before any tax. This is what the payer is asked to pay. Absent on older services.

Required range: x >= 1
method
enum<string>

How this purchase was started. New services report existing purchases as checkout; absent on older services.

Available options:
checkout,
saved_card,
auto_top_up
failure_reason
string
required if status = failed

Short safe description present only when a saved-card attempt failed.

Required string length: 1 - 100
adjustments
object[]

Later refunds, dispute adjustments and verified dispute outcomes, oldest first.

invoice
object

Present only after payment is confirmed and Stripe provides invoice links. Older purchases can have no invoice.

receipt_url
string<uri>

Stripe receipt for the confirmed payment; never returned for an unpaid purchase. Links can change.

refund
object

Self-serve refund eligibility and the newest refund. Present only when refund routes are enabled; never contains a stale quote.