API
Docs and API's for Weasy.io
Orders
Manage all the shopping cart orders from your website.Accepts GET PUT DELETE
All requests to the API must be authenticated with an API key on the HTTP Authorization header.
GET
Get all orders headers or order detail from your shopping cartsRequest example
~ curl -i -X GET \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/orders
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/orders
Body response example [ HTTP CODE: 200 ]
Path parameters
| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| limit | integer | optional | define items per page |
| page | integer | optional | define page to display |
| since | date | optional | filter result starting at defined date date format ISO 8601 |
| status | string | optional | filter result by order status. Comma separator for multiple status options: all the status options can be obtained from the Order Status endpoint |
Body attributes
A json payload containing the following attributes.| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| lang | string | optional | define the language to show data options: all the iso country codes (ISO 3166-2) obtained from the Languages endpoint |
PUT
Change an order status.Request example
~ curl -i -X PUT \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '{"status":"shipped","shippingtracking":"CTT-A3K8F72"}'\
https://api.weasy.io/v1/orders/MB123123
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '{"status":"shipped","shippingtracking":"CTT-A3K8F72"}'\
https://api.weasy.io/v1/orders/MB123123
Body response example [ HTTP CODE: 200 ]
Path parameters
| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| trackingCode | string | required | order tracking code |
Body attributes
A json payload containing the following attributes.| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| status | string | required | order new status options: order status endpoint /orderstatus |
| shippingtracking | string | optional | Shipping courier tracking code |
| shippingCarrierID | integer | optional | Shipping carrier ID The shipping carrier ID can be obtained in the shippingcarriers endpoint |
| note | string | optional | Used to add a note to the order |
DELETE
Delete a order or collection of orders from your orders database.Request example
~ curl -i -X DELETE \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '[1,2]'\
https://api.weasy.io/v1/orders
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '[1,2]'\
https://api.weasy.io/v1/orders
Body response example [ HTTP CODE: 200 ]
Body attributes
| Attribute description |
|---|
| A json payload containing an array of id or ids. |