Skip to main content

[POST] Cancel a Remote Payment

Cancels an eligible approved payment. Check payment.isCancellable before requesting cancellation.

curl -X POST -H "Authorization: Bearer LOCATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{"deviceId":125}' \
"https://sylqone-stg.sylq.io/remote_api/v1/remote_payments/PAYMENT_REFERENCE/cancel"

deviceId is camelCase. The endpoint returns the updated remote-payment representation.

Main errors: 401 invalid token, 404 payment/device not found, 409 expired transaction or payment-method cancellation window, 422 payment not cancellable or remote operations disallowed by terminal mode.