{ "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/\"f870f0afa3ec87dd338c9aaefac4364d\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "8c2593f6-369e-4cda-b9ee-45293db07901", "X-Runtime": "0.016652", "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-21T21:50:38.045Z\",\n \"discount_ids\": [\n\n ],\n \"email\": \"bcrouse-new@workarea.com\",\n \"ip_address\": null,\n \"items\": [\n {\n \"_id\": \"5d5dbcaed4322a4b69d7866a\",\n \"category_ids\": [\n\n ],\n \"created_at\": \"2019-08-21T21:50:38.044Z\",\n \"customizations\": {\n },\n \"discountable\": true,\n \"free_gift\": false,\n \"price_adjustments\": [\n {\n \"_id\": \"5d5dbcafd4322a4b69d78692\",\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\": \"342D34776D\",\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:37.876Z\",\n \"created_at\": \"2019-08-21T21:50:37.876Z\",\n \"variants\": [\n {\n \"_id\": \"5d5dbcadd4322a4b69d78669\",\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:38.029Z\"\n },\n \"product_id\": \"342D34776D\",\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:38.044Z\",\n \"via\": null\n }\n ],\n \"lock_expires_at\": null,\n \"metrics_saved_at\": \"2019-08-21T21:50:40.449Z\",\n \"placed_at\": \"2019-08-21T21:50:40.271Z\",\n \"pricing_cache_key\": \"61decf1431fc672399c64fb960b3d15f99ab4d86\",\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\": \"H4X1kFCgBXcqoJe19JXzh8Yu\",\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:40.274Z\",\n \"user_activity_id\": null,\n \"user_agent\": null,\n \"user_id\": null\n },\n \"payment\": {\n \"_id\": \"1234\",\n \"address\": {\n \"_id\": \"5d5dbcaed4322a4b69d7867a\",\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-21T21:50:38.344Z\",\n \"credit_card\": {\n \"_id\": \"5d5dbcafd4322a4b69d78689\",\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-21T21:50:40.023Z\",\n \"year\": 2020\n },\n \"profile_id\": \"5d5dbcaed4322a4b69d78688\",\n \"updated_at\": \"2019-08-21T21:50:40.032Z\"\n },\n \"payment_transactions\": [\n {\n \"_id\": \"5d5dbcb0d4322a4b69d78696\",\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-21T21:50:40.026Z\",\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\": \"5d5dbcafd4322a4b69d78689\",\n \"updated_at\": \"2019-08-21T21:50:40.026Z\"\n }\n ],\n \"fulfillment\": {\n \"_id\": \"1234\",\n \"created_at\": \"2019-08-21T21:50:40.455Z\",\n \"items\": [\n {\n \"_id\": \"5d5dbcb0d4322a4b69d78697\",\n \"created_at\": null,\n \"order_item_id\": \"5d5dbcaed4322a4b69d7866a\",\n \"quantity\": 2,\n \"updated_at\": null\n }\n ],\n \"updated_at\": \"2019-08-21T21:50:40.455Z\"\n },\n \"shippings\": [\n {\n \"_id\": \"5d5dbcaed4322a4b69d7866b\",\n \"address\": {\n \"_id\": \"5d5dbcaed4322a4b69d7866c\",\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-21T21:50:38.141Z\",\n \"discount_ids\": [\n\n ],\n \"instructions\": \"\",\n \"order_id\": \"1234\",\n \"price_adjustments\": [\n {\n \"_id\": \"5d5dbcaed4322a4b69d78687\",\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 13\",\n \"price\": \"shipping\",\n \"quantity\": 1,\n \"updated_at\": null\n }\n ],\n \"quantities\": {\n },\n \"shipping_service\": {\n \"_id\": \"5d5dbcaed4322a4b69d78678\",\n \"carrier\": null,\n \"created_at\": null,\n \"name\": \"Test 13\",\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-21T21:50:39.484Z\"\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" }