Place a wallet-paid order
Place a headless, wallet-paid order. The server forces pay_with_credit=1 and no_redirect=1 internally, so the order is debited from your wallet balance with no gateway redirect.
email, fname, and lname are derived from the authenticated identity. You can omit them, or pass them explicitly to override.
Permission: account:api_ordering:write (admin-grant-only — off by default for every account). Authenticate with the api-token header. The wallet balance must cover the order total at the moment the call lands.
Authorizations
API key. Create and manage keys at /v4/account/api-keys or in the dashboard.
Body
Product to order. new_* creates a new subaccount; update_* upgrades an existing one in place (more proxies/tokens/bandwidth or extended duration) and requires account_id. Each update_* accepts the same product-specific fields as its matching new_* — see the examples below.
new_datacenter_shared, new_residential, new_residential_unlimited, new_serp_api, update_datacenter_shared, update_datacenter_dedicated, update_residential, update_residential_unlimited, update_serp_api Required for update_* types: the AccountID of the subaccount to upgrade (from /v4/account/subaccounts). Must be a subaccount you own. Ignored for new_* types.
"fe7941e6-1eed-4d95-881a-3159901897d3"
When true, returns a price quote without creating an order or debiting the wallet. Works for both new_* and update_*, and on a zero wallet balance.
false
Billing country (full name, e.g. "Belgium"). Determines VAT. Required for new_* orders; optional for update_* (the subaccount's existing country is used).
"Belgium"
Optional coupon. Discount applies before any per-account API-ordering percentage (coupon first, then percentage on the post-coupon price). Coupons cannot be applied to wallet top-ups.
"WELCOME10"
Override the first name from the authenticated account.
Override the last name from the authenticated account.