{ "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" }, { "name": "email", "description": "Email address on the order" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "page": "1", "sort_by": "created_at", "sort_direction": "desc", "placed_at_greater_than": "2019-11-12 00:36:34 UTC", "placed_at_less_than": "2019-11-14 00:36:34 UTC", "email": "test@workarea.com" }, "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", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 27 Nov 2019 00:36:34 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "277b837f-eedf-40aa-bbdf-070c79757e3f", "X-Runtime": "0.012115", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "2550" }, "request_method": "GET", "request_path": "/api/admin/orders?page=1&sort_by=created_at&sort_direction=desc&placed_at_greater_than=2019-11-12+00%3A36%3A34+UTC&placed_at_less_than=2019-11-14+00%3A36%3A34+UTC&email=test%40workarea.com", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"orders\": [\n {\n \"_id\": \"10002\",\n \"canceled_at\": null,\n \"checkout_by_id\": null,\n \"checkout_started_at\": null,\n \"copied_from_id\": null,\n \"created_at\": \"2019-11-27T00:36:31.470Z\",\n \"discount_ids\": [\n\n ],\n \"email\": \"test@workarea.com\",\n \"fraud_decided_at\": \"2019-11-27T00:36:33.858Z\",\n \"fraud_decision\": {\n \"_id\": \"5dddc511124159425407555b\",\n \"analyzer\": \"Workarea::Checkout::Fraud::TestAnalyzer\",\n \"created_at\": null,\n \"decision\": \"no_decision\",\n \"message\": \"Workarea default fraud check. Automatic no decision.\",\n \"response\": null,\n \"updated_at\": null\n },\n \"fraud_suspected_at\": null,\n \"ip_address\": null,\n \"items\": [\n {\n \"_id\": \"5dddc50f12415942540754bd\",\n \"category_ids\": [\n\n ],\n \"created_at\": \"2019-11-27T00:36:31.470Z\",\n \"customizations\": {\n },\n \"discountable\": true,\n \"free_gift\": false,\n \"fulfillment\": \"shipping\",\n \"price_adjustments\": [\n {\n \"_id\": \"5dddc5111241594254075559\",\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\": \"6FFBF36DA3\",\n \"tags\": [\n\n ],\n \"active_segment_ids\": {\n \"en\": [\n\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-11-27T00:36:30.777Z\",\n \"created_at\": \"2019-11-27T00:35:55.353Z\",\n \"variants\": [\n {\n \"_id\": \"5dddc4eb124159425407528a\",\n \"active_segment_ids\": {\n \"en\": [\n\n ]\n },\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-11-27T00:36:31.263Z\"\n },\n \"product_id\": \"6FFBF36DA3\",\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-11-27T00:36:31.470Z\",\n \"via\": null\n }\n ],\n \"lock_expires_at\": null,\n \"metrics_saved_at\": \"2019-11-27T00:36:34.488Z\",\n \"placed_at\": \"2019-11-13T00:36:30.756Z\",\n \"pricing_cache_key\": \"c128e650f1adc1387430c080e9192336dc9d3961\",\n \"promo_codes\": [\n\n ],\n \"reminded_at\": null,\n \"segment_ids\": [\n\n ],\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\": \"fXaAc58HTshaiNBauQBeNSe1\",\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-11-27T00:36:34.673Z\",\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-11-12+00%3A36%3A34+UTC&placed_at_less_than=2019-11-14+00%3A36%3A34+UTC&email=test%40workarea.com\" -X GET " } ], "resource": "Orders", "description": "Viewing orders by date range", "route": "/api/admin/orders", "http_method": "GET" }