Path:
GET /user/{userId}/address
Through this endpoint, users can easily retrieve of all their addresses. In order to retrieve a particular address, the Get Address by ID endpoint is used.
Content-Typeapplication/json
application/json
application/json
Type: Path
Name: System user ID
Required: true
Type: Body
Name: Address
Required: true
Path:
https://{baseurl}/user/5e97947d3cb8553c0e43d87f/address
Body:
{"address1":"10400 NE 4th St ","city":"Bellevue","state":"WA","country": "United States","zipCode":"98004","kind":"Billing","name":{"first":"John","last":"Doe"},"isVerified":true​}
HTTP Code : 200 Message : OK
Description: You will see this message when the address is successfully retrieved.
Sample
[{"isDefault": false,"isValidated": false,"_id": "5e98a2a13e9e9e495ed2e3b3","address1": "10400 NE 4th St ","city": "Bellevue","state": "WA","country": "United States","zipCode": "98004","kind": "Billing","name": {"first": "John","last": "Doe"},"address2": null,"attention": null,"company": null,"email": null,"phone": null,"id": "5e98a2a13e9e9e495ed2e3b3"}]
HTTP Code : 404 Message : Not Found
Description: You will see this error when the system user ID is incorrect.
Sample
{"code": "USER_NOT_FOUND","message": "User not found."}
Last updated - July 2020