{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { }, "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/\"0332470b8e413a07a09e15c72436ffe7\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "0e1b5a3b-8500-4996-9024-20fe96c798c2", "X-Runtime": "0.014027", "Expires": "0", "Content-Length": "4703" }, "request_method": "GET", "request_path": "/api/admin/orders/1234", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"order\": {\n \"_id\": \"1234\",\n \"canceled_at\": null,\n \"checkout_by_id\": null,\n \"checkout_started_at\": null,\n \"copied_from_id\": null,\n \"created_at\": \"2019-08-22T17:00:43.424Z\",\n \"discount_ids\": [\n\n ],\n \"email\": \"bcrouse-new@workarea.com\",\n \"ip_address\": null,\n \"items\": [\n {\n \"_id\": \"5d5eca3bd4322a04dfbf6af4\",\n \"category_ids\": [\n\n ],\n \"created_at\": \"2019-08-22T17:00:43.424Z\",\n \"customizations\": {\n },\n \"discountable\": true,\n \"free_gift\": false,\n \"price_adjustments\": [\n {\n \"_id\": \"5d5eca3cd4322a04dfbf6b1c\",\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\": \"D10D3D1860\",\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-22T17:00:43.225Z\",\n \"created_at\": \"2019-08-22T17:00:43.225Z\",\n \"variants\": [\n {\n \"_id\": \"5d5eca3bd4322a04dfbf6af3\",\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-22T17:00:43.408Z\"\n },\n \"product_id\": \"D10D3D1860\",\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-22T17:00:43.424Z\",\n \"via\": null\n }\n ],\n \"lock_expires_at\": null,\n \"metrics_saved_at\": \"2019-08-22T17:00:46.067Z\",\n \"placed_at\": \"2019-08-22T17:00:45.872Z\",\n \"pricing_cache_key\": \"016d114784ae1dc80382787992572d9a922cd6ae\",\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\": \"ki1nPkGX389bNihFu3B25urd\",\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-22T17:00:45.876Z\",\n \"user_activity_id\": null,\n \"user_agent\": null,\n \"user_id\": null\n },\n \"payment\": {\n \"_id\": \"1234\",\n \"address\": {\n \"_id\": \"5d5eca3bd4322a04dfbf6b04\",\n \"city\": \"Philadelphia\",\n \"company\": null,\n \"country\": \"US\",\n \"created_at\": null,\n \"first_name\": \"Ben\",\n \"last_name\": \"Crouse\",\n \"phone_extension\": null,\n \"phone_number\": null,\n \"postal_code\": \"19106\",\n \"region\": \"PA\",\n \"street\": \"22 S. 3rd St.\",\n \"street_2\": \"Second Floor\",\n \"updated_at\": null\n },\n \"created_at\": \"2019-08-22T17:00:43.777Z\",\n \"credit_card\": {\n \"_id\": \"5d5eca3cd4322a04dfbf6b13\",\n \"amount\": {\n \"cents\": 1100.0,\n \"currency_iso\": \"USD\"\n },\n \"created_at\": null,\n \"display_number\": \"XXXX-XXXX-XXXX-1\",\n \"issuer\": \"Test Card\",\n \"month\": 1,\n \"saved_card_id\": null,\n \"token\": \"1\",\n \"updated_at\": \"2019-08-22T17:00:45.594Z\",\n \"year\": 2020\n },\n \"profile_id\": \"5d5eca3cd4322a04dfbf6b12\",\n \"updated_at\": \"2019-08-22T17:00:45.599Z\"\n },\n \"payment_transactions\": [\n {\n \"_id\": \"5d5eca3dd4322a04dfbf6b20\",\n \"action\": \"authorize\",\n \"amount\": {\n \"cents\": 1100.0,\n \"currency_iso\": \"USD\"\n },\n \"canceled_at\": null,\n \"cancellation\": null,\n \"created_at\": \"2019-08-22T17:00:45.597Z\",\n \"payment_id\": \"1234\",\n \"reference_id\": null,\n \"response\": {\n \"success\": true,\n \"message\": \"Bogus Gateway: Forced success\",\n \"params\": {\n \"authorized_amount\": \"11.00\"\n },\n \"options\": {\n \"test\": true,\n \"authorization\": \"53433\",\n \"avs_result\": {\n \"code\": null,\n \"message\": null,\n \"street_match\": null,\n \"postal_match\": null\n },\n \"cvv_result\": null\n }\n },\n \"success\": true,\n \"tender_id\": \"5d5eca3cd4322a04dfbf6b13\",\n \"updated_at\": \"2019-08-22T17:00:45.597Z\"\n }\n ],\n \"fulfillment\": {\n \"_id\": \"1234\",\n \"created_at\": \"2019-08-22T17:00:46.073Z\",\n \"items\": [\n {\n \"_id\": \"5d5eca3ed4322a04dfbf6b21\",\n \"created_at\": null,\n \"order_item_id\": \"5d5eca3bd4322a04dfbf6af4\",\n \"quantity\": 2,\n \"updated_at\": null\n }\n ],\n \"updated_at\": \"2019-08-22T17:00:46.073Z\"\n },\n \"shippings\": [\n {\n \"_id\": \"5d5eca3bd4322a04dfbf6af5\",\n \"address\": {\n \"_id\": \"5d5eca3bd4322a04dfbf6af6\",\n \"city\": \"Philadelphia\",\n \"company\": null,\n \"country\": \"US\",\n \"created_at\": null,\n \"first_name\": \"Ben\",\n \"last_name\": \"Crouse\",\n \"phone_extension\": null,\n \"phone_number\": null,\n \"postal_code\": \"19106\",\n \"region\": \"PA\",\n \"street\": \"22 S. 3rd St.\",\n \"street_2\": \"Second Floor\",\n \"updated_at\": null\n },\n \"created_at\": \"2019-08-22T17:00:43.534Z\",\n \"discount_ids\": [\n\n ],\n \"instructions\": \"\",\n \"order_id\": \"1234\",\n \"price_adjustments\": [\n {\n \"_id\": \"5d5eca3cd4322a04dfbf6b11\",\n \"amount\": {\n \"cents\": 100.0,\n \"currency_iso\": \"USD\"\n },\n \"calculator\": \"Workarea::Shipping\",\n \"created_at\": null,\n \"data\": {\n \"tax_code\": null\n },\n \"description\": \"Test 31\",\n \"price\": \"shipping\",\n \"quantity\": 1,\n \"updated_at\": null\n }\n ],\n \"quantities\": {\n },\n \"shipping_service\": {\n \"_id\": \"5d5eca3bd4322a04dfbf6b02\",\n \"carrier\": null,\n \"created_at\": null,\n \"name\": \"Test 31\",\n \"service_code\": null,\n \"tax_code\": null,\n \"updated_at\": null\n },\n \"shipping_total\": {\n \"cents\": 100.0,\n \"currency_iso\": \"USD\"\n },\n \"tax_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"updated_at\": \"2019-08-22T17:00:45.011Z\"\n }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/admin/orders/1234\" -X GET " } ], "resource": "Orders", "description": "Showing an order", "route": "/api/admin/orders/:id", "http_method": "GET" }