{ "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, 19 Aug 2020 13:49:08 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "03eaea3a-8c2a-4653-9326-c73bd3a0a0df", "X-Runtime": "0.298634", "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\":\"5f3d2dcf0218236de151f169\",\"quantity\":1}]}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"fulfillment\": {\n \"_id\": \"1234\",\n \"created_at\": \"2020-08-19T13:49:07.394Z\",\n \"items\": [\n {\n \"_id\": \"5f3d2dd30218236de151f198\",\n \"created_at\": null,\n \"events\": [\n {\n \"_id\": \"5f3d2dd30218236de151f19a\",\n \"created_at\": \"2020-08-19T13:49:07.860Z\",\n \"data\": {\n \"tracking_number\": \"1z\"\n },\n \"quantity\": 1,\n \"status\": \"shipped\",\n \"updated_at\": \"2020-08-19T13:49:07.860Z\"\n }\n ],\n \"order_item_id\": \"5f3d2dcf0218236de151f169\",\n \"quantity\": 2,\n \"updated_at\": null\n }\n ],\n \"updated_at\": \"2020-08-19T13:49:07.863Z\"\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\":\"5f3d2dcf0218236de151f169\",\"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" }