Is Company ID related to Order? if so, how to get it?

Is Company ID related to Order? if so, how to get it?

pavendano
Visitor
2 0 2

Hi,

I'm required to get the field Company ID through any of your APIs:

company id.jpeg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

However I'm having a hard time trying to figure out if that field is somehow related to Purchase Orders.

 

My understanding is that, in the B2B related queries (https://shopify.dev/api/admin-graphql/2022-10/queries/companies) that field should be accessible.

 

Is there any correlation between Company ID and Purchase Orders that would make simple getting the Company ID we need?

 

Regards.

Replies 3 (3)

stone_i_am
Tourist
5 0 1

did you ever get an answer here?  Can't get it from the Rest API. It's not in a Shopify Flow to add a note.  How do we access and use this as a B2B and get this information into our ERP if it doesn't exists?

stone.i.am
pavendano
Visitor
2 0 2

Hi @stone_i_am, unfortunately we had to drop the idea of using this field, there seem to be no clear information related to it.

stone_i_am
Tourist
5 0 1

I think we figured it out (our problem is we use REST and it doesn't have the value)

Change to the newest API. REST API pulls back the Company ID.

GraphQL has company.externalID field

 

Screenshot 2023-03-29 at 10.31.38 PM.png

Screenshot 2023-03-29 at 10.28.34 PM.png

stone.i.am