Invoices

Invoices: items, sending, payments recorded by hand and recurring invoices.

Values for the examples

Type them once and every example on this page uses them. The API key stays on this page only and is never saved.

GET/v1/invoice-defaults

What new invoices start with: due date, texts, reminders.

ListOn success: 200.Permission: Read.

Response

12 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
digitsintegerYes
dueDaysintegerYes
issuernull in the examplesYes
nextintegerYes
nextNumberstringYes
notesstring | nullYes
prefixstringYes
remindersobjectYes
reminders.afterarray of integerYes
reminders.beforearray of integerYes
taxPercentinteger | nullYes
Example
curl -X GET "https://api.firmado.app/v1/invoice-defaults" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "acceptPayments": true,
  "digits": 1,
  "dueDays": 1,
  "issuer": null,
  "next": 1,
  "nextNumber": "…",
  "notes": "…",
  "prefix": "…",
  "reminders": {
    "after": [
      1
    ],
    "before": [
      1
    ]
  },
  "taxPercent": 1
}

PUT/v1/invoice-defaults

Changes what new invoices start with.

Update/On success: 200.Permission: Update.

Body

FieldTypeRequiredNotes
prefixstringYesmax length 20
digitsintegerYesmin 1 · max 8
nextintegerYesmin 1 · max 999999999
dueDaysintegerYesmin 0 · max 365
notesstring | nullYes
taxPercentnumber | nullYes
remindersobjectYes
reminders.beforearray of integerYesmax items 5
reminders.afterarray of integerYesmax items 5
issuerobject | nullNo
issuer.namestringYesmin length 1 · max length 200
issuer.addressstring | nullNo
acceptPaymentsbooleanNodefault false

Response

14 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
digitsintegerYes
dueDaysintegerYes
issuerobject | nullYes
issuer.addressstringYes
issuer.namestringYes
nextintegerYes
nextNumberstringYes
notesstring | nullYes
prefixstringYes
remindersobjectYes
reminders.afterarray of integerYes
reminders.beforearray of integerYes
taxPercentinteger | nullYes
Example
curl -X PUT "https://api.firmado.app/v1/invoice-defaults" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "prefix": "…",
  "digits": 1,
  "next": 1,
  "dueDays": 0,
  "notes": "…",
  "taxPercent": 0,
  "reminders": {
    "before": [
      -9007199254740991
    ],
    "after": [
      1
    ]
  }
}'

Response (200), with sample values:

{
  "acceptPayments": true,
  "digits": 1,
  "dueDays": 1,
  "issuer": {
    "name": "Ana Lima",
    "address": "…"
  },
  "next": 1,
  "nextNumber": "…",
  "notes": "…",
  "prefix": "…",
  "reminders": {
    "after": [
      1
    ],
    "before": [
      1
    ]
  },
  "taxPercent": 1
}

GET/v1/invoices

Lists and searches invoices, by status, client or date.

ListOn success: 200.Permission: Read.

Query parameters

FieldTypeRequiredNotes
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 100 · default 25
qstringNomin length 1 · max length 200
archivedstringNo
status"draft" | "open" | "overdue" | "paid" | "void"No
contactIdstring (uuid)No
companyIdstring (uuid)No
dealIdstring (uuid)No
ownerIdstringNomin length 1
dueFromstring (date)No
dueBeforestring (date)No
sort"issueDate" | "dueDate" | "total" | "number" | "createdAt"Nodefault "issueDate"
order"asc" | "desc"Nodefault "desc"

Response

