POST
/
invoices
/
{id}
/
send
curl -X POST https://api.contazen.ro/v1/invoices/inv_9z8y7x6w5v/send \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "success": true,
  "data": {
    "sent": true,
    "email": "contact@techsolutions.ro",
    "message": "Invoice sent successfully"
  },
  "meta": {
    "version": "v1",
    "response_time": "456.78ms"
  }
}

Request

id
string
required
The invoice ID to send
email
string
Override recipient email address. If not provided, the client’s email address will be used.
The invoice must meet the following requirements to be sent:
  • Not a draft (is_draft = false)
  • Not voided/cancelled (is_storno = false)
  • Not deleted (is_deleted = false)
  • Client must have a valid email address (unless overridden)

Response

success
boolean
Indicates if the request was successful
data
object
meta
object
Response metadata including version and response time
curl -X POST https://api.contazen.ro/v1/invoices/inv_9z8y7x6w5v/send \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "success": true,
  "data": {
    "sent": true,
    "email": "contact@techsolutions.ro",
    "message": "Invoice sent successfully"
  },
  "meta": {
    "version": "v1",
    "response_time": "456.78ms"
  }
}

Automatic Sending

You can also automatically send an invoice when creating it by including the send_email parameter:
curl -X POST https://api.contazen.ro/v1/invoices \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "1a2b3c4d5e",
    "items": [...],
    "send_email": true,
    "email_address": "optional@override.com"
  }'
The response will include an email_sent field indicating whether the email was sent successfully.