{ "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)" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "page": "1", "sort_by": "created_at", "sort_direction": "desc " }, "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:49 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "bde83a9e-63be-463a-8ce3-1c575a96c661", "X-Runtime": "0.011369", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "5100" }, "request_method": "GET", "request_path": "/api/admin/orders?page=1&sort_by=created_at&sort_direction=desc+", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"orders\": [\n {\n \"_id\": \"1001\",\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:45.989Z\",\n \"discount_ids\": [\n\n ],\n \"email\": \"bcrouse-new@workarea.com\",\n \"fraud_decided_at\": \"2019-11-27T00:36:48.186Z\",\n \"fraud_decision\": {\n \"_id\": \"5dddc5201241594254075626\",\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\": \"5dddc51d12415942540755e4\",\n \"category_ids\": [\n\n ],\n \"created_at\": \"2019-11-27T00:36:45.989Z\",\n \"customizations\": {\n },\n \"discountable\": true,\n \"free_gift\": false,\n \"fulfillment\": \"shipping\",\n \"price_adjustments\": [\n {\n \"_id\": \"5dddc51f1241594254075624\",\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\": \"1614B21D4D\",\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:45.658Z\",\n \"created_at\": \"2019-11-27T00:36:42.176Z\",\n \"variants\": [\n {\n \"_id\": \"5dddc51a12415942540755a3\",\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:45.789Z\"\n },\n \"product_id\": \"1614B21D4D\",\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:45.989Z\",\n \"via\": null\n }\n ],\n \"lock_expires_at\": null,\n \"metrics_saved_at\": \"2019-11-27T00:36:48.832Z\",\n \"placed_at\": \"2019-11-27T00:36:48.638Z\",\n \"pricing_cache_key\": \"1a0696b21d2a253e2cf675f4c8d8a5f31230347b\",\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\": \"hT61KZVCbrmCuh7LvwBJd2Uq\",\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:48.643Z\",\n \"user_activity_id\": null,\n \"user_agent\": null,\n \"user_id\": null\n },\n {\n \"_id\": \"1000\",\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:42.390Z\",\n \"discount_ids\": [\n\n ],\n \"email\": \"bcrouse-new@workarea.com\",\n \"fraud_decided_at\": \"2019-11-27T00:36:44.556Z\",\n \"fraud_decision\": {\n \"_id\": \"5dddc51c12415942540755d4\",\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\": \"5dddc51a12415942540755a9\",\n \"category_ids\": [\n\n ],\n \"created_at\": \"2019-11-27T00:36:42.390Z\",\n \"customizations\": {\n },\n \"discountable\": true,\n \"free_gift\": false,\n \"fulfillment\": \"shipping\",\n \"price_adjustments\": [\n {\n \"_id\": \"5dddc51b12415942540755d2\",\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\": \"1614B21D4D\",\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:42.176Z\",\n \"created_at\": \"2019-11-27T00:36:42.176Z\",\n \"variants\": [\n {\n \"_id\": \"5dddc51a12415942540755a3\",\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:42.368Z\"\n },\n \"product_id\": \"1614B21D4D\",\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:42.390Z\",\n \"via\": null\n }\n ],\n \"lock_expires_at\": null,\n \"metrics_saved_at\": \"2019-11-27T00:36:45.303Z\",\n \"placed_at\": \"2019-11-27T00:36:45.030Z\",\n \"pricing_cache_key\": \"e3d317037138dce0a16d0ef03aa43731a7cf7572\",\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\": \"XTu6w8mWR254joNcpBVQLB6z\",\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:45.037Z\",\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+\" -X GET " } ], "resource": "Orders", "description": "Listing orders", "route": "/api/admin/orders", "http_method": "GET" }