Orders
Get Orders
GET /orders
Query Parameters
product_id
Integer
Product id
page
Integer
Number of page
per_page
Integer
Number of orders to get per page
location_id
Integer
Location id
status
String
Order status
note_search
String
Phrases in order's note field to search by
order_ids
Array
Order ids to get
sort_by
String
Column to sort by. Required with order
order
String
Sort order. Required with sort_by
statuses
Array
Order statuses. Must contain only values from the available options.
status_is_expiring_soon
Boolean
Is order expiring soon
order_billing_type
String
Order billing type
Example request:
Example response:
Get Order
GET /orders/{order_id}
Example request:
Example response:
Calculate Pricing
GET /orders/calculate-pricing
Query Parameters
product_id
Integer
Product id
product_plan_id
Integer
Product plan id
product_location_id
Integer
Product location id
quantity
Integer
Proxy quantity
coupon_code
String
Coupon code
order_id
Integer
Order id
order_billing_type
String
Order billing type
product_question_answers
Array
Product question answers
Example request:
Example response:
Create Order
POST /orders
Body Parameters:
product_id
Integer
Product id
product_plan_id
Integer
Product plan id
product_location_id
Integer
Product location id
quantity
Integer
Proxy quantity
coupon_code
String
Coupon code
auto_extend
Boolean
Should the order be extended automatically. Default value is false.
product_question_answers
Array
Answers to questions
card_id
Integer
Card id. If an order is paid by card, the card_id must be provided; otherwise, it will be treated as a balance purchase.
selection
Array
You can provide multiple locations with their quantities using the selection.locations field. When you use this, you do not need to specify product_plan_id and quantity as top-level parameters in the request body.
Example request:
Example response:
Extend Order
POST /orders/{order_id}/extend
Body Parameters
product_plan_id
Integer
Product plan id
card_id
Integer
Card id. If an order extend is paid by card, the card_id must be provided; otherwise, it will be treated as a balance purchase.
proxies
Array
Optional list of IP addresses to extend. If omitted or empty, all proxies for the order are extended.
Example request:
Example response:
Toggle Order Auto Extend
POST /orders/toggle-auto-extend
Body parameters
order_id
Integer
Order id
is_enabled
Boolean
Should the auto extend be enabled or disabled
product_plan_id
Integer
The product plan ID for the order. This is not required, and will default to the current product id of the order if empty
payment_type
String
Payment type for the extend. Not required if is_enabled is false
card_id
Integer
The id of the card used to pay for the extend. Not required if payment_type is balance
Example request:
Example response:
Last updated
Was this helpful?