Email an invoice
Email the invoice to its contact, including its line items, total, due date and payment link (if any). The invoice's status is not changed.
POST
https://api.centerfy.ai/webhooks/inbound/invoices/:id/send Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The invoice id. |
Example
curl -X POST "https://api.centerfy.ai/webhooks/inbound/invoices/{id}/send" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.invoices.send("<invoiceId>");
console.log(result); centerfy invoices send <invoiceId> MCP tool: centerfy_invoices_send (see MCP server)
Response
{
"status": "success",
"sent": true,
"invoice_id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
"to": "[email protected]"
}Errors
409— if the invoice is void.400— if the invoice’s contact has no email address.502— if the email could not be sent.404— if the invoice is not in this sub-account.