Hanzo
OpenapiCommerce

Authorize and capture a new order in one call

Runs authorization and capture back to back against a freshly created order — the one-step flow for callers with no reason to hold funds.

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

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

Runs authorization and capture back to back against a freshly created order — the one-step flow for callers with no reason to hold funds. It takes the authorize body and inherits every authorize rule: the store's currency wins over the body, the items are reserved before the processor is called, and the amount bounds the processor enforces still apply. There is no order id on this address, so it can never continue an existing order. Either half failing answers 400, and the capture side effects — confirmation email, redemptions, stats, the paid and completed events — run only when both halves succeed.

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