81 fields
FieldTypeAlways there
dataarray of objectYes
data[].acceptPaymentsbooleanYes
data[].companynull in the examplesYes
data[].companyIdnull in the examplesYes
data[].contactobject | nullYes
data[].contact.idstring (uuid)Yes
data[].contact.namestringYes
data[].contactIdstring | null (uuid)Yes
data[].createdAtstring (date-time)Yes
data[].createdBystring | null (uuid)Yes
data[].currencystringYes
data[].dealnull in the examplesYes
data[].dealIdnull in the examplesYes
data[].discountnull in the examplesYes
data[].discountAmountintegerYes
data[].dueDatestring (date)Yes
data[].firstViewedAtnull in the examplesYes
data[].idstring (uuid)Yes
data[].issueDatestring (date)Yes
data[].issuerobjectYes
data[].issuer.addressnull in the examplesYes
data[].issuer.namestringYes
data[].itemsarray of objectYes
data[].items[].descriptionnull in the examplesYes
data[].items[].discountnull in the examplesYes
data[].items[].idstring (uuid)Yes
data[].items[].namestringYes
data[].items[].quantityintegerYes
data[].items[].serviceIdnull in the examplesYes
data[].items[].unitPriceintegerYes
data[].languagenull in the examplesYes
data[].lastViewedAtnull in the examplesYes
data[].notesstring | nullYes
data[].numberstringYes
data[].organizationIdstring (uuid)Yes
data[].overduebooleanYes
data[].ownerobjectYes
data[].owner.idstring (uuid)Yes
data[].owner.namestringYes
data[].ownerIdstring (uuid)Yes
data[].paidAtnull in the examplesYes
data[].paymentMethodnull in the examplesYes
data[].paymentNotenull in the examplesYes
data[].publicIdstringYes
data[].recipientobject | nullYes
data[].recipient.addressnull in the examplesYes
data[].recipient.namestringYes
data[].recurrenceobject | nullYes
data[].recurrence.autoSendbooleanYes
data[].recurrence.dayOfMonthintegerYes
data[].recurrence.dueDaysintegerNo
data[].recurrence.intervalstringYes
data[].recurrence.nextIssueDatestring (date)Yes
data[].recurringFromIdstring | null (uuid)Yes
data[].reminderDaysnull in the examplesYes
data[].remindersSentarray of stringYes
data[].sentAtstring | null (date-time)Yes
data[].statusstringYes
data[].subtotalintegerYes
data[].taxAmountintegerYes
data[].taxBasisPointsnull in the examplesYes
data[].taxPercentnull in the examplesYes
data[].totalintegerYes
data[].updatedAtstring (date-time)Yes
data[].updatedBystring | null (uuid)Yes
data[].viewCountintegerYes
data[].voidReasonnull in the examplesYes
data[].voidedAtnull in the examplesYes
pageintegerYes
pageSizeintegerYes
summaryobjectYes
summary.openarray of objectYes
summary.open[].amountintegerYes
summary.open[].countintegerYes
summary.open[].currencystringYes
summary.overduearray of objectYes
summary.overdue[].amountintegerYes
summary.overdue[].countintegerYes
summary.overdue[].currencystringYes
summary.paidThisMontharray of anyYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/invoices" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "data": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "publicId": "…",
      "number": "…",
      "status": "…",
      "dealId": null,
      "companyId": null,
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "issuer": {},
      "recipient": {},
      "language": null,
      "currency": "USD",
      "issueDate": "2026-11-21",
      "dueDate": "2026-11-21",
      "items": [],
      "discount": null,
      "taxBasisPoints": null,
      "notes": "…",
      "subtotal": 1,
      "discountAmount": 1,
      "taxAmount": 1,
      "total": 1,
      "sentAt": "2026-11-21T14:00:00.000Z",
      "paidAt": null,
      "acceptPayments": true,
      "paymentMethod": null,
      "paymentNote": null,
      "voidedAt": null,
      "voidReason": null,
      "viewCount": 1,
      "firstViewedAt": null,
      "lastViewedAt": null,
      "reminderDays": null,
      "remindersSent": [],
      "recurrence": {},
      "recurringFromId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "createdAt": "2026-11-21T14:00:00.000Z",
      "updatedAt": "2026-11-21T14:00:00.000Z",
      "taxPercent": null,
      "overdue": true,
      "company": null,
      "contact": {},
      "owner": {},
      "deal": null
    }
  ],
  "page": 1,
  "pageSize": 1,
  "total": 1,
  "summary": {
    "open": [
      {}
    ],
    "overdue": [
      {}
    ],
    "paidThisMonth": []
  }
}

POST/v1/invoices

Creates an invoice draft with its items.

CreateOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
numberstringNomin length 1 · max length 60
dealIdstring (uuid) | nullNo
companyIdstring (uuid) | nullNo
contactIdstring (uuid) | nullNo
issuerobject | nullNo
issuer.namestringYesmin length 1 · max length 200
issuer.addressstring | nullNo
recipientobject | nullNo
recipient.namestringYesmin length 1 · max length 200
recipient.addressstring | nullNo
language"pt" | "es" | "en" | "fr" | nullNo
ownerIdstring | nullNo
currencystringNopattern ^[A-Z]{3}$
issueDatestring (date)No
dueDatestring (date)No
itemsarray of objectNomax items 200
items[].idstringNomin length 1 · max length 64
items[].serviceIdstring (uuid) | nullNo
items[].namestringYesmin length 1 · max length 200
items[].descriptionstring | nullNo
items[].quantitynumberNomin 0 · max 100000 · default 1
items[].unitPriceintegerYesmin 0 · max 10000000000000
items[].discountobject | nullNo
discountobject | nullNo
taxPercentnumber | nullNo
notesstring | nullNo
recurrenceobject | nullNo
recurrence.interval"monthly" | "quarterly" | "yearly"Yes
recurrence.dayOfMonthintegerNomin 1 · max 31
recurrence.dueDaysintegerNomin 0 · max 365
recurrence.nextIssueDatestring (date)No
recurrence.autoSendbooleanNodefault false
acceptPaymentsbooleanNo
reminderDaysarray of integer | nullNo

