A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
I'm required to get the field Company ID through any of your APIs:
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.
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?
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.
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