Sends a test email.
Test email resource.
required | Array of objects non-empty Array of message templates with language locale identifiers in RFC 5646 format. A language is selected based on the customer's locale. If no locale is configured for the customer, If no template is available in the customer's locale, a template locale is selected using a closest match algorithm. If your email message templates are localized into more than one language, set a customer locale. Invalid placeholders render as an empty strings.
For example, | ||||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||||
id | string <uuid> ID of the message. | ||||||||||||||||||||
version | string Version number of the message. Use this field to distinguish between multiple messages by name and version number. If there are no versions, this field is empty. | ||||||||||||||||||||
weight | integer [ 0 .. 100 ] Default: 100 Weight distribution value that is assigned to a template for a split test. Each template in a split test can be assigned a weight. The higher the weight value, the more likely the message template is used. The split test algorithm does not assess locale when making a weighted template selection. |
Test email sent.
required | Array of objects non-empty Array of message templates with language locale identifiers in RFC 5646 format. A language is selected based on the customer's locale. If no locale is configured for the customer, If no template is available in the customer's locale, a template locale is selected using a closest match algorithm. If your email message templates are localized into more than one language, set a customer locale. Invalid placeholders render as an empty strings.
For example, | ||||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||||
id | string <uuid> ID of the message. | ||||||||||||||||||||
version | string Version number of the message. Use this field to distinguish between multiple messages by name and version number. If there are no versions, this field is empty. | ||||||||||||||||||||
weight | integer [ 0 .. 100 ] Default: 100 Weight distribution value that is assigned to a template for a split test. Each template in a split test can be assigned a weight. The higher the weight value, the more likely the message template is used. The split test algorithm does not assess locale when making a weighted template selection. |
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "version": "string",
- "weight": 75,
- "templates": [
- {
- "locale": "fr-FR",
- "from": "example@example.com",
- "to": [
- "{{ invoice.customer.email }}"
], - "subject": "Sujet de démonstration",
- "text": "Texte de démonstration",
- "html": "<p>Texte de démonstration</p>",
- "editor": "<div class=\"block\">Texte de démonstration</div>"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "version": "string",
- "weight": 75,
- "templates": [
- {
- "locale": "fr-FR",
- "from": "example@example.com",
- "to": [
- "{{ invoice.customer.email }}"
], - "subject": "Sujet de démonstration",
- "text": "Texte de démonstration",
- "html": "<p>Texte de démonstration</p>",
- "editor": "<div class=\"block\">Texte de démonstration</div>"
}
]
}