Response

76 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companyobject | nullYes
company.idstring (uuid)Yes
company.namestringYes
companyIdstring | null (uuid)Yes
contactobject | nullYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring | null (email)Yes
contactIdstring | null (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
dealnull in the examplesYes
dealIdnull in the examplesYes
discountobject | nullYes
discount.typestringYes
discount.valueintegerYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtnull in the examplesYes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressstring | nullYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountobject | nullYes
items[].discount.typestringYes
items[].discount.valueintegerYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdstring | null (uuid)Yes
items[].unitPriceintegerYes
languagestring | nullYes
lastViewedAtnull in the examplesYes
notesstring | nullYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtnull in the examplesYes
paymentnull in the examplesYes
paymentMethodnull in the examplesYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobject | nullYes
recipient.addressstring | nullYes
recipient.namestringYes
recurrenceobject | nullYes
recurrence.autoSendbooleanYes
recurrence.dayOfMonthintegerYes
recurrence.dueDaysintegerNo
recurrence.intervalstringYes
recurrence.nextIssueDatestring (date)Yes
recurringFromIdnull in the examplesYes
reminderDaysarray | nullYes
remindersSentarray of anyYes
sentAtnull in the examplesYes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsinteger | nullYes
taxPercentinteger | nullYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlnull in the examplesYes
viewCountintegerYes
voidReasonnull in the examplesYes
voidedAtnull in the examplesYes
Example
curl -X POST "https://api.firmado.app/v1/invoices" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "number": "…",
  "dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'

Response (201), with sample values:

{
  "acceptPayments": true,
  "company": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactEmail": "[email protected]",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "deal": null,
  "dealId": null,
  "discount": {
    "type": "…",
    "value": 1
  },
  "discountAmount": 1,
  "dueDate": "2026-11-21",
  "firstViewedAt": null,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issueDate": "2026-11-21",
  "issuer": {
    "address": "…",
    "name": "Ana Lima"
  },
  "items": [
    {
      "description": null,
      "discount": {},
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "quantity": 1,
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "unitPrice": 1
    }
  ],
  "language": "…",
  "lastViewedAt": null,
  "notes": "…",
  "number": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "overdue": true,
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "paidAt": null,
  "payment": null,
  "paymentMethod": null,
  "paymentNote": null,
  "publicId": "…",
  "recipient": {
    "address": "…",
    "name": "Ana Lima"
  },
  "recurrence": {
    "autoSend": true,
    "dayOfMonth": 1,
    "interval": "…",
    "nextIssueDate": "2026-11-21",
    "dueDays": 1
  },
  "recurringFromId": null,
  "reminderDays": [
    1
  ],
  "remindersSent": [],
  "sentAt": null,
  "status": "…",
  "subtotal": 1,
  "taxAmount": 1,
  "taxBasisPoints": 1,
  "taxPercent": 1,
  "total": 1,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": null,
  "viewCount": 1,
  "voidReason": null,
  "voidedAt": null
}

DELETE/v1/invoices/{id}

Deletes an invoice draft.

DeleteOn success: 204.Permission: Delete.

Path parameters

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/invoices/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/invoices/{id}

Returns an invoice with its items, payments and status.

Get oneOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

83 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companynull in the examplesYes
companyIdnull in the examplesYes
contactobject | nullYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring | null (email)Yes
contactIdstring | null (uuid)Yes
createdAtstring (date-time)Yes
createdBystring | null (uuid)Yes
currencystringYes
dealobject | nullYes
deal.idstring (uuid)Yes
deal.titlestringYes
dealIdstring | null (uuid)Yes
discountobject | nullYes
discount.typestringYes
discount.valueintegerYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtstring | null (date-time)Yes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressnull in the examplesYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
languagenull in the examplesYes
lastViewedAtstring | null (date-time)Yes
notesstring | nullYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtstring | null (date-time)Yes
paymentobject | nullYes
payment.amountintegerYes
payment.applicationFeeintegerYes
payment.createdAtstring (date-time)Yes
payment.currencystringYes
payment.idstring (uuid)Yes
payment.paidAtstring (date-time)Yes
payment.payerEmailstring (email)Yes
payment.payerNamestringYes
payment.statusstringYes
paymentMethodstring | nullYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobject | nullYes
recipient.addressnull in the examplesYes
recipient.namestringYes
recurrenceobject | nullYes
recurrence.autoSendbooleanYes
recurrence.dayOfMonthintegerYes
recurrence.dueDaysintegerNo
recurrence.intervalstringYes
recurrence.nextIssueDatestring (date)Yes
recurringFromIdnull in the examplesYes
reminderDaysnull in the examplesYes
remindersSentarray of anyYes
sentAtstring | null (date-time)Yes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsnull in the examplesYes
taxPercentnull in the examplesYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring | null (uuid)Yes
urlstring | null (uri)Yes
viewCountintegerYes
voidReasonnull in the examplesYes
voidedAtnull in the examplesYes
Example
curl -X GET "https://api.firmado.app/v1/invoices/{id}" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "acceptPayments": true,
  "company": null,
  "companyId": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactEmail": "[email protected]",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "deal": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "title": "…"
  },
  "dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "discount": {
    "type": "…",
    "value": 1
  },
  "discountAmount": 1,
  "dueDate": "2026-11-21",
  "firstViewedAt": "2026-11-21T14:00:00.000Z",
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issueDate": "2026-11-21",
  "issuer": {
    "address": null,
    "name": "Ana Lima"
  },
  "items": [
    {
      "description": null,
      "discount": null,
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1
    }
  ],
  "language": null,
  "lastViewedAt": "2026-11-21T14:00:00.000Z",
  "notes": "…",
  "number": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "overdue": true,
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "paidAt": "2026-11-21T14:00:00.000Z",
  "payment": {
    "amount": 1,
    "applicationFee": 1,
    "createdAt": "2026-11-21T14:00:00.000Z",
    "currency": "USD",
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "paidAt": "2026-11-21T14:00:00.000Z",
    "payerEmail": "[email protected]",
    "payerName": "Ana Lima",
    "status": "…"
  },
  "paymentMethod": "…",
  "paymentNote": null,
  "publicId": "…",
  "recipient": {
    "address": null,
    "name": "Ana Lima"
  },
  "recurrence": {
    "autoSend": true,
    "interval": "…",
    "dayOfMonth": 1,
    "nextIssueDate": "2026-11-21",
    "dueDays": 1
  },
  "recurringFromId": null,
  "reminderDays": null,
  "remindersSent": [],
  "sentAt": "2026-11-21T14:00:00.000Z",
  "status": "…",
  "subtotal": 1,
  "taxAmount": 1,
  "taxBasisPoints": null,
  "taxPercent": null,
  "total": 1,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "viewCount": 1,
  "voidReason": null,
  "voidedAt": null
}

