Swipelux

Checking customer's balance

To check a customer's balance, follow these steps:

Get the customer ID

Make sure you have the customer ID ready. This is the unique identifier for the customer whose balance you want to check.

For this guide, we'll use the customer ID cus_cK69MttD5nAUAbud1B.

Make the API request

Call the GET /v1/customers/{id}/balances endpoint using the following format:

curl https://wallet.swipelux.com/v1/customers/cus_cK69MttD5nAUAbud1B/balances \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_SECRET_API_KEY'

Handle the response

The API will return a JSON response containing the customer's balance:

Response body
{
  "balance": 48.5
}

The balance represents the total networth across all wallets on all supported blockchain networks in USD.

On this page