Create one customer per user, generate deposit addresses per coin and network, and read balances and customer lists with the Bitliva Merchant API.
A customer in the Bitliva Merchant API represents one user of yours. Each customer holds crypto balances and has a deposit address for every coin and network you generate for them.
Send your own id for the user as reference, plus a first and last name. The reference accepts up to 100 letters, numbers and . _ : @ -. Sending the same reference again returns the same customer, so it is safe to retry.
Names can be up to 60 characters each. If a customer is still being set up, you get customer_pending: retry in a moment with the same reference. The sandbox allows 5 customers, after which you get customer_limit_reached.
A customer receives a coin on an address that you create for a coin and its network. The network is required for every coin and must match the coin. Repeating the same coin and network returns the existing address instead of creating a new one.
An unsupported coin returns unsupported_currency, and a missing or wrong network for that coin returns invalid_network. The address list and every wallet in a response include its network.
Generate the address before you try to buy that coin for a customer. Buying without one returns address_required.