Hanzo
OpenapiCommerce

Capture a previously authorized order and settle the payment

Settles the order named in the path — the second half of the two-step flow — and answers the updated order with a Location header.

POST /v1/commerce/store/{storeid}/capture/{orderid}

Addresshttps://api.hanzo.ai/v1/commerce/store/{storeid}/capture/{orderid}
MethodPOST
Operationpost_commerce_store_by_storeid_capture_by_orderid
AuthAuthorization: Bearer $HANZO_API_KEY

Settles the order named in the path — the second half of the two-step flow — and answers the updated order with a Location header. Dispatch follows the order's STORED payment type, and a successful capture is the moment the rest of the system learns about the sale: order and payment rows are updated, coupon redemptions, referral, cart and stats are written, the confirmation email goes out, and the paid and completed events are emitted. A capture failure releases the order's inventory reservations and answers 400, so a failed settlement never leaves items held.

Request

2 fields.

FieldInTypeRequiredDescription
storeidpathstringyes
orderidpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Commerce API · All Hanzo APIs · Interactive reference

How is this guide?

On this page