{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Token token=\"4rpLsZrnP7ckZABRgAtSLPh5\"" }, "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", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*", "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS", "X-Requested-With": "", "Vary": "X-Requested-With, X-Flash-Messages", "ETag": "W/\"b9b9bbd05d85d21a031ade80e2e8f7e8\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "172ca661-9a58-40f6-b634-54cdc1cb61b7", "X-Runtime": "0.026547", "Expires": "0", "Content-Length": "572" }, "request_method": "DELETE", "request_path": "/api/storefront/carts/85BAD11EE5/items/5d5eca75d4322a04dfbf6dbf", "request_body": null, "request_content_type": "application/x-www-form-urlencoded", "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"order\": {\n \"id\": \"85BAD11EE5\",\n \"url\": \"http://www.example.com/api/storefront/orders/85BAD11EE5\",\n \"user_id\": \"5d5eca75d4322a04dfbf6db8\",\n \"email\": \"bcrouse@workarea.com\",\n \"placed_at\": null,\n \"canceled_at\": null,\n \"promo_codes\": [\n\n ],\n \"requires_shipping\": false,\n \"items\": [\n\n ],\n \"pricing\": {\n \"price_adjustments\": [\n\n ],\n \"shipping_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"tax_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"subtotal_price\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"total_price\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"paid_amount\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n }\n },\n \"shipping_service\": null,\n \"tenders\": [\n\n ]\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/storefront/carts/85BAD11EE5/items/5d5eca75d4322a04dfbf6dbf\" -d '' -X DELETE \\\n\t-H \"Content-Type: application/x-www-form-urlencoded\" \\\n\t-H \"Authorization: Token token=\\\"4rpLsZrnP7ckZABRgAtSLPh5\\\"\"" } ], "resource": "Cart", "description": "Delete an item", "route": "/api/storefront/carts/:cart_id/items/:id", "http_method": "DELETE", "explanation": " Removes an item in the cart. Use the create a cart endpoint to get a\n cart ID to use with this endpoint, and use the adding an item\n endpoint to get an ID for an item.\n" }