{ "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/5d5dbd7dd4322a4b69d79187/saved_credit_cards/5d5dbd7dd4322a4b69d7918c", "Content-Type": "application/json; charset=utf-8", "ETag": "W/\"30535677d4768078369b92ebb9482ac0\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "3b9e28d4-5098-4523-90df-917018644985", "X-Runtime": "0.010240", "Expires": "0", "Content-Length": "323" }, "request_method": "POST", "request_path": "/api/admin/payment_profiles/5d5dbd7dd4322a4b69d79187/saved_credit_cards", "request_body": "{\"saved_credit_card\":{\"created_at\":\"2019-08-21T21:54:05.962Z\",\"default\":false,\"display_number\":\"XXXX-XXXX-XXXX-1\",\"first_name\":\"Ben\",\"issuer\":\"Test Card\",\"last_name\":\"Crouse\",\"month\":1,\"profile_id\":\"5d5dbd7dd4322a4b69d7918a\",\"token\":\"1\",\"updated_at\":\"2019-08-21T21:54:05.962Z\",\"year\":2020}}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"saved_credit_card\": {\n \"_id\": \"5d5dbd7dd4322a4b69d7918c\",\n \"created_at\": \"2019-08-21T21:54:05.962Z\",\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\": \"5d5dbd7dd4322a4b69d79187\",\n \"token\": \"1\",\n \"updated_at\": \"2019-08-21T21:54:05.962Z\",\n \"year\": 2020\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/payment_profiles/5d5dbd7dd4322a4b69d79187/saved_credit_cards\" -d '{\"saved_credit_card\":{\"created_at\":\"2019-08-21T21:54:05.962Z\",\"default\":false,\"display_number\":\"XXXX-XXXX-XXXX-1\",\"first_name\":\"Ben\",\"issuer\":\"Test Card\",\"last_name\":\"Crouse\",\"month\":1,\"profile_id\":\"5d5dbd7dd4322a4b69d7918a\",\"token\":\"1\",\"updated_at\":\"2019-08-21T21:54:05.962Z\",\"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" }