{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Token token=\"nSBVAgAPSRSVjqgHPsyTuLZV\"" }, "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/\"92e1ed95a3c830a3a8371002863765cc\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "230a7c6c-bbf6-48df-8f65-41ad934a357b", "X-Runtime": "0.014275", "Expires": "0", "Content-Length": "544" }, "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\": \"9A551D81A1\",\n \"url\": \"http://www.example.com/api/storefront/orders/9A551D81A1\",\n \"user_id\": \"5d5eca19d4322a04dfbf690d\",\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\" \\\n\t-H \"Authorization: Token token=\\\"nSBVAgAPSRSVjqgHPsyTuLZV\\\"\"" } ], "resource": "Cart", "description": "Creating a new cart for a user", "route": "/api/storefront/carts", "http_method": "POST", "explanation": " Here's how to create a cart for a user. This endpoint allows the\n possibility of multiple carts for a user.\n" }