Go to contact attributes
In the Engage UI, go to Administration/Config Hub and then Contact attributes.
Edit attribute
Edit the standard attribute “Mobile phone” to make it active and visible on the contact card.
Decide opt-out method
Decide on the opt-out method.
- A stop word, allowing the customer to send a certain word to a certain number to unsubscribe. For this, contact your Voyado specialist or account manager.
- The default, which is standard Voyado opt out link. In this case, do nothing.
Decide on customer response
Decide where the customer can enter their mobile number:
- In My Pages.
- At the POS terminal.
- Opting in by sending a certain word to a number (for example, “Voyado in” sent to 123 123). Contact your Voyado specialist or account manager to arrange this.
Include attribute
In your integration, be sure to always include the
mobilePhone attribute in the create contact JSON payload. This makes sure your contacts is always reachable by SMS.Include preferences object
Also include the preferences object in the create contact JSON payload, with
acceptsSms set to “true” when the customer opts into SMS communication. This is required for them to receive SMS.Create SMS
Now create an SMS. Here you can see how that’s done.
Get historical messages
With a single call, the Engage API can fetch the latest SMS and email messages saved for a specific contact.Response codes
You’ll get one of these two response codes:: ContactNotFound
Response
Field definitions
| Field name | Type | Description | Example value |
|---|---|---|---|
| messageId | GUID | Unique message id | ea11fa26-54d7-4689-984e-ad4000d7a153 |
| name | string | Name of the message in Voyado | 20210610_SE_Summer collection_VIP |
| sendDateTime | datetime | Date and time when the message was sent with offset | 2021-06-100T09:42:44.537+02:00 |
| type | string | Type of message (EmailMessage, SmsMessage or PostalMessage) | EmailMessage |
| source | string | Where the message was sent from in Voyado Engage (Automation, Manual or System) | Manual |
| isTransactional | boolean | If the message was sent as transactional or not (does not take opt-in into account) | false |
| status | string | Delivery status of the send-out | Delivered |
| messageLink | string | The URL for the web version of the email | https://[client].customer.voyado.com/open/email/online/mun9-f1vQEiZ-K1BAUB68Q/9DGtlvkQyka96qpVAMJ70A/m4L3rBllXEiPea1DALLg3A |
| messageText | string | The text content of the SMS or the subject line of the email. | Check out our summer collection! |
Unsubscribe from messages
The Engage API has endpoints to allow unsubscribing of contacts from emails and SMS messages.Unsubscribe from a specific message
Using these two endpoints, a contact can be unsubscribed from a specific email or SMS. This is effectively the same as them unsubscribing via the unsubscribe link in an email, or through the unsubscribe link in an SMS.| Field | Type | Example value |
|---|---|---|
| contactId (mandatory) | GUID | a67b201f-d86d-4ee2-bdc7-abce0080a803 |
| messageId | GUID | f0370cc7-5428-4cc3-85c9-ad0800f0bc28 |
The sendToPhoneNumbers endpoint
The Engage API has the following endpoint:sender field can consist of the characters a-z, A-Z, 0-9, and ”+”. It can be 3-11 characters in length.
Any SMS sent in this way will show up on the client’s SMS usage account as “Send to phone numbers” but no more details will be given.