Solved

Create companies when customer is registered

DiegoZ2
Visitor
1 0 0

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:comp.png

 

Accepted Solution (1)

Brett_Helium
Shopify Partner
213 40 82

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

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (330+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (250+ reviews)

View solution in original post

Reply 1 (1)

Brett_Helium
Shopify Partner
213 40 82

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

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (330+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (250+ reviews)