Envoie la facture par email au client.
Restrictions:
- La facture ne doit pas être en brouillon
Personnalisation:
- Utilise les modèles d'email configurés dans l'entreprise
- Variables disponibles: [lien-html], [lien-pdf], [facture-numero], [facture-date], [contact-nom], etc.
Options:
action: 'send_invoice' (envoi standard) ou 'dunning_invoice' (relance)joinPdf: true pour joindre le PDF en pièce jointe- Possibilité de personnaliser subject, content, to, copyto, replyTo
POST
/invoice/{uid}/mail
curl \
--request POST 'https://wuro.pro/api/v3.2/invoice/{uid}/mail' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"action":"send_invoice","to":"hello@example.com","subject":"string","content":"string","copyto":"hello@example.com","replyTo":"hello@example.com","joinPdf":false}'
Request examples
{
"action": "send_invoice",
"to": "hello@example.com",
"subject": "string",
"content": "string",
"copyto": "hello@example.com",
"replyTo": "hello@example.com",
"joinPdf": false
}
Response examples (200)
{
"resultId": "string",
"html": "string",
"subject": "string"
}