API Reference
Delete a direct debit
DELETE
/direct_debits/{id}Query Parameters
idstringID of the direct debit
Request
curl
curl https://gateway.pmnts-sandbox.io/v1.0/direct_debits/071-DD-5DYN6M21 -X DELETE -u TEST:TESTResponse
200Result
json
{
"successful": true,
"response": {
"id": "071-DD-OPKL11XK",
"amount": 42,
"bsb": "123-123",
"account_number": "012345678",
"account_name": "Test",
"description": "Confirmation",
"reference": "071-DD-OPKL11XK",
"date": "2018-09-14",
"process_date": null,
"status": "Deleted",
"result": null,
"metadata": null
},
"errors": [],
"test": true
}404Result
json
{
"successful": false,
"response": null,
"errors": [
"Direct Debit 071-DC-ABC123 could not be found."
],
"test": true
}