Appearance
Data bundles
A bundle is a fixed product of a mobile network: data, WhatsApp, social media, private WiFi, or voice and SMS. Each has a fixed price.
- List the bundles and pick one by
id. - Buy it:
- onto a phone number, or
- as voucher PINs the customer loads themselves.
You are charged the bundle's price in the bundle's currency.
Safe retries
Both purchases accept an optional reference: your own id for the purchase. Send one with every purchase. A repeat of the same reference never buys twice: it returns the first outcome, and for vouchers the same PINs. After a timeout, repeat the request with the same reference or check its status. See References and safe retries.
Without a reference both endpoints answer exactly as they always have, and a repeated request is a second purchase. If such a request times out, check transaction history before you try again.