Why does PurchasingCompany->location (CompanyLocation object) not have address data?

Topic summary

Core issue: In a Shopify Plus B2B checkout, the Delivery Customization function input only includes deliveryAddress and lacks company location address data, making it impossible to tell if the address was entered at checkout or sourced from the location’s default address, which affects Drop Ship fee logic.

Constraints noted:

  • CompanyLocation object does not expose address fields for comparison.
  • No ability to fetch additional Shopify data from within a Delivery Customization function.

Suggested workaround: Use metafields or cart attributes to pass needed data into the function. Metafields = custom data fields attached to resources; cart attributes = custom key-value data on the cart.

Outcome: The poster implemented a workaround by storing each location’s address in metafields via a CRM feed, enabling address comparison during checkout.

Next steps: A feature request will be submitted via the Shopify Delivery Customization API feedback channel to expose location address or an indicator of address origin.

Status: Workaround active; no native solution yet. Discussion remains open pending platform changes.

Summarized with AI on December 28. AI used: gpt-5.

Thanks for the reply.

I don’t think address information should be custom data for a location, so I’ll put in a feature request.
We love extensibility but its just not quite fleshed out enough for some of the B2B scenarios we have.

I actually ended up putting the address data in metafields on each location during our feed from the CRM, so I’m able to get the data I need for now.