Shopify Update Default Address to New Address
Updates the customer's default address to a new address
Updates the customer's default address to a new address.
This action can either take individual fields as inputs or a shopify address object.
There are 3 steps to this action:
- It'll get the current default address from the customer and enhance the provided address object with first_name, last_name, name and phone if those are not provided(uses this endpoint).
- With this new enhanced address, it will use this endpoint to create a new address for the customer.
- Finally, It will update the customer's default address with this endpoint.
Inputs
Name | Type | Description |
---|---|---|
Shopify Token | SensitiveString | Shopify API token |
Shopify Domain | String | Shopify domain |
Customer ID | String | Customer ID |
Address1 | Optional String | The street address of the shipping address. |
Address2 | Optional String | An optional additional field for the street address of the shipping address. |
City | Optional String | The city, town, or village of the shipping address. |
Company | Optional String | The company of the person associated with the shipping address. |
Country | Optional String | The name of the country of the shipping address. |
Country Code | Optional String | The two-letter code (ISO 3166-1 format) for the country of the shipping address. |
Province | Optional String | The name of the region (for example, province, state, or prefecture) of the shipping address. |
Province Code | Optional String | The two-letter abbreviation of the region of the shipping address. |
ZIP | Optional String | The postal code (for example, zip, postcode, or Eircode) of the shipping address. |
Shipping Address Object | Optional Object | Entire object in the Shopify format. Including fields: address1, address2, city, company, country, country_code, province, province_code, zip. |
Outputs
Name | Type | Description |
---|---|---|
Success | Boolean | Whether successfully updated the default address |
New Default Address | Object | New default address data |
Updated 6 months ago