{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Authorization": "Token token=\"DQKxg6mi7izwjdLNV8QhmHYS\"" }, "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:16 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "7cfdf86e-5030-43fb-85fa-c5c4cbea058f", "X-Runtime": "0.005535", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "571" }, "request_method": "GET", "request_path": "/api/storefront/saved_credit_cards", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"user_id\": \"5dddc8fc1241596aa5204f74\",\n \"credit_cards\": [\n {\n \"id\": \"5dddc8fc1241596aa5204f79\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5dddc8fc1241596aa5204f79\",\n \"default\": false,\n \"issuer\": \"Visa\",\n \"display_number\": \"XXXX-XXXX-XXXX-1881\",\n \"month\": 3,\n \"year\": 2023,\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\"\n },\n {\n \"id\": \"5dddc8fc1241596aa5204f7a\",\n \"url\": \"http://www.example.com/api/storefront/saved_credit_cards/5dddc8fc1241596aa5204f7a\",\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 }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/storefront/saved_credit_cards\" -X GET \\\n\t-H \"Authorization: Token token=\\\"DQKxg6mi7izwjdLNV8QhmHYS\\\"\"" } ], "resource": "Saved Credit Cards", "description": "Listing the user's saved credit cards", "route": "/api/storefront/saved_credit_cards", "explanation": "

List a customer's saved addresses. Useful for account management.
\nThese addresses will be available to the customer in an
\nauthenticated checkout.

\n", "http_method": "GET" }