Discussing APIs and development related to customers, discounts, and order management.
Hello! we have a situation here where we need to create a company using the admin api rest in the register customer form but can't find the documentation about it, here some images to help clarify more where is needed to create the company to make the association with the customer:
Solved! Go to the solution
This is an accepted solution.
Hey @DiegoZ2!
As far as I know this is not available in the REST API specifically, but you can do so through the GraphQL API. You can find the reference for this here: https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/companyCreate
Alternatively, you could also try checking out the custom solution that our team built for this using the Customer Fields app and Shopify Flow. You can find some more information about this in our docs, including our recommended process and some Flow templates to get you started: https://help.heliumdev.com/en/articles/8542676-how-to-use-account-approval-with-shopify-b2b
This is an accepted solution.
Hey @DiegoZ2!
As far as I know this is not available in the REST API specifically, but you can do so through the GraphQL API. You can find the reference for this here: https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/companyCreate
Alternatively, you could also try checking out the custom solution that our team built for this using the Customer Fields app and Shopify Flow. You can find some more information about this in our docs, including our recommended process and some Flow templates to get you started: https://help.heliumdev.com/en/articles/8542676-how-to-use-account-approval-with-shopify-b2b