Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Create companies when customer is registered

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
303 58 137

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
- Customer Fields ✪✪✪✪✪ (380 reviews)
- Meteor Mega Menu ✪✪✪✪✪ (307 reviews)
- Onboard B2B NEW!
- Strike Automatic Discounts NEW!

View solution in original post

Reply 1 (1)

Brett_Helium
Shopify Partner
303 58 137

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
- Customer Fields ✪✪✪✪✪ (380 reviews)
- Meteor Mega Menu ✪✪✪✪✪ (307 reviews)
- Onboard B2B NEW!
- Strike Automatic Discounts NEW!