Hanzo
OpenapiCommerce

Authorize a new order against a storefront, holding the funds without settling…

Tallies a new order for the addressed store from the user, payment and order body, reserves its items, runs the processor authorization and answers the…

POST /v1/commerce/store/{storeid}/authorize

Addresshttps://api.hanzo.ai/v1/commerce/store/{storeid}/authorize
MethodPOST
Operationpost_commerce_store_by_storeid_authorize
AuthAuthorization: Bearer $HANZO_API_KEY

Tallies a new order for the addressed store from the user, payment and order body, reserves its items, runs the processor authorization and answers the saved order with a Location header pointing at it. The gate is a token carrying admin or published scope, so a published storefront key is enough; no token is 401 and a token with neither bit is 403. The store is loaded BEFORE any payment work and its currency OVERRIDES whatever the body asked for, so a store that will not load ends the call with 500 and nothing is charged. On any authorization failure the reservations are released and the order and payment are persisted as cancelled, so a failed attempt still leaves a durable record. Capture is a separate call.

Request

1 field.

FieldInTypeRequiredDescription
storeidpathstringyes

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