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)
If you do not provide an amount, the system will assume you want to refund the complete transaction.
You must provide a valid reason for voiding the transaction
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"
}'