{
"from": "billing@yourcompany.com",
"fromName": "Your Company Billing",
"subject": "Your invoice {{invoice_number}} is ready",
"templateId": "66f1c0a94b8d2e5f7a3c1d90",
"html": "<html><body><h1>Hello {{name}}</h1><p>Your invoice is attached.</p></body></html>",
"attachmentId": "string",
"attachmentName": "string",
"attachments": [
{
"attachmentName": "invoice-2026-04.pdf",
"content": "JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFI+PgpzdHJlYW0K",
"attachmentId": "string"
}
],
"payload": [
{
"recipient": "ana.gomez@example.com",
"fields": {
"name": "Ana",
"invoice_number": "F-2026-00184",
"amount": "COP 145,000"
},
"programmedDate": "2026-09-01T14:30:00Z",
"attachments": [
{
"attachmentName": "invoice-2026-04.pdf",
"content": "JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFI+PgpzdHJlYW0K",
"attachmentId": "string"
}
],
"attachmentId": "string",
"attachmentName": "string"
}
]
}