Bearer token for authentication: Bearer <local_jwt>
Factus access token obtained from authentication
Path Parameters
The invoice number to send via email
Request Body
Optional Base64-encoded PDF file to attach to the email. If not provided, the system will generate the PDF automatically.
Response
curl -X POST https://api.yourapp.com/api/v1/invoices/FACT-12345/send-email \
-H "Authorization: Bearer <local_jwt>" \
-H "X-Factus-Token: <factus_access_token>" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'
{
"message": "Correo enviado exitosamente",
"data": {
"status": "success",
"message": "Email sent successfully to [email protected]"
}
}
Usage Notes
- If
pdf_base_64_encoded is not provided, the system will automatically generate and attach the invoice PDF
- The email will include the invoice details and the PDF attachment
- Make sure the email address is valid and properly formatted
- The PDF attachment (if provided) must be a valid Base64-encoded PDF file