{ "parameters": [ ], "response_fields": [ ], "requests": [ { "request_headers": { "Authorization": "Token token=\"dgmaPerDfVwh8Q9fUkaBX74f\"" }, "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, 19 Aug 2020 13:58:27 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "5e584fd6-e865-4973-9916-2e9596c4cadc", "X-Runtime": "0.004913", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "734" }, "request_method": "GET", "request_path": "/api/storefront/saved_addresses", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"user_id\": \"5f3d30020218236e938cfb66\",\n \"addresses\": [\n {\n \"url\": \"http://www.example.com/api/storefront/saved_addresses/5f3d30030218236e938cfb6a\",\n \"id\": \"5f3d30030218236e938cfb6a\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": null,\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": \"6465552390\",\n \"phone_extension\": null\n },\n {\n \"url\": \"http://www.example.com/api/storefront/saved_addresses/5f3d30030218236e938cfb6b\",\n \"id\": \"5f3d30030218236e938cfb6b\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"4059 Mt Lee Dr.\",\n \"street_2\": null,\n \"city\": \"Hollywood\",\n \"country\": \"US\",\n \"region\": \"CA\",\n \"postal_code\": \"90068\",\n \"phone_number\": \"7545552390\",\n \"phone_extension\": null\n }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/storefront/saved_addresses\" -X GET \\\n\t-H \"Authorization: Token token=\\\"dgmaPerDfVwh8Q9fUkaBX74f\\\"\"" } ], "resource": "Saved Addresses", "description": "Listing the user's saved addresses", "route": "/api/storefront/saved_addresses", "explanation": "
List a customer's saved addresses. Useful for account management and
\nfor using saved addresses in checkout.