Hanzo AI
OpenapiCommerce

Create cancel

Meant to void the payments carrying the given pay key, stamp them cancelled and cancel the order, but the shared checkout handler resolves its order from…

POST /v1/commerce/store/{storeid}/checkout/paypal/cancel/{payKey}

Addresshttps://api.hanzo.ai/v1/commerce/store/{storeid}/checkout/paypal/cancel/{payKey}
MethodPOST
Operationpost_commerce_store_by_storeid_checkout_paypal_cancel_by_paykey
AuthAuthorization: Bearer $HANZO_API_KEY

Meant to void the payments carrying the given pay key, stamp them cancelled and cancel the order, but the shared checkout handler resolves its order from an ORDER ID path parameter this route does not carry. The result is an untyped order and a cancel dispatch that refuses with 400 before the pay key lookup ever runs. Token gate, namespacing and store resolution happen first, so a missing token is still 401 and an unloadable store still 500. It is the same handler as the unprefixed cancel address, with the same outcome.

Request

2 fields.

FieldInTypeRequiredDescription
storeidpathstringyes
payKeypathstringyes

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 commerce store checkout paypal cancel add <storeid> <payKey>

Commerce API · All Hanzo APIs · Interactive reference

How is this guide?

On this page