I have a response of a API which looks like this on a GET - GET on API1
[
{
"id": "a2d043614c9fefcae1ce9c83a3d0a448821e3a1734d5e0162aa8692c758b44ef",
"isLastUsed": false,
"userId": "f7e0e51b-e750-4523-97cf-bb40a8169c76",
"family": "wallet",
"type": "wallet_setel"
},
{
"id": "a2d041614c9feacae1ce9cd3f181a046d74c344134d2e0162aab3c2527d945e1",
"isLastUsed": false,
"userId": "f7e0e51b-e750-4523-97cf-bb40a8169c76",
"family": "mesra_card",
"type": "mesra_card",
"card": {
"cardNumber": "70838155117203383",
"cardType": "",
"pointBalance": 1023,
"issuedBy": "setel",
"provider": "SETEL",
"isActive": false,
"status": "issued"
}
}
]
I would like to extract only the id and provided it as a parameter to API 2
https://{{baseurl}}/v1/payments/payment-methods/{{id}}/balance
can anyone please guide me.