Void Payments

If you are wanting to return all the funds to the user it's recommended that you void the payment. The system will determine if the transaction needs to be Cancelled or Refunded.

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

curl --location --request DELETE 'https://api.vendreo.com/v1/card/payment/{paymentUUID}/void' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {AUTH_TOKEN}' \
  --data-raw '{
    "amount": "120",
    "reason": "DUPLICATE_ORDER"
  }'