{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json", "Authorization": "Token token=\"rtbqstRt5B87UebHPY4SYriL\"" }, "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, 27 Nov 2019 00:53:15 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "74d3bfbf-a7d2-435c-975c-c4906dac26bc", "X-Runtime": "0.010853", "X-Workarea-Segments": "", "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\": \"5dddc8fb1241596aa5204f6c\",\n \"id\": \"5dddc8fb1241596aa5204f72\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5dddc8fb1241596aa5204f72\",\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=\\\"rtbqstRt5B87UebHPY4SYriL\\\"\"" } ], "resource": "Saved Credit Cards", "description": "Creating a saved credit card", "route": "/api/storefront/saved_credit_cards", "http_method": "POST" }