API Reference

Delete a batch

DELETE/batches/{id}

Query Parameters

idstring

ID or Reference of the Batch

Request

curl
curl -u TEST:TEST -XDELETE https://gateway.pmnts-sandbox.io/v1.0/batches/071-BF-Q0TVWI7K

Response

200cURL
json
{
   "successful" : true,
   "test" : true,
   "response" : {
    "status" : "Cancelled",
    "completed_date" : null,
    "id" : "071-BF-HBOLDSDA",
    "start_date" : null,
    "type" : "DIRECTDEBIT",
    "filename" : "BATCH-v1-DIRECTDEBIT-TEST-20180908-7607.csv",
    "process_date" : "2018-09-08",
    "created_at" : "2018-09-07T15:34:59+10:00",
    "reference" : "7607"
   }
}