Cancel Deposit

This is used to cancel deposit that haven't been processed for payment.

HTTP Method : DEL
API Endpoint : {{base_url}}/api/v1/deposits/{{depositDate}}?reason={{reason}}

Sample cURL Request

curl --location --request DELETE 'https://sandbox-api.ovalfi-app.com/api/v1/deposits/2023-07-03?reason=there%20is%20a%20reas' \
--header 'Authorization: Bearer eyJidXNpbmVzc0lEIjoiYmEwY2E1NGMtZjRkYi00NDU5LWE4MDYtOTZkYzA3NWIzZjlkIiwidXNlcklEIjoiM2E5NjhiOWYtMzU5MC00ODZhLWE1MTMtYzg2MzkzZjZmYWI4Iiwia2V5IjoiaGFsZWVtYWgifQ=='

Response

{
    "status": 200,
    "data": "cancelled deposit settlement successfully!",
    "message": "cancelled deposit settlement successfully!",
    "error": null
}