Get Orders
You can obtain a selection/all orders using the following endpoint
Endpoint: https://YOUR-ACCOUNT-NAME.despatchcloud.co.uk/ws/v1/wsorders/get_orders?page={page}&limit={limit}&date_from={{YYYY-MM-DD}}&date_to={{YYYY-MM-DD}}&status={{integer}}
Method: GET
Statuses correspond to the order status which can be found in the status manager. If no status is specified, it will not be used as a filter.
Example Response:
Method: GET
Statuses correspond to the order status which can be found in the status manager. If no status is specified, it will not be used as a filter.
Example Response:
CopyCopyCopyCopyCopyCopyCopyCopy{ "status": "SUCCESS", "order": { "order_id": "123456789-0", "channel_id": "1", "channel_alt_id": "", "shipping_name_company": "Despatch Cloud Ltd", "shipping_name": "Jane Doe", "shipping_address_line_one": "Unit 76", "shipping_address_line_two": "Warfield Road", "shipping_address_city": "Driffield", "shipping_address_county": "East Yorkshire", "shipping_address_country": "United Kingdom", "shipping_address_postcode": "YO25 9DJ", "shipping_address_iso": "GB", "invoice_name_company": "Despatch Cloud Ltd", "invoice_name": "Jane Doe", "invoice_address_line_one": "Unit 76", "invoice_address_line_two": "Warfield Road", "invoice_address_city": "Driffield", "invoice_address_county": "East Yorkshire", "invoice_address_country": "United Kingdom", "invoice_address_postcode": "YO25 9DJ", "invoice_address_iso": "GB", "email": "[email protected]", "phone_one": "01377455180", "phone_two": "", "total_paid": "24.00", "tax_paid": "4.00", "shipping_paid": "4.00", "total_discount": "0.00", "shipping_method_requested": "Next Day", "shipping_tracking_code": "", "payment_method": "Shopifypayments", "payment_ref": "", "payment_currency": "GBP", "sales_channel": "Shopify", "date_received": "1564655767", "date_dispatched": "0", "status": "1", "customer_comments": "", "staff_comments": "", "deleted": "0", "files": "s:0:\"\";", "discount_code_used": "", "coupon_code": "", "inventory": [ { "id": "5341", "stock_code": "Test01", "quantity": "1", "name": "Test Product 1", "unit_price": "8.00", "line_total_discount": "0.00", "options": "", "notes": "", "sales_channel_item_id": "" } ] } }