Create an order
Buy a product. By default this is a wallet prepay: it debits your balance and returns immediately, or fails with 402 if the balance is short (it never silently charges a card you didn't pick). Set method to "card" or "crypto" to get a hosted payUrl back instead. Always send an Idempotency-Key so a retry never double-charges; on a reseller key an order without one is refused.
The body takes only the five fields below. Anything else, including a top-level country, is refused with 400 unknown_field before anything is charged. What goes in it depends on the product's delivery on GET /products.
Residential and other gateway products (delivery is lines): send product_id and quantity, nothing else. There is no country in the order. You choose the country for each line when you generate lines from the plan, so one plan serves every country. A package size is the quantity (1 GB is 1, 10 GB is 10), never a separate product id, and it is a whole number from the product's minQuantity.
Dedicated IPs (delivery is addresses: IPv4, IPv6, ISP and mobile IPs): quantity counts IPs, and the targeting goes inside fulfillment_meta, for example {"country": "DEU", "period_days": 30}.
Request
- Base URL: https://hproxy.com
- URL: https://hproxy.com/api/v1/orders
- Auth: API key in header X-API-Key
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.