Addresses
The address object and the allowed CRUD operations on the related resource endpoint
Addresses can be associated with orders as their shipping or billing addresses, or with stock locations as their physical address. Customers can save their most-used addresses in their address books (as customer addresses).
Set the business attribute to true for a business address (in which case company is required), or leave it false for a personal address (in which case first_name and last_name are required instead).
Geocoding
Add a Google or Bing geocoder to a market if you want its addresses to be automatically geocoded. When an address is created as the shipping or billing address of an order whose market has a valid geocoder attached, its lat and lng coordinates are automatically computed — the provider_name attribute records which service performed the geocoding, and map_url/static_map_url expose links to the resulting map. Use is_geocoded to check whether the coordinates were successfully computed, and is_localized to check whether coordinates are present at all (either geocoded or manually set).
Last updated