Logo
Salesforce Developers API Documentation

Update shipping address (if address exists)

PATCH {{orgUrl}}/services/data/v{{apiVersion}}/commerce/webstores/{{webstoreId}}/accounts/{{buyerAccountId}}/addresses/:addressId

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 PATCH '/services/data/v57.0/commerce/webstores//accounts//addresses/:addressId' -d '{"city":"Boston","country":"US","isDefault":false,"name":"Home Address","postalCode":"01234","region":"MA","street":"123 Main Street","addressType":"Shipping"}'

ENDPOINTS