Fetch All Wallets

This API is for to get list of all wallets


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/admin
GRAPHQLstringQUERY
content-typestringJSONapplication/json
x-access-tokenstringsession token with validitytokenadmin token

Request

{
  list_all_wallets(page_size: 2, page_number: 1) {
    message
    data {
      _id
      wallet_id
      is_linked
      user_id {
        _id
        name
        email
      }
    }
    hasMore
  }
}


Request Parameters

FieldsTypeDescriptionRequired
page_sizeintegertotal number of data to be displayed
page_numberintegerpage number to filter data

Success

{
    "data": {
        "list_all_wallets": {
            "message": "data listed",
            "data": [
                {
                    "_id": "62579d28ba8a2b819c325d94",
                    "wallet_id": "4nWNM7zdy9gtgpiURL1e9e8SmEneUHGx3qnEnqWBF5Qr",
                    "is_linked": true,
                    "user_id": {
                        "_id": "624fcb2b521415c21a508ac5",
                        "name": "Nicky Jacob",
                        "email": "nickyjacob@gmail.com"
                    }
                },
                {
                    "_id": "6246b6eef63e08baf90115b8",
                    "wallet_id": "HrVUNq8PyKwym8dTwdBe7gHmaV3UWBkxztmBttHKPQX3",
                    "is_linked": true,
                    "user_id": {
                        "_id": "62469e32f63e08df6e01159f",
                        "name": "jimshad",
                        "email": "jimshaddb@gmail.com"
                    }
                }
            ],
            "hasMore": true
        }
    }
}

Error

{
    "errors": [
        {
            "message": "Unauthorized",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": ["list_all_wallets"]
        }
    ],
    "data": {
        "list_all_wallets": null
    }
}