{ "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", "ETag": "W/\"3a0f2cdf376820db5c632d8cecb5e16d\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "6228c126-77de-4c0c-b7d7-d3e9847cd8a3", "X-Runtime": "0.229706", "Expires": "0", "Content-Length": "416" }, "request_method": "POST", "request_path": "/api/admin/fulfillments/1234/cancel_items", "request_body": "{\"items\":[{\"id\":\"5d5dbc85d4322a4b69d78384\",\"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-08-21T21:49:59.664Z\",\n \"items\": [\n {\n \"_id\": \"5d5dbc87d4322a4b69d783b1\",\n \"created_at\": null,\n \"events\": [\n {\n \"_id\": \"5d5dbc87d4322a4b69d783b2\",\n \"created_at\": \"2019-08-21T21:49:59.960Z\",\n \"data\": {\n },\n \"quantity\": 1,\n \"status\": \"canceled\",\n \"updated_at\": \"2019-08-21T21:49:59.960Z\"\n }\n ],\n \"order_item_id\": \"5d5dbc85d4322a4b69d78384\",\n \"quantity\": 2,\n \"updated_at\": null\n }\n ],\n \"updated_at\": \"2019-08-21T21:49:59.964Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/fulfillments/1234/cancel_items\" -d '{\"items\":[{\"id\":\"5d5dbc85d4322a4b69d78384\",\"quantity\":1}]}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Fulfillment", "description": "Marking items as canceled", "route": "/api/admin/fulfillments/:order_id/cancel_items", "http_method": "POST" }