Place wallet-paid orders and read your wallet balance programmatically. No gateway redirect, no checkout UI.
The API ordering endpoints let you place orders from your own code, paid directly from your account’s wallet balance. Same product catalogue and the same request shape as the marketing checkout — minus the gateway round-trip.
Both endpoints are admin-grant-only. They’re off by default for every account. Contact support to enable account:api_ordering:write (place orders) and/or account:api_ordering:read (read wallet balance).
The server forces pay_with_credit=1 and no_redirect=1 server-side — there’s no gateway redirect, the wallet is debited atomically right after the order row is created, and the call returns the new order ID.email, fname, and lname are derived from the authenticated identity. Omit them, or pass them explicitly to override.
POST /v4/account/orders/create returns the order ID synchronously, but the order processor that turns the order into a usable subaccount runs asynchronously. For wallet-paid orders this typically takes well under a second, but it’s not guaranteed.Poll GET /v4/account/orders/{orderId}/status every 1–2 seconds until status === "processed". At that point data.subaccount is populated with the same shape as /v4/account/subaccounts entries — you can drop it straight into per-product endpoints.
curl -X GET 'https://api.proxyscrape.com/v4/account/orders/0bc1a40f-2a17-4c84-9b2b-f4b9d3e0b3a1/status' \ -H 'api-token: <your-api-key>'
Could not determine account email from authenticated identity.
JWT or api-token is invalid.
403
Reading order status via the API-ordering endpoint is not enabled for this account. Contact support to request access.
Account doesn’t have account:api_ordering:read.
404
Order not found.
Either the ID doesn’t exist, or it belongs to a different account. The endpoint deliberately does not distinguish the two so existence can’t be probed.
You can pass a coupon_code field on POST /v4/account/orders/create. The order then applies, in this order:
Coupon code (if any) — percent or fixed amount off the product price.
Per-account API-ordering percentage (if your account has one) — applied on top of the post-coupon price.
Coupons cannot be applied to wallet top-ups; the server rejects the request.If your account has an active API-ordering discount, it shows up in the dashboard playground banner and in the me endpoint’s api_ordering_discount field. The percentage is applied automatically — no flag to set.
The dashboard hosts a live playground for both endpoints at /account/api-orders. It builds the request body interactively, renders cURL / Python / Node snippets, and runs the request against your real wallet so you can verify everything works end-to-end before wiring it into your code.