{
  "status": "success",
  "message": "wallets debited successfully",
  "data": {}
}

URL
https://test-api.bvndle.com/api/v1/laas/coins/debit-multiple-wallets
Base URL
https://testapi.bvndle.com/api/v1/laas
HTTP Method
POST
Authorization Header
Bearer ACCESS_TOKEN

Req Body:
nametypeDescription
userIdstringRequired
ID of the onboarded user
amountnumberRequired
walletsarray
wallets.idstringID of the wallet to be debited (ID returned in the user coin data)
wallets.coinsnumbercoins to be debited from the user
Note: Everything in the partner user account would be debited

cURL
curl --request POST
'https://test-api.bvndle.com/api/v1/laas/coins/debit-multiple-wallets' \
--header 'Content-Type: application/json' \
{
    "userId": "d3c0c232-6e07-40eb-a1ee-593483d689c9",
    "amount": 200,
    "wallets": [
        {
            "id": "a4d3aed8-e808-442b-95f0-5e520b6bda6c",
            "coins": 100
        },
        {
            "id": "57c8b4e6-450d-41b7-95c3-8815547be9fb",
            "coins": 100
        }
    ]
}

{
  "status": "success",
  "message": "wallets debited successfully",
  "data": {}
}