Commerce Engine is now in early preview. Please report any issues or feedback to support@commercengine.io
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/orders/{order_number}/cancel-payment-request \
--header 'Authorization: Bearer <token>'{
"message": "<string>",
"success": true
}Use when the express checkout payment flow is used and the user wants to switch payment methods (e.g. started with UPI, then chose another). Without this call, the user must wait until the payment-status API returns status: failed and is_retry_available: true (typically ~3 minutes). Calling this endpoint cancels the existing payment request so the user can retry payment immediately.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/orders/{order_number}/cancel-payment-request \
--header 'Authorization: Bearer <token>'{
"message": "<string>",
"success": true
}Was this page helpful?