Shopify New Customer: Invitation Email

Shopify New Customer: Invitation Email

I am testing the Shopify Create Customer function and it works quite good. 

I need however to send automatically the invitation email from Shopify after creation and I having troubles to achieve it.

The Shopify REST API provides a way to do that:  https://help.shopify.com/en/api/reference/customers/customer#send_invite
Send the default invite
POST /admin/customers/#{customer_id}/send_invite.json
{ "customer_invite" : {} }

My question is:
1. Can you include this in the existing function Create Customer?
Maybe with an additional option “Send invitation email” yes/no. 

2. If this is not possible how can I do that with a custom function using the current Shopify connection within the same flow? 

Thanks in advance!