Flito docs
Invoice

Update invoice

POST
/api/cap/invoice.update

Edit an invoice: its terms, invoice and due dates and notes, the due date of each stage of its payment schedule (one per stage, in order, refused when the count does not match), its company, its billing and shipping addresses, its line items (a saved line edited in place by its id, a line left out removed) and its fee, tax and discount lines (a dollar amount or a percent of the subtotal). The subtotal, tax, total and payment schedule are worked out again. A new company keeps only the addresses linked to it. A paid or void invoice keeps its company, lines, fees and addresses.

Required scopes: invoices:write. Runs at once.

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

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.update' \  -H 'Content-Type: application/json' \  -d '{  "input": {    "id": "string"  }}'
Example Response
{  "result": null,  "commitId": "string",  "eventId": "string",  "idempotentReplay": true}

Was this page useful?