{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Content-Type": "application/json" }, "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", "Location": "/api/admin/payment_profiles/5d5ecb28d4322a04dfbf74f0/saved_credit_cards/5d5ecb28d4322a04dfbf74f5", "Content-Type": "application/json; charset=utf-8", "ETag": "W/\"a202764f73749f4d3cbbff40a4fea85a\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "6330f853-b628-4edb-be6b-71d86f91ff6f", "X-Runtime": "0.017509", "Expires": "0", "Content-Length": "323" }, "request_method": "POST", "request_path": "/api/admin/payment_profiles/5d5ecb28d4322a04dfbf74f0/saved_credit_cards", "request_body": "{\"saved_credit_card\":{\"created_at\":\"2019-08-22T17:04:40.945Z\",\"default\":false,\"display_number\":\"XXXX-XXXX-XXXX-1\",\"first_name\":\"Ben\",\"issuer\":\"Test Card\",\"last_name\":\"Crouse\",\"month\":1,\"profile_id\":\"5d5ecb28d4322a04dfbf74f3\",\"token\":\"1\",\"updated_at\":\"2019-08-22T17:04:40.945Z\",\"year\":2020}}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"saved_credit_card\": {\n \"_id\": \"5d5ecb28d4322a04dfbf74f5\",\n \"created_at\": \"2019-08-22T17:04:40.945Z\",\n \"default\": false,\n \"display_number\": \"XXXX-XXXX-XXXX-1\",\n \"first_name\": \"Ben\",\n \"issuer\": \"Test Card\",\n \"last_name\": \"Crouse\",\n \"month\": 1,\n \"profile_id\": \"5d5ecb28d4322a04dfbf74f0\",\n \"token\": \"1\",\n \"updated_at\": \"2019-08-22T17:04:40.945Z\",\n \"year\": 2020\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/payment_profiles/5d5ecb28d4322a04dfbf74f0/saved_credit_cards\" -d '{\"saved_credit_card\":{\"created_at\":\"2019-08-22T17:04:40.945Z\",\"default\":false,\"display_number\":\"XXXX-XXXX-XXXX-1\",\"first_name\":\"Ben\",\"issuer\":\"Test Card\",\"last_name\":\"Crouse\",\"month\":1,\"profile_id\":\"5d5ecb28d4322a04dfbf74f3\",\"token\":\"1\",\"updated_at\":\"2019-08-22T17:04:40.945Z\",\"year\":2020}}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Saved Credit Cards", "description": "Creating a saved credit card", "route": "/api/admin/payment_profiles/:payment_profile_id/saved_credit_cards", "http_method": "POST" }