{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/x-www-form-urlencoded" }, "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/\"a47c683a0a41cc3b8de2dda64404f553\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "52e3d358-78ad-48b9-b1ee-a340a014e609", "X-Runtime": "0.015314", "Expires": "0", "Content-Length": "522" }, "request_method": "POST", "request_path": "/api/storefront/carts", "request_body": null, "request_content_type": "application/x-www-form-urlencoded", "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"id\": \"08E34C003B\",\n \"url\": \"http://www.example.com/api/storefront/orders/08E34C003B\",\n \"user_id\": null,\n \"email\": null,\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}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/storefront/carts\" -d '' -X POST \\\n\t-H \"Content-Type: application/x-www-form-urlencoded\"" } ], "resource": "Cart", "description": "Creating a new guest cart", "route": "/api/storefront/carts", "http_method": "POST", "explanation": " Use this endpoint to create a cart. This allows the possibility of\n multiple carts for a user.\n" }