---
description: >-
  Check Account Statement for specific dates. See below an example of the
  payload that will be expected by the server.
---

# Wallet Statement

## Statement

<mark style="color:green;">`POST`</mark> `https://sandbox.temboplus.com/tembo/v1/wallet/statement`

Check account statement

#### Headers

| Name                                           | Type   | Description                          |
| ---------------------------------------------- | ------ | ------------------------------------ |
| x-account-id<mark style="color:red;">\*</mark> | string | Partner account id                   |
| x-secret-key<mark style="color:red;">\*</mark> | string | Partner secret key                   |
| x-request-id<mark style="color:red;">\*</mark> | string | A unique id identifying this request |

#### Request Body

| Name                                        | Type        | Description                                            |
| ------------------------------------------- | ----------- | ------------------------------------------------------ |
| accountNo<mark style="color:red;">\*</mark> | string      | Account number of the wallet to retrieve statement for |
| startDate<mark style="color:red;">\*</mark> | date string | Statement start date                                   |
| endDate<mark style="color:red;">\*</mark>   | date string | Statement end date                                     |

{% tabs %}
{% tab title="200 Success" %}
```javascript
[
    {
          "accountNo": "6682002103",
          "debitOrCredit": "CR",
          "tranRefNo": "P50ZEXA2014301CI",
          "narration": "CURRENT MONTH SALARY",
          "txnDate": "2020-05-22",
          "valueDate": "2020-05-22",
          "amountCredited": 2232745.15,
          "amountDebited": '',
          "balance": 2232745.15,
        },
        {
          "accountNo": "668200980",
          "debitOrCredit": "CR",
          "tranRefNo": "P50ZEXA2014301CI",
          "narration": "RENT PAYMENT FOR JUN 2022",
          "txnDate": "2020-05-22",
          "valueDate": "2020-05-22",
          "amountCredited": 1950000.00,
          "amountDebited": '',
          "balance": 2132745.15,
        }
]
```
{% endtab %}

{% tab title="401 Invalid Credentials" %}
```json
{
    "statusCode": 401,
    "reason": "INVALID_CREDENTIALS"
}    
```
{% endtab %}

{% tab title="404: Not Found Wallet not found" %}
```javascript
{
    // Response
}
```
{% endtab %}

{% tab title="400: Bad Request Validation error" %}
```javascript
{
    "statusCode": 400,
    "reason": "VALIDATION_ERROR",
    "details": {
        "walletId": "walletId is required",
        "startDate": "startDate cannot be greater that endDate"
    }
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}
```bash
curl --request POST \
  --url https://sandbox.temboplus.com/tembo/v1/wallet/statement \
  --header 'content-type: application/json' \
  --header 'x-account-id: ff6IfxxVceIMM6oFAc9Zig' \
  --header 'x-secret-key: HYX5X4is3a4bnJJo4lXM936bFD6B8iMeAtXijNvHXMI==' \
  --header 'x-request-id: 546d7a200cd8cb45d8ac' \
  --data  '{
     "accountNo": "70089773",
     "startDate": "2023-01-01",
     "endDate": "2023-01-31"
  }'

```
{% endtab %}
{% endtabs %}

