Skip to main content

Buy data

POST 

/api/v1/data

Purchase a data plan for a phone number. The plan's price is debited from your wallet atomically — if delivery fails, you are not charged.

Pass a unique clientReference per purchase: re-sending the same one returns the original transaction instead of buying again, so a timeout is always safe to retry.

Request

Responses

The purchase was accepted. status is Success, Failed, or Processing.

Response Headers
    Idempotent-Replay

    Present and set to true only when this response is an idempotent replay — i.e. the clientReference already had a transaction, so the original is returned unchanged (no new vend, no charge). Absent on a fresh purchase.