Buy GB from credit
Pays for the cart from the account's credit and returns 201 with the order; the data is added to the balance once the order is provisioned. Requires an Idempotency-Key header. Errors: 402 insufficient_credit; 422 with the reason the cart cannot be bought; 409 idempotency_conflict or idempotency_in_flight.
ApiKeyX-API-Key<token>prx_live_<40 base62>
Idempotency-Key*stringA unique value per purchase. Repeating a request with the same key within 24 hours returns the first response.
1 <= length <= 255application/json- body
items*array<>|One item per network max.
1 <= items <= 2promo_code?stringCreated
application/json- response
data*message*stringHuman-readable status, safe to show to end users.
curl -X POST "https://example.com/v1/checkout" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "gb": 1, "product_code": "residential_gb" } ] }'{ "data": { "activated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "credit_after_cents": 0, "credit_before_cents": 0, "discount_cents": 0, "failure_reason": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "items": [ { "bytes": 0, "gb": 0, "price_per_gb_cents": 0, "product_code": "residential_gb", "total_cents": 0 } ], "number": "ORD-2026-000123", "promo_code": "string", "status": "paid", "subtotal_cents": 0, "total_cents": 0, "valid_until": "2019-08-24T14:15:22Z" }, "message": "OK"}Usage time series GET
Usage over time by minute, hour or day. Minute data covers the last 48 hours. Points without traffic are returned as zeros.
Price a cart POST
Prices a cart without buying it. A cart that cannot be bought is not an error: the answer has is_valid=false and invalid_reason. A malformed request is still 400.