{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json" }, "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", "Location": "/api/admin/fulfillments/1234", "Content-Type": "application/json; charset=utf-8", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 27 Nov 2019 00:44:46 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "0d009e4e-e602-4463-a031-47ad0a2fb329", "X-Runtime": "0.229551", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "437" }, "request_method": "POST", "request_path": "/api/admin/fulfillments/1234/ship_items", "request_body": "{\"tracking_number\":\"1Z\",\"items\":[{\"id\":\"5dddc6fa1241594254076344\",\"quantity\":1}]}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"fulfillment\": {\n \"_id\": \"1234\",\n \"created_at\": \"2019-11-27T00:44:45.639Z\",\n \"items\": [\n {\n \"_id\": \"5dddc6fd1241594254076373\",\n \"created_at\": null,\n \"events\": [\n {\n \"_id\": \"5dddc6fd1241594254076375\",\n \"created_at\": \"2019-11-27T00:44:45.995Z\",\n \"data\": {\n \"tracking_number\": \"1z\"\n },\n \"quantity\": 1,\n \"status\": \"shipped\",\n \"updated_at\": \"2019-11-27T00:44:45.995Z\"\n }\n ],\n \"order_item_id\": \"5dddc6fa1241594254076344\",\n \"quantity\": 2,\n \"updated_at\": null\n }\n ],\n \"updated_at\": \"2019-11-27T00:44:45.998Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/fulfillments/1234/ship_items\" -d '{\"tracking_number\":\"1Z\",\"items\":[{\"id\":\"5dddc6fa1241594254076344\",\"quantity\":1}]}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Fulfillment", "description": "Marking items as shipped", "route": "/api/admin/fulfillments/:order_id/ship_items", "http_method": "POST" }