Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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).

Optionally, set billing_info to record customer-specific billing information (e.g. a VAT number or an Italian codice fiscale), and notes to attach free-text instructions — useful as delivery notes when the address is used as a shipping address.

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