PATCH/v1/invoices/{id}

Changes an invoice draft.

UpdateOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
dealIdstring (uuid) | nullNo
companyIdstring (uuid) | nullNo
contactIdstring (uuid) | nullNo
issuerobject | nullNo
issuer.namestringYesmin length 1 · max length 200
issuer.addressstring | nullNo
recipientobject | nullNo
recipient.namestringYesmin length 1 · max length 200
recipient.addressstring | nullNo
language"pt" | "es" | "en" | "fr" | nullNo
ownerIdstring | nullNo
currencystringNopattern ^[A-Z]{3}$
issueDatestring (date)No
dueDatestring (date)No
itemsarray of objectNomax items 200
items[].idstringNomin length 1 · max length 64
items[].serviceIdstring (uuid) | nullNo
items[].namestringYesmin length 1 · max length 200
items[].descriptionstring | nullNo
items[].quantitynumberNomin 0 · max 100000 · default 1
items[].unitPriceintegerYesmin 0 · max 10000000000000
items[].discountobject | nullNo
discountobject | nullNo
taxPercentnumber | nullNo
notesstring | nullNo
recurrenceobject | nullNo
recurrence.interval"monthly" | "quarterly" | "yearly"Yes
recurrence.dayOfMonthintegerNomin 1 · max 31
recurrence.dueDaysintegerNomin 0 · max 365
recurrence.nextIssueDatestring (date)No
recurrence.autoSendbooleanNodefault false
acceptPaymentsbooleanNo
reminderDaysarray of integer | nullNo
numberstringNomin length 1 · max length 60

Response

