Retrieving a Single Collection

Overview

This API endpoint retrieves the details of a Direct Debit collection.

GET - /transactions/{transaction_id}

{
   "transaction_id":"a7e3fde5-5b83-44f4-9915-782bc7121717",
   "status":"success",
   "reason":"",
   "mid":"93dcaf2a-3bdf-4f1f-bb51-57ef28c87497",
   "payment_method":"direct_debit",
   "transaction_type":"account_to_account",
   "transaction":{
      "order_id":"1f1f2a61-5b68-4725-a0ce-9560514ec00b",
      "amount":15.02,
      "currency":"gbp"
   },
   "charge_date":"2024-08-01",
   "is_retryable": false,
   "detail":{
      "scheme":"",
      "report":"",
      "reason_code":"",
      "reason_description":""
   },
   "attempts": [
     {
       "status": "success",
       "reason": "",
       "created": "2023-10-18T09:46:00.778Z",
       "charge_date": "2024-08-01",
       "detail":{
         "scheme":"",
         "report":"",
         "reason_code":"",
         "reason_description":""
       }
     }
   ],
   "links":[
      {
         "rel":"mandate",
         "href":"/v1/mandates/{{mandate_id}}"
      },
      {
         "rel":"customer",
         "href":"/v1/customer/{{customer_id}}"
      }
   ],
   "created": "2023-10-18T09:46:00.778Z",
   "last_updated": "2023-10-18T09:46:00.778Z",
   "custom_data": "L3BheW1lbnQtbGlua3MgcGF5IGN1c3RvbV9kYXRh",
   "custom1": "12345",
   "custom2": "12345"
}

The attempts array maintains details of every attempt made for the Direct Debit collection, guaranteeing a complete history of collection attempts and their statuses.

The attempts array will always contain at least one record, providing information on the present transaction status. In the event of a Direct Debit collection undergoing a re-attempt, Acquired automatically generates supplementary records within the attempts array to meticulously document each retry attempt.