How to add new Customer Address By REST API Magento 2?

New Customer Address Using REST API in Magento 2 using URL, rest/{store_code}/V1/customers/me

If you want to add a customer address using REST API from the third party system instead of directly adding an address from the admin panel, this is a useful article for you.

You must require a customer token before adding a new address using REST API. This customer access token value will be passed in the Request Header.

Check the link,  Generate Customer Token by REST API.

Step by step guide to creating a new address using POSTMAN,

Endpoint URL:

Where store_code is your store code. Native store_code is the default. You can get its value from the store database table.

Action:
PUT

Headers:

Payload Request Body:

In the Payload body,

first name, Last name, email, website_id all are required fields.

Under the addresses object, all the fields are required which I mentioned in the above example.

You can assign default_shipping and default_billing as per your requirement.

When you run the given payload, Output will be display based on your data, and your addresses will be inserted to the customer address.