79 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companynull in the examplesYes
companyIdnull in the examplesYes
contactobject | nullYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring | null (email)Yes
contactIdstring | null (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
dealnull in the examplesYes
dealIdnull in the examplesYes
discountnull in the examplesYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtnull in the examplesYes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressstring | nullYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
languagenull in the examplesYes
lastViewedAtnull in the examplesYes
notesstring | nullYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtnull in the examplesYes
paymentobject | nullYes
payment.amountintegerYes
payment.applicationFeeintegerYes
payment.createdAtstring (date-time)Yes
payment.currencystringYes
payment.idstring (uuid)Yes
payment.paidAtnull in the examplesYes
payment.payerEmailnull in the examplesYes
payment.payerNamenull in the examplesYes
payment.statusstringYes
paymentMethodnull in the examplesYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobject | nullYes
recipient.addressstring | nullYes
recipient.namestringYes
recurrenceobject | nullYes
recurrence.autoSendbooleanYes
recurrence.dayOfMonthintegerYes
recurrence.dueDaysintegerYes
recurrence.intervalstringYes
recurrence.nextIssueDatestring (date)Yes
recurringFromIdnull in the examplesYes
reminderDaysnull in the examplesYes
remindersSentarray of anyYes
sentAtstring | null (date-time)Yes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsnull in the examplesYes
taxPercentnull in the examplesYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring | null (uri)Yes
viewCountintegerYes
voidReasonnull in the examplesYes
voidedAtnull in the examplesYes
Example
curl -X PATCH "https://api.firmado.app/v1/invoices/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issuer": {
    "name": "Ana Lima",
    "address": "…"
  }
}'

Response (200), with sample values:

{
  "acceptPayments": true,
  "company": null,
  "companyId": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactEmail": "[email protected]",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "deal": null,
  "dealId": null,
  "discount": null,
  "discountAmount": 1,
  "dueDate": "2026-11-21",
  "firstViewedAt": null,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issueDate": "2026-11-21",
  "issuer": {
    "address": "…",
    "name": "Ana Lima"
  },
  "items": [
    {
      "description": null,
      "discount": null,
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1
    }
  ],
  "language": null,
  "lastViewedAt": null,
  "notes": "…",
  "number": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "overdue": true,
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "paidAt": null,
  "payment": {
    "amount": 1,
    "applicationFee": 1,
    "createdAt": "2026-11-21T14:00:00.000Z",
    "currency": "USD",
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "paidAt": null,
    "payerEmail": null,
    "payerName": null,
    "status": "…"
  },
  "paymentMethod": null,
  "paymentNote": null,
  "publicId": "…",
  "recipient": {
    "address": "…",
    "name": "Ana Lima"
  },
  "recurrence": {
    "autoSend": true,
    "dayOfMonth": 1,
    "dueDays": 1,
    "interval": "…",
    "nextIssueDate": "2026-11-21"
  },
  "recurringFromId": null,
  "reminderDays": null,
  "remindersSent": [],
  "sentAt": "2026-11-21T14:00:00.000Z",
  "status": "…",
  "subtotal": 1,
  "taxAmount": 1,
  "taxBasisPoints": null,
  "taxPercent": null,
  "total": 1,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "viewCount": 1,
  "voidReason": null,
  "voidedAt": null
}

POST/v1/invoices/{id}/duplicate

A new draft with the same items and client.

Create/{id}/duplicateOn success: 201.Permission: Create.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

65 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companynull in the examplesYes
companyIdnull in the examplesYes
contactobjectYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring (email)Yes
contactIdstring (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
dealnull in the examplesYes
dealIdnull in the examplesYes
discountnull in the examplesYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtnull in the examplesYes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressnull in the examplesYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
languagenull in the examplesYes
lastViewedAtnull in the examplesYes
notesnull in the examplesYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtnull in the examplesYes
paymentnull in the examplesYes
paymentMethodnull in the examplesYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobjectYes
recipient.addressnull in the examplesYes
recipient.namestringYes
recurrencenull in the examplesYes
recurringFromIdnull in the examplesYes
reminderDaysnull in the examplesYes
remindersSentarray of anyYes
sentAtnull in the examplesYes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsnull in the examplesYes
taxPercentnull in the examplesYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlnull in the examplesYes
viewCountintegerYes
voidReasonnull in the examplesYes
voidedAtnull in the examplesYes
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/duplicate" \
  -H "X-Api-Key: fmd_..."

Response (201), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicId": "…",
  "number": "…",
  "status": "…",
  "dealId": null,
  "companyId": null,
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issuer": {
    "name": "Ana Lima",
    "address": null
  },
  "recipient": {
    "name": "Ana Lima",
    "address": null
  },
  "language": null,
  "currency": "USD",
  "issueDate": "2026-11-21",
  "dueDate": "2026-11-21",
  "items": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "discount": null,
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1,
      "description": null
    }
  ],
  "discount": null,
  "taxBasisPoints": null,
  "notes": null,
  "subtotal": 1,
  "discountAmount": 1,
  "taxAmount": 1,
  "total": 1,
  "sentAt": null,
  "paidAt": null,
  "acceptPayments": true,
  "paymentMethod": null,
  "paymentNote": null,
  "voidedAt": null,
  "voidReason": null,
  "viewCount": 1,
  "firstViewedAt": null,
  "lastViewedAt": null,
  "reminderDays": null,
  "remindersSent": [],
  "recurrence": null,
  "recurringFromId": null,
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "taxPercent": null,
  "overdue": true,
  "company": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "deal": null,
  "url": null,
  "contactEmail": "[email protected]",
  "payment": null
}

