List Transactions API

Environment: Live

List account transactions with filters.

# List Transactions API

Fetch a list of transactions linked with a specific account.

## Endpoint
- **Method**: POST
- **URL**: https://api.moolre.com/open/account/status

## Headers
| Header | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| X-API-USER | string | Yes | Your Moolre username. |
| X-API-KEY | string | Yes | Your Private API Key. |

## Request Body
| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| type | integer | Yes | Must be 2. |
| accountnumber | string | Yes | Your Account Number. |
| startdate | string | No | Start date (YYYY-MM-DD HH:MM:SS). |
| enddate | string | No | End date (YYYY-MM-DD HH:MM:SS). Defaults to the last second of the current year. |
| limit | string | No | Max transactions per page. |
| status | integer | No | Optional status filter: 0=Pending, 1=Successful, 2=Failed. |
| starting_after | string | No | Cursor pagination: send data.next_cursor from the previous page to read the next one. With it, limit is at most 100. The response then also carries data.has_more and data.next_cursor. |
| from | string | No | Optional start of the range, UTC: YYYY-MM-DD or ISO 8601. startdate wins when both are sent. |
| to | string | No | Optional end of the range, UTC: YYYY-MM-DD or ISO 8601. enddate wins when both are sent. |

## Response (200 Success)
List of transactions returned.

```json
{
  "status": 1,
  "code": "ST08",
  "message": "Transactions Found",
  "data": {
    "txcount": "1",
    "transactions": [
      {
        "txstatus": 1,
        "txtype": 1,
        "accountnumber": "100000100002",
        "payer": "233240000006",
        "payee": "Zagey",
        "amount": "1.00",
        "value": "1",
        "transactionid": "34008096",
        "externalref": "0",
        "thirdpartyref": "55730796319",
        "ts": "2025-04-15 12:36:28"
      }
    ]
  },
  "go": null,
  "meta": {
    "requestid": "req_c68f4c66115c26725c796242",
    "notices": []
  }
}
```


## Fields every response can carry

These fields are additive: existing fields keep their names, order and types.

| Field | Meaning |
| :--- | :--- |
| meta | Always present, last in the object. meta.replayed is true only when the response is the stored answer to a repeated Idempotency-Key (absent otherwise). meta.requestid is the unique id of the request (also the X-Request-Id response header): quote it when you contact support. meta.notices is always an array, empty when there is nothing to report; each notice is { code, message, docs? }, for example that a deprecated way of sending credentials was used. See [Deprecations](https://docs.moolre.com/guides/deprecations). |

There is no outcome field. Decide the result from status, code and, on payment and transfer endpoints, data.txstatus (0 pending, 1 succeeded, 2 failed). These codes mean the result is unknown and may still succeed, so treat them as pending and check the status: PY01, PY02, TR01, TR02, TP11, TP18, APY10, APY16, ASL06, IS30, SYS500. Status 1 with TR08, OBGH01, OTGH01, OBNG01, GHQ03 or OM03 is final success; any other status 1 is an accepted, unfinished request.

Send X-Moolre-Http-Status: strict to receive real HTTP status codes (400, 401, 403, 404, 409, 422, 429, 5xx) instead of HTTP 200. See [Responses and request IDs](https://docs.moolre.com/guides/responses).

Back to the Moolre AI documentation index