{ "parameters": [ { "name": "page", "description": "Current page" }, { "name": "sort_by", "description": "Field on which to sort (see responses for possible values)" }, { "name": "sort_direction", "description": "Direction to sort (asc or desc)" }, { "name": "placed_at_greater_than", "description": "Start of a placed_at date range" }, { "name": "placed_at_less_than", "description": "End of a placed_at date range" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "page": "1", "sort_by": "created_at", "sort_direction": "desc", "placed_at_greater_than": "2019-08-06 21:50:37 UTC", "placed_at_less_than": "2019-08-08 21:50:37 UTC" }, "response_headers": { "X-Frame-Options": "SAMEORIGIN", "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Permitted-Cross-Domain-Policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", "Content-Type": "application/json; charset=utf-8", "ETag": "W/\"e69f67c45914437c3894b540dbff015c\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "3da811e5-6712-4707-bf20-422df4581498", "X-Runtime": "0.009365", "Expires": "0", "Content-Length": "2133" }, "request_method": "GET", "request_path": "/api/admin/orders?page=1&sort_by=created_at&sort_direction=desc&placed_at_greater_than=2019-08-06+21%3A50%3A37+UTC&placed_at_less_than=2019-08-08+21%3A50%3A37+UTC", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"orders\": [\n {\n \"_id\": \"1002\",\n \"canceled_at\": null,\n \"checkout_by_id\": null,\n \"checkout_started_at\": null,\n \"copied_from_id\": null,\n \"created_at\": \"2019-08-21T21:50:34.468Z\",\n \"discount_ids\": [\n\n ],\n \"email\": \"bcrouse-new@workarea.com\",\n \"ip_address\": null,\n \"items\": [\n {\n \"_id\": \"5d5dbcaad4322a4b69d78607\",\n \"category_ids\": [\n\n ],\n \"created_at\": \"2019-08-21T21:50:34.467Z\",\n \"customizations\": {\n },\n \"discountable\": true,\n \"free_gift\": false,\n \"price_adjustments\": [\n {\n \"_id\": \"5d5dbcabd4322a4b69d7865d\",\n \"amount\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"calculator\": \"Workarea::Pricing::Calculators::ItemCalculator\",\n \"created_at\": null,\n \"data\": {\n \"on_sale\": false,\n \"original_price\": 5.0,\n \"tax_code\": null\n },\n \"description\": \"Item Subtotal\",\n \"price\": \"item\",\n \"quantity\": 2,\n \"updated_at\": null\n }\n ],\n \"product_attributes\": {\n \"_id\": \"1C0FC41DF4\",\n \"tags\": [\n\n ],\n \"active\": {\n \"en\": true\n },\n \"subscribed_user_ids\": [\n\n ],\n \"details\": {\n \"en\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n }\n },\n \"filters\": {\n \"en\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n }\n },\n \"template\": \"generic\",\n \"purchasable\": true,\n \"name\": {\n \"en\": \"Test Product\"\n },\n \"digital\": false,\n \"slug\": \"test-product\",\n \"updated_at\": \"2019-08-21T21:50:34.149Z\",\n \"created_at\": \"2019-08-21T21:50:28.250Z\",\n \"variants\": [\n {\n \"_id\": \"5d5dbca4d4322a4b69d7858b\",\n \"active\": {\n \"en\": true\n },\n \"details\": {\n \"en\": {\n }\n },\n \"sku\": \"SKU\",\n \"name\": {\n \"en\": \"SKU\"\n },\n \"position\": 0\n }\n ],\n \"last_indexed_at\": \"2019-08-21T21:50:34.279Z\"\n },\n \"product_id\": \"1C0FC41DF4\",\n \"quantity\": 2,\n \"sku\": \"SKU\",\n \"total_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"total_value\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"updated_at\": \"2019-08-21T21:50:34.467Z\",\n \"via\": null\n }\n ],\n \"lock_expires_at\": null,\n \"metrics_saved_at\": \"2019-08-21T21:50:36.937Z\",\n \"placed_at\": \"2019-08-07T21:50:34.134Z\",\n \"pricing_cache_key\": \"de4cc6c12ae2fa9c7ea4c3e54b195a0034eecc80\",\n \"promo_codes\": [\n\n ],\n \"reminded_at\": null,\n \"shipping_total\": {\n \"cents\": 100.0,\n \"currency_iso\": \"USD\"\n },\n \"source\": null,\n \"subscribed_user_ids\": [\n\n ],\n \"subtotal_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"tax_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"token\": \"7JbWx9XWJFZEfiWCULbRnGPK\",\n \"total_price\": {\n \"cents\": 1100.0,\n \"currency_iso\": \"USD\"\n },\n \"total_value\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"updated_at\": \"2019-08-21T21:50:37.087Z\",\n \"user_activity_id\": null,\n \"user_agent\": null,\n \"user_id\": null\n }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/admin/orders?page=1&sort_by=created_at&sort_direction=desc&placed_at_greater_than=2019-08-06+21%3A50%3A37+UTC&placed_at_less_than=2019-08-08+21%3A50%3A37+UTC\" -X GET " } ], "resource": "Orders", "description": "Viewing orders by date range", "route": "/api/admin/orders", "http_method": "GET" }