[POST] Create a Remote Payment Refund
Creates a full or partial refund for an eligible approved or partially refunded payment. Check payment.isRefundable and payment.amountRefundable first.
curl -X POST -H "Authorization: Bearer LOCATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{"deviceId":125,"amount":500,"refundMethod":"CARD","currency":"EUR","notes":"Customer return","externalReference":"REFUND-1234"}' \
"https://sylqone-stg.sylq.io/remote_api/v1/remote_payments/PAYMENT_REFERENCE/refunds"
amount is required, positive and expressed in minor units. It cannot exceed the refundable amount. The response is a refund object with id, stxid, paymentReference, refPaymentStxid, deviceId, amount, currency, refundMethod, notes, externalReference, status and createdAt.
Main errors: 400 invalid amount, 401 invalid token, 404 payment/device not found, 409 non-refundable state, excessive amount, expired transaction or refund window, 422 remote operations disallowed by terminal mode.