{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Token token=\"T5UFvcvvZfJMqs71igMzNU41\"" }, "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-Workarea-Segments", "Last-Modified": "Wed, 19 Aug 2020 13:54:45 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "eaf1e185-572d-4922-acd1-1a43a69ea59a", "X-Runtime": "0.044303", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "572" }, "request_method": "DELETE", "request_path": "/api/storefront/carts/F496517F63/items/5f3d2f250218236e938cedc3", "request_body": null, "request_content_type": "application/x-www-form-urlencoded", "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"order\": {\n \"id\": \"F496517F63\",\n \"url\": \"http://www.example.com/api/storefront/orders/F496517F63\",\n \"user_id\": \"5f3d2f240218236e938cedad\",\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/F496517F63/items/5f3d2f250218236e938cedc3\" -d '' -X DELETE \\\n\t-H \"Content-Type: application/x-www-form-urlencoded\" \\\n\t-H \"Authorization: Token token=\\\"T5UFvcvvZfJMqs71igMzNU41\\\"\"" } ], "resource": "Cart", "description": "Delete an item", "route": "/api/storefront/carts/:cart_id/items/:id", "explanation": "
Removes an item in the cart. Use the create a cart endpoint to get a
\ncart ID to use with this endpoint, and use the adding an item
\nendpoint to get an ID for an item.