> For the complete documentation index, see [llms.txt](https://midatechnologies.gitbook.io/mida-developer-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://midatechnologies.gitbook.io/mida-developer-portal/midacollect/collection-status-call-back.md).

# Collection status call-back

To get notified on successful collections, expose an endpoint to collect the following variables via call back:

#### Field description

<table><thead><tr><th width="60" data-type="number">#</th><th width="186">Field </th><th width="403">Description</th><th>Type</th><th></th></tr></thead><tbody><tr><td>1</td><td>event</td><td>Name of the event</td><td>string</td><td></td></tr><tr><td>2</td><td>amountCollected</td><td>Value successfully collected in minor</td><td>number</td><td></td></tr><tr><td>3</td><td>transactionId</td><td>Unique identifier for the transaction</td><td>string</td><td></td></tr><tr><td>4</td><td>channel</td><td>The channel the transaction occurred</td><td>string</td><td></td></tr><tr><td>5</td><td>customerFirstName</td><td>Customer first name</td><td>string</td><td></td></tr><tr><td>6</td><td>customerLastName</td><td>Customer last name</td><td>string</td><td></td></tr><tr><td>7</td><td>customerEmail</td><td>Customer email</td><td>string</td><td></td></tr><tr><td>8</td><td>customerPhoneNumber</td><td>Customer phone number</td><td>string</td><td></td></tr><tr><td>9</td><td>CurrentPayment</td><td>The amount debited from the customer</td><td>string</td><td></td></tr><tr><td>10</td><td>loanRef</td><td>Unique identifier for the loan</td><td>string</td><td></td></tr><tr><td>11</td><td>loanAccountNumber</td><td>Account Number of the loan</td><td>string</td><td></td></tr></tbody></table>

#### Collection status call-back :

{% code overflow="wrap" %}

```json
{
 "event": "mida.transaction",
 "data": {
  "collectedAmount": 3000000,
  "transactionId": "14cbaa3c-1a7e-4baf-b214-2c4284e10fdf",
  "channel": "card",
  "customerFirstName": "Samuel",
  "customerLastName": "Peters",
  "customerEmail": "samuel.peters@example.com",
  "customerPhoneNumber": "08353244533",
  "currentPayment": "NGN 3,000,000",
  "loanAccountNumber": "336364353",
  "loanRef": "dvdba3c-1a7e-4baf-b214-dvdve353v44"
 }
}
```

{% endcode %}