POST/v1/invoices/{id}/pay

Marks an invoice as paid outside Stripe, with the date and how.

Update/{id}/payOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
paidAtstring (date-time)No
methodstring | nullNo
notestring | nullNo

Response

67 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companyobject | nullYes
company.idstring (uuid)Yes
company.namestringYes
companyIdstring | null (uuid)Yes
contactobject | nullYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring | null (email)Yes
contactIdstring | null (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
dealnull in the examplesYes
dealIdnull in the examplesYes
discountnull in the examplesYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtstring | null (date-time)Yes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressnull in the examplesYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
languagenull in the examplesYes
lastViewedAtstring | null (date-time)Yes
notesnull in the examplesYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtstring (date-time)Yes
paymentnull in the examplesYes
paymentMethodstringYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobject | nullYes
recipient.addressnull in the examplesYes
recipient.namestringYes
recurrencenull in the examplesYes
recurringFromIdnull in the examplesYes
reminderDaysnull in the examplesYes
remindersSentarray of anyYes
sentAtstring | null (date-time)Yes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsnull in the examplesYes
taxPercentnull in the examplesYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring (uri)Yes
viewCountintegerYes
voidReasonnull in the examplesYes
voidedAtnull in the examplesYes
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/pay" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "paidAt": "2026-11-21T14:00:00.000Z",
  "method": "…",
  "note": "…"
}'

Response (200), with sample values:

{
  "acceptPayments": true,
  "company": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactEmail": "[email protected]",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "deal": null,
  "dealId": null,
  "discount": null,
  "discountAmount": 1,
  "dueDate": "2026-11-21",
  "firstViewedAt": "2026-11-21T14:00:00.000Z",
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issueDate": "2026-11-21",
  "issuer": {
    "address": null,
    "name": "Ana Lima"
  },
  "items": [
    {
      "description": null,
      "discount": null,
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1
    }
  ],
  "language": null,
  "lastViewedAt": "2026-11-21T14:00:00.000Z",
  "notes": null,
  "number": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "overdue": true,
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "paidAt": "2026-11-21T14:00:00.000Z",
  "payment": null,
  "paymentMethod": "…",
  "paymentNote": null,
  "publicId": "…",
  "recipient": {
    "address": null,
    "name": "Ana Lima"
  },
  "recurrence": null,
  "recurringFromId": null,
  "reminderDays": null,
  "remindersSent": [],
  "sentAt": "2026-11-21T14:00:00.000Z",
  "status": "…",
  "subtotal": 1,
  "taxAmount": 1,
  "taxBasisPoints": null,
  "taxPercent": null,
  "total": 1,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "viewCount": 1,
  "voidReason": null,
  "voidedAt": null
}

GET/v1/invoices/{id}/preview

The invoice as the client sees it, without counting a view.

Read/{id}/previewOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

36 fields
FieldTypeAlways there
billToobjectYes
billTo.addressstring | nullYes
billTo.contactstring | nullYes
billTo.namestring | nullYes
currencystringYes
dealUrlnull in the examplesYes
discountnull in the examplesYes
discountAmountintegerYes
dueDatestring (date)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressstring | nullYes
issuer.namestringYes
itemsarray of anyYes
languagestringYes
notesnull in the examplesYes
numberstringYes
organizationobjectYes
organization.namestringYes
overduebooleanYes
paidAtnull in the examplesYes
paymentnull in the examplesYes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxPercentnull in the examplesYes
templateIdstringYes
themeobjectYes
theme.accentColorstringYes
theme.backgroundColorstringYes
theme.bodyFontstringYes
theme.cornerRadiusstringYes
theme.headingFontstringYes
theme.primaryColorstringYes
theme.textColorstringYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/invoices/{id}/preview" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "billTo": {
    "address": "…",
    "contact": "…",
    "name": "Ana Lima"
  },
  "currency": "USD",
  "dealUrl": null,
  "discount": null,
  "discountAmount": 1,
  "dueDate": "2026-11-21",
  "issueDate": "2026-11-21",
  "issuer": {
    "address": "…",
    "name": "Ana Lima"
  },
  "items": [],
  "language": "…",
  "notes": null,
  "number": "…",
  "organization": {
    "name": "Ana Lima"
  },
  "overdue": true,
  "paidAt": null,
  "payment": null,
  "status": "…",
  "subtotal": 1,
  "taxAmount": 1,
  "taxPercent": null,
  "templateId": "…",
  "theme": {
    "accentColor": "…",
    "backgroundColor": "…",
    "bodyFont": "…",
    "cornerRadius": "…",
    "headingFont": "…",
    "primaryColor": "…",
    "textColor": "…"
  },
  "total": 1
}

