{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json", "Authorization": "Token token=\"gFyrUCzJ3YzRCAZvcP9GwvUw\"" }, "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/\"c7bf2ab3202f0c653f4049acf27a3908\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "e4457a5b-7fc8-4c81-8bd2-9ce6749da76d", "X-Runtime": "0.010508", "Expires": "0", "Content-Length": "294" }, "request_method": "POST", "request_path": "/api/storefront/saved_credit_cards", "request_body": "{\"number\":\"4111111111111111\",\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"month\":\"7\",\"year\":\"2024\",\"cvv\":\"123\"}", "request_content_type": "application/json", "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"user_id\": \"5d5ec9cfd4322a04dfbf632b\",\n \"id\": \"5d5ec9cfd4322a04dfbf6330\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5d5ec9cfd4322a04dfbf6330\",\n \"default\": false,\n \"issuer\": \"Visa\",\n \"display_number\": \"XXXX-XXXX-XXXX-1111\",\n \"month\": 7,\n \"year\": 2024,\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\"\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/storefront/saved_credit_cards\" -d '{\"number\":\"4111111111111111\",\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"month\":\"7\",\"year\":\"2024\",\"cvv\":\"123\"}' -X POST \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"Authorization: Token token=\\\"gFyrUCzJ3YzRCAZvcP9GwvUw\\\"\"" } ], "resource": "Saved Credit Cards", "description": "Creating a saved credit card", "route": "/api/storefront/saved_credit_cards", "http_method": "POST" }