> 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/save-transaction.md).

# Save transaction

You can save any transaction that happened outside the Mida Collect system

#### Field description

<table><thead><tr><th width="45.29296875">#</th><th width="186">Field </th><th width="306.3203125">Description</th><th width="111.97265625">Type</th><th data-type="checkbox">Optional?</th></tr></thead><tbody><tr><td>1</td><td>amountPaid</td><td>Transaction amount collected in minor</td><td>string</td><td>false</td></tr><tr><td>2</td><td>amountRequested</td><td>Total amount requested for in the transaction in minor</td><td>string</td><td>true</td></tr><tr><td>3</td><td>loanAccountNumber</td><td>Unique identifier of Loan</td><td>string</td><td>false</td></tr><tr><td>4</td><td>transactionDate</td><td>Transaction value date </td><td>date</td><td>false</td></tr><tr><td>6</td><td>narration</td><td>Transaction narration</td><td>string</td><td>false</td></tr></tbody></table>

#### **Security**

The API security is a bearer token using your organisation API Key gotten [here](https://app.getmida.com/settings)&#x20;

#### **API url**

{baseUrl}/external/saveTransaction

#### Sample Request:

```json
{
    "loanAccountNumber": "32783987393",
    "transactionDate": "2025-01-05",
    "amountPaid": 100,
    "amountRequested": 100,
    "narration": "testers"
}
```
