Orders
API endpoints for managing orders
Get all orders
GET
https://wemx.app/api/v1/orders
Returns all orders on your application
Available Relationships (optional)
Available relationships:
user
, payments
, package
, members
Filters (optional)
Available Filters:
package_id
, status
, service
, domain
, data
, options
, price
due_date
Tip: To filter JSON columns such as data and options, you can specify the key using
?filter[data->server_id]=12
Sorting (optional)
Available Sorting Parameters:
first_name
, last_name
, username
, email
, balance
, created_at
Sorting operators
asc
, desc
, random
Dates (optional)
today
Get orders created today
yesterday
Get orders created yesterday
3days
, 7days
, 14days
, 30days
, 90days
Get orders created last x days
YYYY-MM-DD,YYY-MM-DD
Get orders created between a range of dates
Get an order
GET
https://wemx.app/api/v1/orders/{order}
Retrieves a single order from the order id
Query Parameters
package
String
Include package
members
String
Include members
payments
String
Include payments
user
String
Include user
Update an order
PUT
https://wemx.app/api/v1/orders/{order}
Update a specific order. All parameters are optional, only pass the parameters that you wish to update
Request Body
name
String
Name of the order
user_id
Number
Change the user that owns the order
price_id
Number
Change the price of the order
data
JSON
Update the data parameters of an order
options
JSON
Update the options of an order
due_date
Date
Change the due date of an order, must be a date in the future
Delete an order
DELETE
https://wemx.app/api/v1/orders/{order}
Delete a order, the order must be terminated in order to delete it. Pass "force=1" to ignore this check
Request Body
force
boolean
Delete order forcefully
Suspend an order
POST
https://wemx.app/api/v1/orders/{order}/suspend
Suspend an order using from the order id
Unsuspend an order
POST
https://wemx.app/api/v1/orders/{order}/unsuspend
Unsuspend a order from the order id
Terminate an order
POST
https://wemx.app/api/v1/orders/{order}/terminate
Terminate an order from the order id
Request Body
force
Boolean
Forcefully terminate the order
Last updated
Was this helpful?