Refunding Payments
You may refund a payment if the funds have cleared. If you want to return the funds irrelevant of it's payment status you can use void payments.
https://api.vendreo.com/v1/card/payment/{paymentUUID}
/refund (Full example: docs)
If you do not provide an amount, the system will assume you want to refund the complete transaction.
curl --location --request DELETE 'https://api.vendreo.com/v1/card/payment/{paymentUUID}/refund' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {AUTH_TOKEN}' \
--data-raw '{
"amount": "120",
"reason": ""
}'
Valid Reasons
Reasons |
---|
DUPLICATE_ORDER |
GOODS_RETURNED |
ORDER_CANCELLED |
MERCHANT_OUT_OF_STOCK |
GOODS_NOT_RECEIVED |
LATE_CONFIRMATION |
DISPUTES |
Returned Postbacks
card_payment_updated
postback on the original paymentcard_refund_started
card_refund_completed
orcard_refund_failed