We are trying to get this site setup for wholesale, B2B. We need access to the Company API endpoint and I can not seem to get it to work. I am trying to use GraphQL using the official Python Module and I am getting the following error…
AttributeError: module ‘shopify’ has no attribute ‘Company’
Here is the code we are tying to run…
#!/usr/bin/python3
import shopify
session = shopify.Session(‘berne-distributor.myshopify.com’, ‘2023-01’, ‘XXXXXTOKENXXXX’)
shopify.ShopifyResource.activate_session(session)
output = shopify.Company
print(output)