We are facing issue with the API we want to send the details of company, customer and shipping location in the order so order will display in the locations.
Topic summary
Core Issue:
Developers need to identify which specific company location placed a B2B order to retrieve its billing address, particularly when companies have multiple locations.
Initial Solution:
The purchasingEntity field on the Order object (accessible via GraphQL) provides the company location that placed the order, as shown in a shared screenshot.
Related Implementation Problems:
- Multiple users report issues creating orders via Shopify’s REST API where company shipping locations aren’t being properly associated with orders
- Orders imported from ERP systems through middleware (like Alumio) fail to display company location data
- Even when using GraphQL’s
orderCreatemutation withcompanyLocationId,customer.toAssociate.id, and address fields, created orders lack both shipping and billing addresses
Current Status:
The thread remains unresolved. One contributor suggests the REST API may not support this functionality and recommends using GraphQL’s orderCreate mutation with the company location ID field instead. Documentation around B2B order creation with company locations is noted as insufficient.