You can send an email via next4biz CRM Send Email Service.
Your request body must be contain 4 properties.
tenant_slug This is your subdomain on selphiu URL. For example: if your selphiu domain is “acme.selpihu.com” then your tenant_slug is “acme”access_token next4biz CRM provide an access_token via access_token service. Every access_token expires after 15 minutes. Best Practice, you request a new access_token for each service request.channel This is bussines channel id. If you don’t know your bussiness_channels and there’s id numbers. You can learn via bussiness_channel service.email This is an objects as email property is an object contain your new email values.
email_sender_id your email sender’s id number. You can learn via Email Sender Servicesales_channel_id your email’s sales channel’s id number. You can learn via Sales Channel Servicesubject your email’s subjectto this is an array. contain recipient email address. The email address must be recorded as person on next4biz CRMcc this is an array. Contain recipient cc email address. The email address must be recorded as person on next4biz CRM.bcc this is an array. Contain recipient bcc email address.variables this is an object. Contain your template custom field names and valuesmessage you can send message or template id. Message is a text. It’s email body.template_id you can send template id or message. You can learn template id via Email Template Service or next4biz CRM UI.| Name | Value |
|---|---|
| REST-API METHOD | Send Email |
| HTTP METHOD | POST |
| RESPONSE TYPE | JSON |
| URL | https://api.crm.next4biz.com/send-email/ |
| REQUEST HEAD | Accept: application/json; Content-Type: application/json |
{
"tenant_slug": "acme",
"channel": "79",
"email": {
"email_sender_id": "75",
"sales_channel_id": "173",
"subject": "API Test",
"to": [
"[email protected]"
],
"cc": [],
"bcc": [],
"variables": {
"issue_id": "1578588"
},
"template_id": "839"
},
"access_token": "[YOUR ACCESSTOKEN]"
}
{
"code": 200,
"status": "Success",
"result": [
{
"email": "[email protected]",
"status": true
}
]
}