Hanzo
OpenapiCommerce

PayPal cancel by pay key — refuses, because a pay key alone does not identify…

Intended to void the payments carrying the given pay key, stamp them cancelled and cancel the order, it never reaches that work: the shared checkout…

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

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

Intended to void the payments carrying the given pay key, stamp them cancelled and cancel the order, it never reaches that work: the shared checkout handler reads its order from an ORDER ID path parameter this route does not carry, leaving an untyped order that the cancel dispatch refuses with 400 before the pay key lookup runs. Authentication, namespacing and store resolution happen ahead of the refusal, so a missing token is 401 and an unloadable store 500. Cancelling a real PayPal authorization needs an address that carries the order id.

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 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