Logo
Salesforce Developers API Documentation

Add shipping address (if address does not exist)

POST {{orgUrl}}/services/data/v{{apiVersion}}/commerce/webstores/{{webstoreId}}/accounts/{{buyerAccountId}}/addresses

Adds a shipping address associated with the buyer account (variable buyerAccountId) and stores the address identifier into the variable _addressId.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST '/services/data/v57.0/commerce/webstores//accounts//addresses' -d '{"city":"Boston","country":"US","isDefault":false,"name":"Home Address","postalCode":"01234","region":"MA","street":"1 Milk Street","addressType":"Shipping"}'

ENDPOINTS