Address Update

Sync Shipping Address updates from Shopify to ESW

1. Subscribe to the Order Updates Webhook in Shopify

Listen for the orders/updated webhook to track shipping address updates made to an order.


2. ESW API Call

Sync shipping address changes to ESW using the Update Contact Details API.

Call

PUT
/v2/{tenantCode}/Order/{brandOrderReference}/ContactDetails

Code Snippet

Request
curl -i -X PUT \
  'https://api.sandbox.esw.com/v2/{tenantCode}/Order/{brandOrderReference}/ContactDetails' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "transactionReference": "C857B3CD-5EB7-426D-8741-812E5ED214C0",
    "transactionDateTime": "\"2019-10-14T15:56:18.455Z\"",
    "actionedBy": "Retailer",
    "actionedByUser": "johnsmith@test.com",
    "contactDetails": {
      "contactDetailsType": "IsDelivery",
      "address1": "1234 Line Ave S",
      "address2": "Apt B1",
      "address3": "New York state",
      "city": "New York city",
      "postalCode": "10001",
      "region": "Region",
      "email": "email@test.com",
      "telephone": "+14211112222"
    }
  }'
Response
{
  "transactionReference": "46874510-DE4C-4748-A74C-97C54AFB4270"
}