What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

B2B access email

B2B access email

ftballguy45
Shopify Partner
32 0 12

It does not appear that there is a way to send this email through the GraphQL or the REST apis? When we create customers via the API, and assign them to companies, and give them location permissions - at no point along that workflow are the customers every automatically emailed their "B2B access email". This functionality is available in the Admin UI, however it appears this has been left out of the GQL/REST admin apis??

 

Replies 5 (5)

ftballguy45
Shopify Partner
32 0 12

Surely there's a way to send the B2B access email when creating customers with the API. That would be really silly to do everything through the API and then have to got into the Admin UI to manually send the emai

SBD_
Shopify Staff
1831 273 421

Hey @ftballguy45! Checking on this one.

Scott | Developer Advocate @ Shopify 

Brett_Helium
Shopify Partner
286 54 130

Hey @ftballguy45!

Our team came across the same problem when trying to add a some B2B functionality to the Helium Customer Fields app, and unfortunately there doesn't seem to be any way to do this currently through the APIs.

The best solution we found is to use Shopify Flow to automate this email. You can set it to automatically trigger whenever a new company contact is added, or could also add conditions so that the Flow only proceeds in certain cases.

Brett_Helium_0-1700612472947.png

 

Brett | Helium
- Customer Fields ✪✪✪✪✪ (360+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (290+ reviews)
- Strike Automatic Discounts NEW!
SBD_
Shopify Staff
1831 273 421

Thanks @Brett_Helium

 

@ftballguy45 - The B2B team have confirmed this is the best approach for now. Have passed along the request to be able to do this programatically.

Scott | Developer Advocate @ Shopify 

ftballguy45
Shopify Partner
32 0 12

Thank you for this! We will use this until Shopify fixes the API aspect of this