POST/v1/invoices/{id}/send

Sends the invoice to the client by email.

Update/{id}/sendOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
emailbooleanNodefault true
tostring (email)Nomax length 320

Response

65 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companynull in the examplesYes
companyIdnull in the examplesYes
contactobject | nullYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring | null (email)Yes
contactIdstring | null (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
dealnull in the examplesYes
dealIdnull in the examplesYes
discountnull in the examplesYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtnull in the examplesYes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressstring | nullYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
languagestring | nullYes
lastViewedAtnull in the examplesYes
notesnull in the examplesYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtnull in the examplesYes
paymentnull in the examplesYes
paymentMethodnull in the examplesYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobject | nullYes
recipient.addressstring | nullYes
recipient.namestringYes
recurrencenull in the examplesYes
recurringFromIdnull in the examplesYes
reminderDaysarray | nullYes
remindersSentarray of anyYes
sentAtstring (date-time)Yes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsnull in the examplesYes
taxPercentnull in the examplesYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring (uri)Yes
viewCountintegerYes
voidReasonnull in the examplesYes
voidedAtnull in the examplesYes
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/send" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "email": true,
  "to": "[email protected]"
}'

Response (200), with sample values:

{
  "acceptPayments": true,
  "company": null,
  "companyId": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactEmail": "[email protected]",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "deal": null,
  "dealId": null,
  "discount": null,
  "discountAmount": 1,
  "dueDate": "2026-11-21",
  "firstViewedAt": null,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issueDate": "2026-11-21",
  "issuer": {
    "address": "…",
    "name": "Ana Lima"
  },
  "items": [
    {
      "description": null,
      "discount": null,
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1
    }
  ],
  "language": "…",
  "lastViewedAt": null,
  "notes": null,
  "number": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "overdue": true,
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "paidAt": null,
  "payment": null,
  "paymentMethod": null,
  "paymentNote": null,
  "publicId": "…",
  "recipient": {
    "address": "…",
    "name": "Ana Lima"
  },
  "recurrence": null,
  "recurringFromId": null,
  "reminderDays": [
    1
  ],
  "remindersSent": [],
  "sentAt": "2026-11-21T14:00:00.000Z",
  "status": "…",
  "subtotal": 1,
  "taxAmount": 1,
  "taxBasisPoints": null,
  "taxPercent": null,
  "total": 1,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "viewCount": 1,
  "voidReason": null,
  "voidedAt": null
}

POST/v1/invoices/{id}/unpay

Undoes marking an invoice as paid.

Update/{id}/unpayOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

65 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companynull in the examplesYes
companyIdnull in the examplesYes
contactobjectYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring (email)Yes
contactIdstring (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
dealnull in the examplesYes
dealIdnull in the examplesYes
discountnull in the examplesYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtstring (date-time)Yes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressnull in the examplesYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
languagenull in the examplesYes
lastViewedAtstring (date-time)Yes
notesnull in the examplesYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtnull in the examplesYes
paymentnull in the examplesYes
paymentMethodnull in the examplesYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobjectYes
recipient.addressnull in the examplesYes
recipient.namestringYes
recurrencenull in the examplesYes
recurringFromIdnull in the examplesYes
reminderDaysnull in the examplesYes
remindersSentarray of anyYes
sentAtstring (date-time)Yes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsnull in the examplesYes
taxPercentnull in the examplesYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring (uri)Yes
viewCountintegerYes
voidReasonnull in the examplesYes
voidedAtnull in the examplesYes
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/unpay" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicId": "…",
  "number": "…",
  "status": "…",
  "dealId": null,
  "companyId": null,
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issuer": {
    "name": "Ana Lima",
    "address": null
  },
  "recipient": {
    "name": "Ana Lima",
    "address": null
  },
  "language": null,
  "currency": "USD",
  "issueDate": "2026-11-21",
  "dueDate": "2026-11-21",
  "items": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "discount": null,
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1,
      "description": null
    }
  ],
  "discount": null,
  "taxBasisPoints": null,
  "notes": null,
  "subtotal": 1,
  "discountAmount": 1,
  "taxAmount": 1,
  "total": 1,
  "sentAt": "2026-11-21T14:00:00.000Z",
  "paidAt": null,
  "acceptPayments": true,
  "paymentMethod": null,
  "paymentNote": null,
  "voidedAt": null,
  "voidReason": null,
  "viewCount": 1,
  "firstViewedAt": "2026-11-21T14:00:00.000Z",
  "lastViewedAt": "2026-11-21T14:00:00.000Z",
  "reminderDays": null,
  "remindersSent": [],
  "recurrence": null,
  "recurringFromId": null,
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "taxPercent": null,
  "overdue": true,
  "company": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "deal": null,
  "url": "https://example.com",
  "contactEmail": "[email protected]",
  "payment": null
}

