HomeGuidesChangelogDiscussions
Log In
Guides

Wallet Balance

Retrieve your wallet and generated crypto addresses balance

Check your wallet balance

The wallet associated with an integrator has a balance which is the sum of all USDC balances in addresses associated with the wallet. These addresses have been created using our generate crypto address endpoint.

The request below retrieves your wallet balance and associated details.
The /crypto-integrators/wallet endpoint returns details related to an integrator's USDC wallet.

curl --location --request GET 'https://api-sandbox.spendjuice.com/crypto-integrators/wallet' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJqdWljZSIsImV4cCI6MTY1NTQ4MDcxNCwiaWF0IjoxNjM5OTI4NzE0LCJpc3MiOiJqdWljZSIsImp0aSI6IjIzOTIwMDViLWU3ODgtNDgzNy05ZDgyLWYwMDA0NDUxNjJjZCIsIm5iZiI6MTYzOTkyODcxMywic3ViIjoiY3J5cHRvLWludGVncmF0b3I6Njc0NDVjNTEtNDBmMC00NGY5LTkxMDItMWY1ODEzMDZmZjkyIiwidHlwIjoiYWNjZXNzIn0.L-95Tz3auEWz40mlmuLK3IcfJAEgCJaKMnS7ao__gGCs7h7aUuc9haNDmjBTDjDzxqIie9cg4I5do6fi7wNnug'
{
    "data": {
        "balance": {
            "USD": "0.00"
        },
        "integrator_id": "ca1ac902-97c2-4878-970b-da955938f02c",
        "wallet_id": "68a8beb9-1ab1-4ae4-8f2f-cd5600550864"
    }
}

Check balance on a crypto address

Generated crypto addresses have an associated balance. These addresses are credited via incoming USDC transfers initiated by the associated user to the crypto address. The funds in these addresses are used to carry out payouts on behalf of the user and sum up the overall balance on the wallet associated with the integrator

The request below retrieves a crypto address returning its balance and associated details

curl --location --request GET 'https://api-sandbox.spendjuice.com/crypto-integrators/1c046cfd-9a01-4d31-bf27-c0afa830f179' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJqdWljZSIsImV4cCI6MTY1NTU0OTY0MCwiaWF0IjoxNjM5OTk3NjQwLCJpc3MiOiJqdWljZSIsImp0aSI6IjJhMjUwZTlmLWU3MjQtNGU3Ny1hMTY5LTkzNWI4ZTM5OWRlMyIsIm5iZiI6MTYzOTk5NzYzOSwic3ViIjoiY3J5cHRvLWludGVncmF0b3I6Y2ExYWM5MDItOTdjMi00ODc4LTk3MGItZGE5NTU5MzhmMDJjIiwidHlwIjoiYWNjZXNzIn0.isGrCXwrPoj5TAjCMN4TXoezNQ8TqI6bWGZZ6cEpqHhLJdGUJQ0oJgy5nFnBDcQzlvvovKbEh2IKLFzykpK4Aw'
{
    "data": {
        "address": "G4tL6j2fd5nJ5AyZa7LkmYWQkv7dLp7BKuX2JfDWwHsA",
        "id": "1c046cfd-9a01-4d31-bf27-c0afa830f179",
        "balance": "0.00",
        "chain": "SOL",
        "coin": "USD",
        "user_id": "67t723394893"
    }
}