> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pawapay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Wallet breakdowns

> Get the opening balance, the total of each category and the closing balance of every wallet on your account, from `startDate` to `endDate` in UTC, both days included. These are the same figures as in the wallet breakdown on the Dashboard.

Categories with no movement are left out. Treat a missing category as `0`.


Allows you to get the breakdown of every wallet on your account for a period: the opening balance, the total of each category (deposits, payouts, fees and so on) and the closing balance.

These are the same figures as in the wallet breakdown on the Dashboard under *Wallets*, so you can reconcile your wallets without exporting them.

Read more about the wallet breakdown in our [Dashboard docs](https://docs.pawapay.io/dashboard/finances/wallets.md#wallet-breakdown).

* The period is from `startDate` to `endDate`, **both days included**, from **midnight to midnight UTC**. It can be up to **31 days**, for example `2026-07-01` to `2026-07-31`.
* The `endDate` can't be in the future. If the `endDate` is today, the `closingBalance` is the balance now.
* One request returns **all your wallets**. To get the wallets of one country only, add the `country` parameter.
* Each wallet is identified by its `country`, `currency` and `provider`, the same as in [Wallet Balances](https://docs.pawapay.io/v2/api-reference/finances/wallet-balances.md).
* Wallets with no movement in the period are included, with only their `openingBalance` and `closingBalance`.
* **Categories with no movement are left out.** Treat a missing category as `0`.
* Breakdown data is available from **2021**. For earlier periods, the balances are `0` and there are no categories.

### How are the amounts shown?

* Money in is **positive** and money out is **negative**. For example, `deposits` is `512400` and `payouts` is `-301200.5`.
* Amounts are rounded to **2 decimals**, the same as on the Dashboard. A value exactly halfway between two cents can round down, for example `2.675` is shown as `2.67`.
* `openingBalance` plus all the categories equals `closingBalance`. Each amount is rounded separately, so your sum can be off by `0.01`.

### What is in `withdrawals`?

`withdrawals` includes:

* settlements taken from the wallet
* wallet-to-wallet transfers out of the wallet
* float reallocations

Because of the transfers and reallocations, `withdrawals` is not always the same as the total of your [settlements](https://docs.pawapay.io/v2/api-reference/finances/settlements.md) for the period.

If a settlement is cancelled, the amount returned to your wallet is added back to `withdrawals`. For example, if two settlements took 20.00 and 7.00 from a wallet and the 7.00 settlement was cancelled in the same period, `withdrawals` is `-20`. If the cancellation happens in a later period, the returned amount is added to `withdrawals` for that later period, which can then be positive.


## OpenAPI

````yaml openapi_v2 get /v2/wallet-breakdowns
openapi: 3.0.0
info:
  title: PawaPay Merchant API V2
  description: Please find complete documentation from https://docs.pawapay.io/.
  version: v2
  x-logo:
    url: >-
      https://global-uploads.webflow.com/62824591015aa314fd308df1/6411b26596e3de3f52551c00_Logopawapay-p-500.png
    href: https://docs.pawapay.io/
    altText: PawaPay logo
servers:
  - url: https://api.sandbox.pawapay.io
    description: PawaPay Merchant API sandbox
  - url: https://api.pawapay.io
    description: PawaPay Merchant API production
security:
  - bearerAuth: []
tags:
  - name: deposits
    x-displayName: Deposits
  - name: split-payments
    x-displayName: Split Payments
  - name: checkouts
    x-displayName: Checkouts
  - name: payouts
    x-displayName: Payouts
  - name: refunds
    x-displayName: Refunds
  - name: remittances
    x-displayName: Remittances
  - name: payment-page
    x-displayName: Payment Page
  - name: toolkit
    x-displayName: Toolkit
  - name: finances
    x-displayName: Finances
paths:
  /v2/wallet-breakdowns:
    get:
      tags:
        - finances
      summary: Wallet breakdowns
      description: >
        Get the opening balance, the total of each category and the closing
        balance of every wallet on your account, from `startDate` to `endDate`
        in UTC, both days included. These are the same figures as in the wallet
        breakdown on the Dashboard.


        Categories with no movement are left out. Treat a missing category as
        `0`.
      operationId: wallet-breakdowns
      parameters:
        - in: query
          name: startDate
          required: true
          description: |
            First UTC calendar day of the period, inclusive.

            Format is `YYYY-MM-DD`. Date-times are rejected.
          schema:
            type: string
            format: date
            example: '2026-06-01'
        - in: query
          name: endDate
          required: true
          description: >
            Last UTC calendar day of the period, inclusive. Must be on or after
            `startDate` and not in the future. The period from `startDate` to
            `endDate`, both days included, can be up to 31 days, for example
            `2026-07-01` to `2026-07-31`.


            Format is `YYYY-MM-DD`. Date-times are rejected.
          schema:
            type: string
            format: date
            example: '2026-06-30'
        - $ref: '#/components/parameters/FilterCountry'
      responses:
        '200':
          description: Request has been succesfully processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletBreakdownsResponse'
              examples:
                Successful:
                  value:
                    startDate: '2026-06-01'
                    endDate: '2026-06-30'
                    wallets:
                      - country: TZA
                        currency: TZS
                        provider: ''
                        breakdown:
                          openingBalance: '75000'
                          closingBalance: '75000'
                      - country: ZMB
                        currency: ZMW
                        provider: ''
                        breakdown:
                          openingBalance: '148734.21'
                          deposits: '512400'
                          payouts: '-301200.5'
                          refunds: '-1200'
                          fees: '-8123.4'
                          topUps: '50000'
                          withdrawals: '-250000'
                          adjustments: '310.5'
                          closingBalance: '150920.81'
                Filtered by country:
                  value:
                    startDate: '2026-06-01'
                    endDate: '2026-06-30'
                    country: UGA
                    wallets:
                      - country: UGA
                        currency: UGX
                        provider: AIRTEL_OAPI_UGA
                        breakdown:
                          openingBalance: '2500000'
                          deposits: '9100000'
                          payouts: '-7400000'
                          fees: '-182000'
                          withdrawals: '-3000000'
                          closingBalance: '1018000'
                      - country: UGA
                        currency: UGX
                        provider: MTN_MOMO_UGA
                        breakdown:
                          openingBalance: '4100000'
                          deposits: '15250000'
                          payouts: '-11900000'
                          refunds: '-50000'
                          fees: '-305000'
                          withdrawals: '-5000000'
                          closingBalance: '2095000'
        '400':
          description: >-
            Request was rejected due to incompatibility with PawaPay API
            specification
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletBreakdownsFailureResponse'
              examples:
                MISSING_PARAMETER:
                  value:
                    failureReason:
                      failureCode: MISSING_PARAMETER
                      failureMessage: >-
                        Request does not include the required parameter
                        'startDate'.
                INVALID_PARAMETER:
                  value:
                    failureReason:
                      failureCode: INVALID_PARAMETER
                      failureMessage: >-
                        Value for parameter 'endDate' is invalid. Please consult
                        API documentation for validation rules.
        '401':
          description: >-
            Authentication failed. Make sure you have added the API token into
            the header. If using signatures, make sure they are valid.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AuthenticationFailureResponse'
              examples:
                AUTHENTICATION_ERROR:
                  value:
                    failureReason:
                      failureCode: AUTHENTICATION_ERROR
                      failureMessage: The API token in the request is invalid.
        '403':
          description: >-
            Authorization failure. The API token needs read access to both
            deposits and payouts.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AuthorizationFailureResponse'
              examples:
                AUTHORISATION_ERROR:
                  value:
                    failureReason:
                      failureCode: AUTHORISATION_ERROR
                      failureMessage: >-
                        The API token in the request is not authorised for this
                        endpoint.
        '500':
          description: An unknown failure has occurred.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/UnknownFailureResponse'
              examples:
                UNKNOWN_ERROR:
                  value:
                    failureReason:
                      failureCode: UNKNOWN_ERROR
                      failureMessage: Unable to process request due to an unknown problem.
components:
  parameters:
    FilterCountry:
      in: query
      name: country
      description: >
        The country you wish to limit the results to.


        Format is ISO 3166-1 alpha-3, three character country code in upper
        case. Read more from
        [wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3#Officially_assigned_code_elements).
      required: false
      schema:
        type: string
        minLength: 3
        maxLength: 3
        example: ZMB
  schemas:
    WalletBreakdownsResponse:
      required:
        - startDate
        - endDate
        - wallets
      type: object
      properties:
        startDate:
          type: string
          format: date
          description: The `startDate` of the request.
          example: '2026-06-01'
        endDate:
          type: string
          format: date
          description: The `endDate` of the request.
          example: '2026-06-30'
        country:
          type: string
          description: >-
            The `country` of the request, in upper case. Only included if you
            sent `country`.
          example: UGA
        wallets:
          type: array
          items:
            $ref: '#/components/schemas/WalletWithBreakdown'
          description: >
            One entry for each wallet on your account, or in `country` if you
            sent it. Wallets with no movement are included. Sorted by `country`,
            then `currency`, then `provider`.


            Identify each wallet by its `country`, `currency` and `provider`.
            One country can have several wallets.
    WalletBreakdownsFailureResponse:
      required:
        - failureReason
      type: object
      properties:
        failureReason:
          $ref: '#/components/schemas/WalletBreakdownsFailureReason'
    AuthenticationFailureResponse:
      required:
        - failureCode
        - failureMessage
      type: object
      properties:
        status:
          type: string
          enum:
            - REJECTED
          description: The status of the response will always be `REJECTED`
          example: REJECTED
        failureReason:
          $ref: '#/components/schemas/AuthenticationFailureReason'
    AuthorizationFailureResponse:
      required:
        - failureCode
        - failureMessage
      type: object
      properties:
        status:
          type: string
          enum:
            - REJECTED
          description: The status of the response will always be `REJECTED`
          example: REJECTED
        failureReason:
          $ref: '#/components/schemas/AuthorizationFailureReason'
    UnknownFailureResponse:
      required:
        - failureCode
        - failureMessage
      type: object
      properties:
        failureReason:
          type: object
          properties:
            failureCode:
              type: string
              description: >
                Reason for the failure:

                * `UNKNOWN_ERROR` - Unable to process request due to an unknown
                problem.
              example: UNKNOWN_ERROR
            failureMessage:
              type: string
              description: A description of the failure
              example: Unable to process request due to an unknown problem.
    WalletWithBreakdown:
      required:
        - country
        - currency
        - provider
        - breakdown
      type: object
      properties:
        country:
          type: string
          format: text
          description: >
            Country of the wallet.


            Format is ISO 3166-1 alpha-3, three character country code in upper
            case. Read more from
            [Wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3#Officially_assigned_code_elements).
          example: ZMB
        currency:
          type: string
          description: Currency of the wallet.
          format: text
          example: ZMW
        provider:
          type: string
          description: >-
            If you are using a wallet that is only used by a single provider,
            that providers code will be shown here. Empty for country wallets.
          example: MTN_MOMO_BEN
        breakdown:
          $ref: '#/components/schemas/WalletBreakdown'
    WalletBreakdownsFailureReason:
      required:
        - failureCode
        - failureMessage
      type: object
      properties:
        failureCode:
          type: string
          description: >
            Possible failure codes:

            * `MISSING_PARAMETER` - A mandatory parameter was missing from the
            request.

            * `INVALID_PARAMETER` - A parameter had an incorrect value: a
            malformed date, `endDate` before `startDate` or in the future, a
            period longer than 31 days, or an unsupported `country`.
          example: INVALID_PARAMETER
          enum:
            - MISSING_PARAMETER
            - INVALID_PARAMETER
        failureMessage:
          type: string
          description: >-
            A human-readable description of the failure. Names the offending
            parameter.
          example: >-
            Value for parameter 'endDate' is invalid. Please consult API
            documentation for validation rules.
    AuthenticationFailureReason:
      required:
        - failureReason
      type: object
      properties:
        failureCode:
          type: string
          description: >
            Reason for the failure:

            * `NO_AUTHENTICATION` - The API token was not found in the request
            headers.

            * `AUTHENTICATION_ERROR` - The API token in the request headers is
            not valid.

            * `HTTP_SIGNATURE_ERROR` - The signature you have passed with the
            request did not pass verification.
          enum:
            - NO_AUTHENTICATION
            - AUTHENTICATION_ERROR
            - HTTP_SIGNATURE_ERROR
        failureMessage:
          type: string
          description: A description of the failure
    AuthorizationFailureReason:
      required:
        - failureReason
      type: object
      properties:
        failureCode:
          type: string
          description: >
            Reason for the failure:

            * `AUTHORISATION_ERROR` - The API Token in the request header is not
            authorised to make this request.

            * `DEPOSITS_NOT_ALLOWED` - Deposits are not enabled with the
            provider on your PawaPay account.

            * `PAYOUTS_NOT_ALLOWED` - Payouts are not enabled with the provider
            on your PawaPay account.

            * `REMITTANCES_NOT_ALLOWED` - Remittances are not enabled with the
            provider on your PawaPay account.

            * `REFUNDS_NOT_ALLOWED` - Refunds are not enabled with the provider
            on your PawaPay account.
          enum:
            - AUTHORISATION_ERROR
            - DEPOSITS_NOT_ALLOWED
            - PAYOUTS_NOT_ALLOWED
            - REMITTANCES_NOT_ALLOWED
            - REFUNDS_NOT_ALLOWED
        failureMessage:
          type: string
          description: A description of the failure
    WalletBreakdown:
      required:
        - openingBalance
        - closingBalance
      type: object
      description: >
        The breakdown of the wallet for the period. Categories with no movement
        are left out. Treat a missing category as `0`.


        Money in is positive and money out is negative. Amounts are rounded to 2
        decimals, the same as on the Dashboard, without thousands separators or
        trailing zeros. For example, `-301200.5`.


        `openingBalance` plus all the categories equals `closingBalance`. Each
        amount is rounded separately, so your sum can be off by `0.01`.
      properties:
        openingBalance:
          type: string
          description: Balance at 00:00:00 UTC on `startDate`.
          example: '148734.21'
        deposits:
          type: string
          description: >-
            Deposits paid into the wallet, from the API, Payment Page, checkouts
            and customer-initiated deposits.
          example: '512400'
        splitDeposits:
          type: string
          description: The deposit part of split payments.
          example: '1500'
        payouts:
          type: string
          description: Payouts. Amounts returned for failed payouts are added back.
          example: '-301200.5'
        splitPayouts:
          type: string
          description: >-
            The payout part of split payments. Amounts returned for failed ones
            are added back.
          example: '-900'
        remittances:
          type: string
          description: Remittances. Amounts returned for failed remittances are added back.
          example: '-12000'
        refunds:
          type: string
          description: Refunds. Amounts returned for failed refunds are added back.
          example: '-1200'
        fees:
          type: string
          description: >-
            PawaPay fees and pass-through fees. Fee reimbursements are in
            `compensations`.
          example: '-8123.4'
        topUps:
          type: string
          description: >-
            Top ups, wallet-to-wallet transfers into the wallet and float
            allocations.
          example: '50000'
        withdrawals:
          type: string
          description: >-
            Settlements, wallet-to-wallet transfers out of the wallet and float
            reallocations. Amounts returned from cancelled settlements are added
            back. Because of the transfers and reallocations, this is not always
            the total of your settlements for the period.
          example: '-250000'
        adjustments:
          type: string
          description: Manual adjustments, for example taxes, bank charges and corrections.
          example: '310.5'
        compensations:
          type: string
          description: Manual compensations.
          example: '25'
        uncategorized:
          type: string
          description: >-
            Payout reversals, a legacy type, and operations without a known
            type. The same as Uncategorized on the Dashboard.
          example: '0'
        closingBalance:
          type: string
          description: Balance at the end of `endDate`, or now if `endDate` is today.
          example: '150920.81'
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        See
        [Authentication](/v2/docs/how_to_start#how-to-authenticate-calls-to-the-merchant-api).
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.