{ "opencollection": "1.0.0", "info": { "name": "SAP Commerce Cloud Admin Addresses API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://{tenant}.{region}.commercecloud.sap/authorizationserver/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Addresses", "type": "folder" }, "items": [ { "info": { "name": "SAP Commerce Cloud List user addresses", "type": "http" }, "http": { "method": "GET", "url": "https://{tenant}.{region}.commercecloud.sap/users/:userId/addresses", "params": [ { "name": "userId", "value": "", "type": "path", "description": "User identifier. Use 'current' for the authenticated user or 'anonymous' for guest users." }, { "name": "fields", "value": "", "type": "query", "description": "Response field configuration level. Use BASIC, DEFAULT, or FULL to control the amount of data returned." } ] }, "docs": "Retrieve all addresses for a specific user." }, { "info": { "name": "SAP Commerce Cloud Create a user address", "type": "http" }, "http": { "method": "POST", "url": "https://{tenant}.{region}.commercecloud.sap/users/:userId/addresses", "params": [ { "name": "userId", "value": "", "type": "path", "description": "User identifier. Use 'current' for the authenticated user or 'anonymous' for guest users." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Add a new address to the user's address book." }, { "info": { "name": "SAP Commerce Cloud Get user address", "type": "http" }, "http": { "method": "GET", "url": "https://{tenant}.{region}.commercecloud.sap/users/:userId/addresses/:addressId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "User identifier. Use 'current' for the authenticated user or 'anonymous' for guest users." }, { "name": "addressId", "value": "", "type": "path", "description": "Address identifier" }, { "name": "fields", "value": "", "type": "query", "description": "Response field configuration level. Use BASIC, DEFAULT, or FULL to control the amount of data returned." } ] }, "docs": "Retrieve a specific address from the user's address book." }, { "info": { "name": "SAP Commerce Cloud Update user address", "type": "http" }, "http": { "method": "PATCH", "url": "https://{tenant}.{region}.commercecloud.sap/users/:userId/addresses/:addressId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "User identifier. Use 'current' for the authenticated user or 'anonymous' for guest users." }, { "name": "addressId", "value": "", "type": "path", "description": "Address identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a specific address in the user's address book." }, { "info": { "name": "SAP Commerce Cloud Delete user address", "type": "http" }, "http": { "method": "DELETE", "url": "https://{tenant}.{region}.commercecloud.sap/users/:userId/addresses/:addressId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "User identifier. Use 'current' for the authenticated user or 'anonymous' for guest users." }, { "name": "addressId", "value": "", "type": "path", "description": "Address identifier" } ] }, "docs": "Remove an address from the user's address book." } ] } ], "bundled": true }