Skip to main content

Addresses API

Requires access to protected customer data. Most properties require level 2 access. The company property requires level 1 access.

The Addresses API provides read-only access to the shipping and billing addresses associated with an order on the Order status page. Use this API to read structured MailingAddress data, including recipient names, street addresses, and country details.

Address data reflects the state at the time the order was placed. If the customer updates their address in their account after placing the order, the values returned by this API don't change.

  • Display shipping details: Show the shipping address associated with the order, such as the recipient name, street address, city, and country.
  • Display billing details: Show the billing address used for the order's payment.
  • Address comparison: Compare the shipping and billing addresses to determine if they differ, and display a summary to the buyer.

The shopify global object provides the shipping and billing addresses associated with the order. Access the following properties on shopify to read the mailing addresses that were used for the order.

Anchor to billingAddress
billingAddress
< | undefined>

The billing address associated with the buyer's payment method for the order. The value is undefined if the order doesn't have a billing address on file.

Reflects the state at the time the order was placed. Doesn't update if the customer changes their account address afterward.

Anchor to shippingAddress
shippingAddress
< | undefined>

The shipping address that the buyer provided for the order. This is where physical goods are delivered. The value is undefined if the order contains only digital products or if a shipping address wasn't required.

Reflects the state at the time the order was placed. Doesn't update if the customer changes their account address afterward.


  • Handle digital-only orders: Orders that contain only digital products may not have a shipping address. Check for undefined before rendering any shipping-related UI.

Was this page helpful?