Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to get company location that placed an order B2B

Solved

How to get company location that placed an order B2B

AH63935
Shopify Partner
37 1 27

Hi there,

 

So I am try to build a flow that needs information from the specific company location that placed an order (the company will have multiple locations), so I can get the billing address of that specific location of the company. I know GraphQL can pull all locations of the company, but how do I get just the location that had placed the order? Or is there a field on Shopify liquid that does that? Thanks!

Accepted Solution (1)

Kalen_Jordan
Shopify Partner
801 39 146

This is an accepted solution.

Check out the purchasing entity on the Order object:

 

Screenshot 2024-04-08 at 3.24.24 PM.png

View solution in original post

Replies 7 (7)

Kalen_Jordan
Shopify Partner
801 39 146

This is an accepted solution.

Check out the purchasing entity on the Order object:

 

Screenshot 2024-04-08 at 3.24.24 PM.png

sauarbhchamp
Tourist
4 0 2

Hey Kalen Jordan,


We are creating orders from shopify REST API and we are facing issue to add the company shipping locations on the order can you suggest any solution for that.

The Orders are coming from the ERP software and we are using Alumio as a middleware please let me know if you have any solution.


Kalen_Jordan
Shopify Partner
801 39 146

Oh so you're saying that when the order is created from alumio it's *not* setting the company location on the order?

sauarbhchamp
Tourist
4 0 2

Yes, we are having the issue with shipping location is not displaying in the order and alone not in the company locations, could you please help us fixing the issue.

sauarbhchamp
Tourist
4 0 2

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.

Kalen_Jordan
Shopify Partner
801 39 146

In that case you'd need to fix the import. Not sure if it's possible in rest, but I do see the company location ID field as an input in the graphql order create. I could help you build that if you were interested. Link is in my signature.

sauarbhchamp
Tourist
4 0 2

Yes, we are having the issue with shipping location is not displaying in the order and alone not in the company locations.