const response = await fetch('https://api.karmapay.xyz/v0/external-accounts', {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
externalUserId: "user_123"
}),
});
{
"data": [
{
"id": "ext_abc123",
"accountName": "My Checking",
"currency": "usd",
"last4": "6789"
}
]
}
Retrieve all external accounts for a holder
const response = await fetch('https://api.karmapay.xyz/v0/external-accounts', {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
externalUserId: "user_123"
}),
});
{
"data": [
{
"id": "ext_abc123",
"accountName": "My Checking",
"currency": "usd",
"last4": "6789"
}
]
}
const response = await fetch('https://api.karmapay.xyz/v0/external-accounts', {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
externalUserId: "user_123"
}),
});
{
"data": [
{
"id": "ext_abc123",
"accountName": "My Checking",
"currency": "usd",
"last4": "6789"
}
]
}