This endpoint should be used to fetch the ARS balance in the account.
GET
https://api.exchangecopter.com/balance
const obtenerSaldo = async () => {
try {
const response = await axios.get('https://api.exchangecopter.com/balance', {
headers: {
Authorization: 'Bearer <token>' // Replace with actual Bearer Token
},
params:{
idCvu: string, //id provided when account is created.
documentId:string //string provided on the onboarding.
}
});
console.log(response.data);
} catch (err) {
console.log(err);
}
};
Status 200
Example of response
{
data: balance,
message: "Saldo obtenido correctamente",
}