Refunding Payments

You may refund a payment if the funds have cleared. If you want to return the funds irreverent of it's payment status you can use void payments.

https://api.vendreo.com/v1/card/payment/{paymentUUID}/refund (Full example: docs)

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