curl --location --request GET 'https://api.stateset.com/v1/order/retrieve' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token <token>' \ --data-raw '{ "id": "ord_1NXWPnCo6bFb1KQto6C8OWvE", }'
{ "order": { "id": "ord_1NXWPnCo6bFb1KQto6C8OWvE", "name": "Example Order", "order_number": "ORD-12345", "created_date": "2023-08-23T10:00:00Z", "updated_date": "2023-08-23T11:00:00Z", "order_status": "Processing", "imported_status": "Completed", "delivery_date": "2023-08-30T14:00:00Z", "ordered_by": "John Doe", "delivery_address": "123 Main St, Anytown, AN 12345", "notes": "Please handle with care", "imported_date": "2023-08-23T09:00:00Z", "customer_number": "CUST-6789", "customer_name": "John Doe", "import": true, "customer_email": "john.doe@example.com", "source": "Online Store", "buyer_email": "john.doe@example.com", "buyer_message": "Looking forward to receiving the order!", "cancel_order_sla_time": null, "cancel_reason": null, "cancellation_initiator": null, "fulfillment_type": "Standard", "delivery_type": "Home Delivery", "is_cod": false, "is_replacement_order": false, "seller_note": "Thank you for your order", "status": "Processing", "tracking_number": "TRACK-98765", "warehouse_id": "wh_2MXYQoDp7cGc2LRup7D9PXvF", "order_line_items": [ { "id": "oli_3OYZRpEq8dHd3MSvq8E0QYwG", "wholesale_order_id": "ord_1NXWPnCo6bFb1KQto6C8OWvE", "product_name": "Example Product", "quantity": "2", "created_date": "2023-08-23T10:05:00Z", "updated_date": "2023-08-23T10:05:00Z", "unit": "piece", "product_id": "prod_4PZaSqFr9eIe4NTwr9F1RZxH", "brand": "Example Brand", "stock_code": "EX-1234", "size": "Medium", "status": "In Stock", "sale_price": 2999, "seller_discount": 500, "seller_sku": "SKU-5678", "sku_id": "sku_6QAbTrGs0fJf5OUxs0G2SZyI", "sku_image": "https://example.com/images/product.jpg", "sku_name": "Example Product - Medium", "sku_type": "Standard", "original_price": 3499 } ] } }
This endpoint retrieves an order.
Show Show child attributes