{
  "status": "success",
  "message": "laas user data retrieved successfully",
  "data": {
    "totalCoins": 0,
    "totalPartnerCoins": 0,
    "isLinked": true,
    "wallets": [
      {
        "partner": "Edited Business Name",
        "walletId": "a4d3aed8-e808-442b-95f0-5e520b6bda6c",
        "coins": 0
      },
      {
        "partner": "beebuu",
        "walletId": null,
        "coins": 0
      },
      {
        "partner": "Edited Business Name",
        "walletId": "57c8b4e6-450d-41b7-95c3-8815547be9fb",
        "coins": 100
      }
    ]
  }
}

URL
https://test-api.bvndle.com/api/v1/laas/get-user-coin-data
Base URL
https://testapi.bvndle.com/api/v1/laas
HTTP Method
GET
Authorization Header
Bearer ACCESS_TOKEN

Query Parameter:
nametypeDescription
userIdstringRequired
ID of previously onboarded user

cURL
curl --request GET
'https://test-api.bvndle.com/api/v1/laas/get-user-coin-data?userId=12erfderfvdert423452w45' \
--header 'Content-Type: application/json' \

SUCCESS RESPONSE:
nametypeDescription
totalCoinsnumberTotal number of coins the user has across all partners
totalPartnerCoinsnumberTotal coins the user has with a particular partner
isLinkedbooleanFlag to show if the user has been linked via SSO
walletsarrayAn array of the user wallets
Note:The user account must have been linked for you to see all wallets
wallets.partnerstringName of the partner
wallets.walletIdstringID of the wallet
wallets.coinsnumberTotal coin user has under the partner wallet
{
  "status": "success",
  "message": "laas user data retrieved successfully",
  "data": {
    "totalCoins": 0,
    "totalPartnerCoins": 0,
    "isLinked": true,
    "wallets": [
      {
        "partner": "Edited Business Name",
        "walletId": "a4d3aed8-e808-442b-95f0-5e520b6bda6c",
        "coins": 0
      },
      {
        "partner": "beebuu",
        "walletId": null,
        "coins": 0
      },
      {
        "partner": "Edited Business Name",
        "walletId": "57c8b4e6-450d-41b7-95c3-8815547be9fb",
        "coins": 100
      }
    ]
  }
}