Swipelux
Customer API

Get the balance of a customer

Retrieve the balance of a customer

GET
/v1/customers/{id}/balances

Authorization

X-API-Key<token>

In: header

Path Parameters

idRequiredstring

The customer ID

Response Body

The balance has been retrieved successfully

balanceRequirednumber

The total balance of a customer in USD

export interface Response {
  /**
   * The total balance of a customer in USD
   */
  balance: number;
}
 
curl -X GET "https://wallet.swipelux.com/v1/customers/string/balances" \
  -H "X-API-Key: <token>"
{
  "balance": 0
}