Wallet Activity

Developers that want to show activity on a user's wallet (e.g. in the wallet history page of your driver-facing app) can do so via the GET wallet/:id/activity API.

This API returns an array of wallet activity objects which will have the following schema:

{
  "ok": true,
  "result": [
      {
        "_id": "63dd072cfc17230007baabe0",
        "wallet": "63d211c12abcb85f9c634b6e",
        "amount": -3440,
        "currency": "EUR",
        "type": "session",
        "session": "63dd0691c20c103e096a6a43",
        "createdAt": "2023-02-03T13:07:56.790Z",
        "updatedAt": "2023-02-03T13:08:01.838Z"
      },
      {
        "_id": "63dcf304fc17230007baa978",
        "wallet": "63d211c12abcb85f9c634b6e",
        "amount": -558.9000000000001,
        "currency": "EUR",
        "type": "session",
        "session": "63dcf24bf4829d14d452d6f2",
        "createdAt": "2023-02-03T11:41:56.589Z",
        "updatedAt": "2023-02-03T11:42:01.638Z"
      },
      {
        "_id": "63dcbaeb9dc9c929d86da691",
        "wallet": "63d211c12abcb85f9c634b6e",
        "amount": 3000,
        "wallet_amount": 3500,
        "currency": "EUR",
        "type": "top_up",
        "createdAt": "2023-02-03T07:42:35.906Z",
        "updatedAt": "2023-02-03T07:42:37.958Z"
      }
  ],
    "totalDocs": 3,
    "limit": 20,
    "totalPages": 1,
    "page": 1,
    "pagingCounter": 1,
    "hasPrevPage": false,
    "hasNextPage": true,
    "prevPage": null,
    "nextPage": null,
    "message": "Result"
}