List All Orders
Returns a list of your orders. The results are returned sorted by updated date, with the most recently updated requests appearing first.
curl -X GET "https://api-dev.ezewholesale.com/api/v1/orders/seller?take=2&page=1" \
-H "x-api-key:your-api-key" \
-H 'Content-Type: application/json'
{ "total": "92", "data": [ { "id": "4c8089b9-1781-4440-80d9-db051dddbe4e", "orderDate": "2023-09-20T13:52:57.871044", "orderNo": "1695217489213", "status": "payment-confirmed", "quantity": "2", "products": "1", "totalPrice": "276.00", "amountPaid": "276.00", "items": [ { "id": "d6acd404-343b-464f-be26-29ff3e8a494f", "margin": 28, "name": "iPhone 14 Plus", "quantity": 2, "price": 138, "total": 276, "properties": { "color": "midnight", "grade": "A1", "carrier": "Carrier Locked", "storage": "1TB" }, "status": "awaiting-shipment", "imageUrl": "https://fdn2.gsmarena.com/vv/pics/apple/apple-iphone-14-plus-3.jpg", "warrantyTime": null, "shippingTime": null, "shippingMethod": "EZE_SHIPPING", "shipment": "shp_b41b9ecadb174eec92bbffa53e198ce5", "possibleStatuses": [ "seller-shipped", "canceled" ], "sellrequestId": "785d59c9-244d-4f7e-aeaa-a7c0f92e0d36" } ] }, { "id": "8691665a-a99c-4d25-98eb-ebd915e10f53", "orderDate": "2023-09-19T14:21:02.203726", "orderNo": "1695133111175", "status": "payment-confirmed", "quantity": "5", "products": "1", "totalPrice": "4525.00", "amountPaid": "4525.00", "items": [ { "id": "7db045b9-cd26-42be-ac74-04cfbfe91774", "margin": 90, "name": "iPhone XR", "quantity": 5, "price": 905, "total": 4525, "properties": { "color": "yellow", "grade": "C", "carrier": "Verizon", "storage": "64GB" }, "status": "ready-to-ship", "imageUrl": "https://storage.googleapis.com/ezetradein-gs-cld/ezetradein-website/products/smartphones/iPhone/iphone_xr.png", "warrantyTime": null, "shippingTime": null, "shippingMethod": "EZE_SHIPPING", "shipment": "shp_83cb1a6846fa4da6991c567be5eaf98f", "possibleStatuses": [], "sellrequestId": "785d59c9-244d-4f7e-aeaa-a7c0f92e0e58" } ] } ] }
Query Parameters
page Optional
Default: 1
Page number to fetch from.
take Optional
Default: 10
The number of records to return.
searchTerm Optional
Return results with their name having a full or partial match to the value provided.
sortDir Optional
Default: DESC
Sort result in ascending (ASC
) or descending (DESC
)order.
fromDate Optional
Example: 2022-11-15T10:30:35
Return orders that were created/updated on or after the value provided.
toDate Optional
Example: 2022-11-15T10:30:35
Return orders that were created/updated on or before the value provided.