New Shopify Certification now available: Liquid Storefronts for Theme Developers

B2B access email

ftballguy45
Shopify Partner
31 0 4

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
31 0 4

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
Shopify Staff
1649 231 340

Hey @ftballguy45! Checking on this one.

Scott | Developer Advocate @ Shopify 

Brett_Helium
Shopify Partner
147 32 52

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
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (330+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (250+ reviews)
SBD_
Shopify Staff
Shopify Staff
1649 231 340

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
31 0 4

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