POST/v1/invoices/{id}/void

Cancels an invoice, refunding it through Stripe when asked (administrators).

Update/{id}/voidOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
reasonstring | nullNo
refundbooleanNodefault false

Response

74 fields
FieldTypeAlways there
acceptPaymentsbooleanYes
companynull in the examplesYes
companyIdnull in the examplesYes
contactobject | nullYes
contact.idstring (uuid)Yes
contact.namestringYes
contactEmailstring | null (email)Yes
contactIdstring | null (uuid)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
dealnull in the examplesYes
dealIdnull in the examplesYes
discountnull in the examplesYes
discountAmountintegerYes
dueDatestring (date)Yes
firstViewedAtstring | null (date-time)Yes
idstring (uuid)Yes
issueDatestring (date)Yes
issuerobjectYes
issuer.addressnull in the examplesYes
issuer.namestringYes
itemsarray of objectYes
items[].descriptionnull in the examplesYes
items[].discountnull in the examplesYes
items[].idstring (uuid)Yes
items[].namestringYes
items[].quantityintegerYes
items[].serviceIdnull in the examplesYes
items[].unitPriceintegerYes
languagenull in the examplesYes
lastViewedAtstring | null (date-time)Yes
notesnull in the examplesYes
numberstringYes
organizationIdstring (uuid)Yes
overduebooleanYes
ownerobjectYes
owner.idstring (uuid)Yes
owner.namestringYes
ownerIdstring (uuid)Yes
paidAtnull in the examplesYes
paymentobject | nullYes
payment.amountintegerYes
payment.applicationFeeintegerYes
payment.createdAtstring (date-time)Yes
payment.currencystringYes
payment.idstring (uuid)Yes
payment.paidAtstring (date-time)Yes
payment.payerEmailstring (email)Yes
payment.payerNamestringYes
payment.statusstringYes
paymentMethodnull in the examplesYes
paymentNotenull in the examplesYes
publicIdstringYes
recipientobject | nullYes
recipient.addressnull in the examplesYes
recipient.namestringYes
recurrencenull in the examplesYes
recurringFromIdnull in the examplesYes
reminderDaysnull in the examplesYes
remindersSentarray of anyYes
sentAtstring (date-time)Yes
statusstringYes
subtotalintegerYes
taxAmountintegerYes
taxBasisPointsnull in the examplesYes
taxPercentnull in the examplesYes
totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring (uri)Yes
viewCountintegerYes
voidReasonstring | nullYes
voidedAtstring (date-time)Yes
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/void" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "…",
  "refund": false
}'

Response (200), with sample values:

{
  "acceptPayments": true,
  "company": null,
  "companyId": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactEmail": "[email protected]",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "deal": null,
  "dealId": null,
  "discount": null,
  "discountAmount": 1,
  "dueDate": "2026-11-21",
  "firstViewedAt": "2026-11-21T14:00:00.000Z",
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issueDate": "2026-11-21",
  "issuer": {
    "address": null,
    "name": "Ana Lima"
  },
  "items": [
    {
      "description": null,
      "discount": null,
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "quantity": 1,
      "serviceId": null,
      "unitPrice": 1
    }
  ],
  "language": null,
  "lastViewedAt": "2026-11-21T14:00:00.000Z",
  "notes": null,
  "number": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "overdue": true,
  "owner": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "paidAt": null,
  "payment": {
    "amount": 1,
    "applicationFee": 1,
    "createdAt": "2026-11-21T14:00:00.000Z",
    "currency": "USD",
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "paidAt": "2026-11-21T14:00:00.000Z",
    "payerEmail": "[email protected]",
    "payerName": "Ana Lima",
    "status": "…"
  },
  "paymentMethod": null,
  "paymentNote": null,
  "publicId": "…",
  "recipient": {
    "name": "Ana Lima",
    "address": null
  },
  "recurrence": null,
  "recurringFromId": null,
  "reminderDays": null,
  "remindersSent": [],
  "sentAt": "2026-11-21T14:00:00.000Z",
  "status": "…",
  "subtotal": 1,
  "taxAmount": 1,
  "taxBasisPoints": null,
  "taxPercent": null,
  "total": 1,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "viewCount": 1,
  "voidReason": "…",
  "voidedAt": "2026-11-21T14:00:00.000Z"
}

Webhook events

Changes of this feature that webhooks can send.

  • invoice.createdCreate
  • invoice.updatedUpdate
  • invoice.sentUpdate
  • invoice.viewedUpdate
  • invoice.paidUpdate
  • invoice.overdueUpdate
  • invoice.voidedUpdate
  • invoice.deletedDelete