Flito docs
Invoice

Send invoice

POST
/api/cap/invoice.send

Email an invoice to the customer: each person gets a link to the invoice's public page, where the PDF downloads, with an optional message above the sender's signature. Takes recipientEmails (else the contact on the invoice's deal, else whoever signs for its quote), optional ccEmails and message. Once at least one email goes out the invoice is marked sent, the deal moves to Retainer Invoice Sent on the first send where its pipeline has that stage, and invoice.sent is emitted. Returns each recipient's email status. A paid or void invoice, or one with nobody to send to, is refused.

Required scopes: invoices:write. Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key (flito_pat_…) from Settings, API & AI connections.

Request Body

application/json
  1. body
input*
idempotencyKey?string

Send the same key to retry safely: the second call returns the first result.

Lengthlength <= 255
approved?boolean

Confirms an action that needs approval (sending, deleting and the like).

Response Body

The capability ran.

application/json
  1. response
result*unknown

The capability’s output.

commitId?|

The config commit, for versioned records.

eventId?string|null
idempotentReplay?boolean

True when this answer is a replay of an earlier call.

Example Request
curl -X POST 'https://crm.yourcompany.com/api/cap/invoice.send' \  -H 'Content-Type: application/json' \  -d '{  "input": {    "invoiceId": "string"  }}'
Example Response
{  "result": null,  "commitId": "string",  "eventId": "string",  "idempotentReplay": true}

Was this page useful?