Faturas

Faturas: itens, envio, pagamentos registrados à mão e faturas recorrentes.

Valores dos exemplos

Digite uma vez e todos os exemplos desta página passam a usá-los. A chave de API fica só nesta página e nunca é guardada.

GET/v1/invoice-defaults

Com o que as novas faturas começam: vencimento, textos e lembretes.

ListarEm caso de sucesso: 200.Permissão: Ler.

Resposta

12 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
digitsintegerSim
dueDaysintegerSim
issuernull nos exemplosSim
nextintegerSim
nextNumberstringSim
notesstring | nullSim
prefixstringSim
remindersobjectSim
reminders.afterarray of integerSim
reminders.beforearray of integerSim
taxPercentinteger | nullSim
Exemplo
curl -X GET "https://api.firmado.app/v1/invoice-defaults" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

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

PUT/v1/invoice-defaults

Altera com o que as novas faturas começam.

Atualizar/Em caso de sucesso: 200.Permissão: Atualizar.

Corpo

CampoTipoObrigatórioObservações
prefixstringSimmax length 20
digitsintegerSimmin 1 · max 8
nextintegerSimmin 1 · max 999999999
dueDaysintegerSimmin 0 · max 365
notesstring | nullSim
taxPercentnumber | nullSim
remindersobjectSim
reminders.beforearray of integerSimmax items 5
reminders.afterarray of integerSimmax items 5
issuerobject | nullNão
issuer.namestringSimmin length 1 · max length 200
issuer.addressstring | nullNão
acceptPaymentsbooleanNãodefault false

Resposta

14 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
digitsintegerSim
dueDaysintegerSim
issuerobject | nullSim
issuer.addressstringSim
issuer.namestringSim
nextintegerSim
nextNumberstringSim
notesstring | nullSim
prefixstringSim
remindersobjectSim
reminders.afterarray of integerSim
reminders.beforearray of integerSim
taxPercentinteger | nullSim
Exemplo
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
    ]
  }
}'

Resposta (200), com valores de exemplo:

{
  "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

Lista e busca faturas, por status, cliente ou data.

ListarEm caso de sucesso: 200.Permissão: Ler.

Parâmetros da consulta

CampoTipoObrigatórioObservações
pageintegerNãomin 1 · default 1
pageSizeintegerNãomin 1 · max 100 · default 25
qstringNãomin length 1 · max length 200
archivedstringNão
status"draft" | "open" | "overdue" | "paid" | "void"Não
contactIdstring (uuid)Não
companyIdstring (uuid)Não
dealIdstring (uuid)Não
ownerIdstringNãomin length 1
dueFromstring (date)Não
dueBeforestring (date)Não
sort"issueDate" | "dueDate" | "total" | "number" | "createdAt"Nãodefault "issueDate"
order"asc" | "desc"Nãodefault "desc"

Resposta

81 campos
CampoTipoSempre presente
dataarray of objectSim
data[].acceptPaymentsbooleanSim
data[].companynull nos exemplosSim
data[].companyIdnull nos exemplosSim
data[].contactobject | nullSim
data[].contact.idstring (uuid)Sim
data[].contact.namestringSim
data[].contactIdstring | null (uuid)Sim
data[].createdAtstring (date-time)Sim
data[].createdBystring | null (uuid)Sim
data[].currencystringSim
data[].dealnull nos exemplosSim
data[].dealIdnull nos exemplosSim
data[].discountnull nos exemplosSim
data[].discountAmountintegerSim
data[].dueDatestring (date)Sim
data[].firstViewedAtnull nos exemplosSim
data[].idstring (uuid)Sim
data[].issueDatestring (date)Sim
data[].issuerobjectSim
data[].issuer.addressnull nos exemplosSim
data[].issuer.namestringSim
data[].itemsarray of objectSim
data[].items[].descriptionnull nos exemplosSim
data[].items[].discountnull nos exemplosSim
data[].items[].idstring (uuid)Sim
data[].items[].namestringSim
data[].items[].quantityintegerSim
data[].items[].serviceIdnull nos exemplosSim
data[].items[].unitPriceintegerSim
data[].languagenull nos exemplosSim
data[].lastViewedAtnull nos exemplosSim
data[].notesstring | nullSim
data[].numberstringSim
data[].organizationIdstring (uuid)Sim
data[].overduebooleanSim
data[].ownerobjectSim
data[].owner.idstring (uuid)Sim
data[].owner.namestringSim
data[].ownerIdstring (uuid)Sim
data[].paidAtnull nos exemplosSim
data[].paymentMethodnull nos exemplosSim
data[].paymentNotenull nos exemplosSim
data[].publicIdstringSim
data[].recipientobject | nullSim
data[].recipient.addressnull nos exemplosSim
data[].recipient.namestringSim
data[].recurrenceobject | nullSim
data[].recurrence.autoSendbooleanSim
data[].recurrence.dayOfMonthintegerSim
data[].recurrence.dueDaysintegerNão
data[].recurrence.intervalstringSim
data[].recurrence.nextIssueDatestring (date)Sim
data[].recurringFromIdstring | null (uuid)Sim
data[].reminderDaysnull nos exemplosSim
data[].remindersSentarray of stringSim
data[].sentAtstring | null (date-time)Sim
data[].statusstringSim
data[].subtotalintegerSim
data[].taxAmountintegerSim
data[].taxBasisPointsnull nos exemplosSim
data[].taxPercentnull nos exemplosSim
data[].totalintegerSim
data[].updatedAtstring (date-time)Sim
data[].updatedBystring | null (uuid)Sim
data[].viewCountintegerSim
data[].voidReasonnull nos exemplosSim
data[].voidedAtnull nos exemplosSim
pageintegerSim
pageSizeintegerSim
summaryobjectSim
summary.openarray of objectSim
summary.open[].amountintegerSim
summary.open[].countintegerSim
summary.open[].currencystringSim
summary.overduearray of objectSim
summary.overdue[].amountintegerSim
summary.overdue[].countintegerSim
summary.overdue[].currencystringSim
summary.paidThisMontharray of anySim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/invoices" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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

Cria um rascunho de fatura com seus itens.

CriarEm caso de sucesso: 201.Permissão: Criar.

Corpo

CampoTipoObrigatórioObservações
numberstringNãomin length 1 · max length 60
dealIdstring (uuid) | nullNão
companyIdstring (uuid) | nullNão
contactIdstring (uuid) | nullNão
issuerobject | nullNão
issuer.namestringSimmin length 1 · max length 200
issuer.addressstring | nullNão
recipientobject | nullNão
recipient.namestringSimmin length 1 · max length 200
recipient.addressstring | nullNão
language"pt" | "es" | "en" | "fr" | nullNão
ownerIdstring | nullNão
currencystringNãopattern ^[A-Z]{3}$
issueDatestring (date)Não
dueDatestring (date)Não
itemsarray of objectNãomax items 200
items[].idstringNãomin length 1 · max length 64
items[].serviceIdstring (uuid) | nullNão
items[].namestringSimmin length 1 · max length 200
items[].descriptionstring | nullNão
items[].quantitynumberNãomin 0 · max 100000 · default 1
items[].unitPriceintegerSimmin 0 · max 10000000000000
items[].discountobject | nullNão
discountobject | nullNão
taxPercentnumber | nullNão
notesstring | nullNão
recurrenceobject | nullNão
recurrence.interval"monthly" | "quarterly" | "yearly"Sim
recurrence.dayOfMonthintegerNãomin 1 · max 31
recurrence.dueDaysintegerNãomin 0 · max 365
recurrence.nextIssueDatestring (date)Não
recurrence.autoSendbooleanNãodefault false
acceptPaymentsbooleanNão
reminderDaysarray of integer | nullNão

Resposta

76 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companyobject | nullSim
company.idstring (uuid)Sim
company.namestringSim
companyIdstring | null (uuid)Sim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring | null (email)Sim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
currencystringSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
discountobject | nullSim
discount.typestringSim
discount.valueintegerSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtnull nos exemplosSim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressstring | nullSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountobject | nullSim
items[].discount.typestringSim
items[].discount.valueintegerSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdstring | null (uuid)Sim
items[].unitPriceintegerSim
languagestring | nullSim
lastViewedAtnull nos exemplosSim
notesstring | nullSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtnull nos exemplosSim
paymentnull nos exemplosSim
paymentMethodnull nos exemplosSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobject | nullSim
recipient.addressstring | nullSim
recipient.namestringSim
recurrenceobject | nullSim
recurrence.autoSendbooleanSim
recurrence.dayOfMonthintegerSim
recurrence.dueDaysintegerNão
recurrence.intervalstringSim
recurrence.nextIssueDatestring (date)Sim
recurringFromIdnull nos exemplosSim
reminderDaysarray | nullSim
remindersSentarray of anySim
sentAtnull nos exemplosSim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsinteger | nullSim
taxPercentinteger | nullSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlnull nos exemplosSim
viewCountintegerSim
voidReasonnull nos exemplosSim
voidedAtnull nos exemplosSim
Exemplo
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"
}'

Resposta (201), com valores de exemplo:

{
  "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}

Exclui um rascunho de fatura.

ExcluirEm caso de sucesso: 204.Permissão: Excluir.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
Exemplo
curl -X DELETE "https://api.firmado.app/v1/invoices/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/invoices/{id}

Retorna uma fatura com seus itens, pagamentos e status.

Ver umEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

83 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring | null (email)Sim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring | null (uuid)Sim
currencystringSim
dealobject | nullSim
deal.idstring (uuid)Sim
deal.titlestringSim
dealIdstring | null (uuid)Sim
discountobject | nullSim
discount.typestringSim
discount.valueintegerSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtstring | null (date-time)Sim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressnull nos exemplosSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountnull nos exemplosSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdnull nos exemplosSim
items[].unitPriceintegerSim
languagenull nos exemplosSim
lastViewedAtstring | null (date-time)Sim
notesstring | nullSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtstring | null (date-time)Sim
paymentobject | nullSim
payment.amountintegerSim
payment.applicationFeeintegerSim
payment.createdAtstring (date-time)Sim
payment.currencystringSim
payment.idstring (uuid)Sim
payment.paidAtstring (date-time)Sim
payment.payerEmailstring (email)Sim
payment.payerNamestringSim
payment.statusstringSim
paymentMethodstring | nullSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobject | nullSim
recipient.addressnull nos exemplosSim
recipient.namestringSim
recurrenceobject | nullSim
recurrence.autoSendbooleanSim
recurrence.dayOfMonthintegerSim
recurrence.dueDaysintegerNão
recurrence.intervalstringSim
recurrence.nextIssueDatestring (date)Sim
recurringFromIdnull nos exemplosSim
reminderDaysnull nos exemplosSim
remindersSentarray of anySim
sentAtstring | null (date-time)Sim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsnull nos exemplosSim
taxPercentnull nos exemplosSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring | null (uuid)Sim
urlstring | null (uri)Sim
viewCountintegerSim
voidReasonnull nos exemplosSim
voidedAtnull nos exemplosSim
Exemplo
curl -X GET "https://api.firmado.app/v1/invoices/{id}" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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}

Altera um rascunho de fatura.

AtualizarEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
dealIdstring (uuid) | nullNão
companyIdstring (uuid) | nullNão
contactIdstring (uuid) | nullNão
issuerobject | nullNão
issuer.namestringSimmin length 1 · max length 200
issuer.addressstring | nullNão
recipientobject | nullNão
recipient.namestringSimmin length 1 · max length 200
recipient.addressstring | nullNão
language"pt" | "es" | "en" | "fr" | nullNão
ownerIdstring | nullNão
currencystringNãopattern ^[A-Z]{3}$
issueDatestring (date)Não
dueDatestring (date)Não
itemsarray of objectNãomax items 200
items[].idstringNãomin length 1 · max length 64
items[].serviceIdstring (uuid) | nullNão
items[].namestringSimmin length 1 · max length 200
items[].descriptionstring | nullNão
items[].quantitynumberNãomin 0 · max 100000 · default 1
items[].unitPriceintegerSimmin 0 · max 10000000000000
items[].discountobject | nullNão
discountobject | nullNão
taxPercentnumber | nullNão
notesstring | nullNão
recurrenceobject | nullNão
recurrence.interval"monthly" | "quarterly" | "yearly"Sim
recurrence.dayOfMonthintegerNãomin 1 · max 31
recurrence.dueDaysintegerNãomin 0 · max 365
recurrence.nextIssueDatestring (date)Não
recurrence.autoSendbooleanNãodefault false
acceptPaymentsbooleanNão
reminderDaysarray of integer | nullNão
numberstringNãomin length 1 · max length 60

Resposta

79 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring | null (email)Sim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
currencystringSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
discountnull nos exemplosSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtnull nos exemplosSim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressstring | nullSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountnull nos exemplosSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdnull nos exemplosSim
items[].unitPriceintegerSim
languagenull nos exemplosSim
lastViewedAtnull nos exemplosSim
notesstring | nullSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtnull nos exemplosSim
paymentobject | nullSim
payment.amountintegerSim
payment.applicationFeeintegerSim
payment.createdAtstring (date-time)Sim
payment.currencystringSim
payment.idstring (uuid)Sim
payment.paidAtnull nos exemplosSim
payment.payerEmailnull nos exemplosSim
payment.payerNamenull nos exemplosSim
payment.statusstringSim
paymentMethodnull nos exemplosSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobject | nullSim
recipient.addressstring | nullSim
recipient.namestringSim
recurrenceobject | nullSim
recurrence.autoSendbooleanSim
recurrence.dayOfMonthintegerSim
recurrence.dueDaysintegerSim
recurrence.intervalstringSim
recurrence.nextIssueDatestring (date)Sim
recurringFromIdnull nos exemplosSim
reminderDaysnull nos exemplosSim
remindersSentarray of anySim
sentAtstring | null (date-time)Sim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsnull nos exemplosSim
taxPercentnull nos exemplosSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring | null (uri)Sim
viewCountintegerSim
voidReasonnull nos exemplosSim
voidedAtnull nos exemplosSim
Exemplo
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": "…"
  }
}'

Resposta (200), com valores de exemplo:

{
  "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

Um novo rascunho com os mesmos itens e cliente.

Criar/{id}/duplicateEm caso de sucesso: 201.Permissão: Criar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

65 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
contactobjectSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring (email)Sim
contactIdstring (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
currencystringSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
discountnull nos exemplosSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtnull nos exemplosSim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressnull nos exemplosSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountnull nos exemplosSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdnull nos exemplosSim
items[].unitPriceintegerSim
languagenull nos exemplosSim
lastViewedAtnull nos exemplosSim
notesnull nos exemplosSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtnull nos exemplosSim
paymentnull nos exemplosSim
paymentMethodnull nos exemplosSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobjectSim
recipient.addressnull nos exemplosSim
recipient.namestringSim
recurrencenull nos exemplosSim
recurringFromIdnull nos exemplosSim
reminderDaysnull nos exemplosSim
remindersSentarray of anySim
sentAtnull nos exemplosSim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsnull nos exemplosSim
taxPercentnull nos exemplosSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlnull nos exemplosSim
viewCountintegerSim
voidReasonnull nos exemplosSim
voidedAtnull nos exemplosSim
Exemplo
curl -X POST "https://api.firmado.app/v1/invoices/{id}/duplicate" \
  -H "X-Api-Key: fmd_..."

Resposta (201), com valores de exemplo:

{
  "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

Marca uma fatura como paga fora do Stripe, com a data e a forma.

Atualizar/{id}/payEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
paidAtstring (date-time)Não
methodstring | nullNão
notestring | nullNão

Resposta

67 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companyobject | nullSim
company.idstring (uuid)Sim
company.namestringSim
companyIdstring | null (uuid)Sim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring | null (email)Sim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
currencystringSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
discountnull nos exemplosSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtstring | null (date-time)Sim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressnull nos exemplosSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountnull nos exemplosSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdnull nos exemplosSim
items[].unitPriceintegerSim
languagenull nos exemplosSim
lastViewedAtstring | null (date-time)Sim
notesnull nos exemplosSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtstring (date-time)Sim
paymentnull nos exemplosSim
paymentMethodstringSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobject | nullSim
recipient.addressnull nos exemplosSim
recipient.namestringSim
recurrencenull nos exemplosSim
recurringFromIdnull nos exemplosSim
reminderDaysnull nos exemplosSim
remindersSentarray of anySim
sentAtstring | null (date-time)Sim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsnull nos exemplosSim
taxPercentnull nos exemplosSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
viewCountintegerSim
voidReasonnull nos exemplosSim
voidedAtnull nos exemplosSim
Exemplo
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": "…"
}'

Resposta (200), com valores de exemplo:

{
  "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

A fatura como o cliente a vê, sem contar uma visualização.

Ler/{id}/previewEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

36 campos
CampoTipoSempre presente
billToobjectSim
billTo.addressstring | nullSim
billTo.contactstring | nullSim
billTo.namestring | nullSim
currencystringSim
dealUrlnull nos exemplosSim
discountnull nos exemplosSim
discountAmountintegerSim
dueDatestring (date)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressstring | nullSim
issuer.namestringSim
itemsarray of anySim
languagestringSim
notesnull nos exemplosSim
numberstringSim
organizationobjectSim
organization.namestringSim
overduebooleanSim
paidAtnull nos exemplosSim
paymentnull nos exemplosSim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxPercentnull nos exemplosSim
templateIdstringSim
themeobjectSim
theme.accentColorstringSim
theme.backgroundColorstringSim
theme.bodyFontstringSim
theme.cornerRadiusstringSim
theme.headingFontstringSim
theme.primaryColorstringSim
theme.textColorstringSim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/invoices/{id}/preview" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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

Envia a fatura ao cliente por e-mail.

Atualizar/{id}/sendEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
emailbooleanNãodefault true
tostring (email)Nãomax length 320

Resposta

65 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring | null (email)Sim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
currencystringSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
discountnull nos exemplosSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtnull nos exemplosSim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressstring | nullSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountnull nos exemplosSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdnull nos exemplosSim
items[].unitPriceintegerSim
languagestring | nullSim
lastViewedAtnull nos exemplosSim
notesnull nos exemplosSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtnull nos exemplosSim
paymentnull nos exemplosSim
paymentMethodnull nos exemplosSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobject | nullSim
recipient.addressstring | nullSim
recipient.namestringSim
recurrencenull nos exemplosSim
recurringFromIdnull nos exemplosSim
reminderDaysarray | nullSim
remindersSentarray of anySim
sentAtstring (date-time)Sim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsnull nos exemplosSim
taxPercentnull nos exemplosSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
viewCountintegerSim
voidReasonnull nos exemplosSim
voidedAtnull nos exemplosSim
Exemplo
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]"
}'

Resposta (200), com valores de exemplo:

{
  "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

Desfaz a marcação de fatura paga.

Atualizar/{id}/unpayEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

65 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
contactobjectSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring (email)Sim
contactIdstring (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
currencystringSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
discountnull nos exemplosSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtstring (date-time)Sim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressnull nos exemplosSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountnull nos exemplosSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdnull nos exemplosSim
items[].unitPriceintegerSim
languagenull nos exemplosSim
lastViewedAtstring (date-time)Sim
notesnull nos exemplosSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtnull nos exemplosSim
paymentnull nos exemplosSim
paymentMethodnull nos exemplosSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobjectSim
recipient.addressnull nos exemplosSim
recipient.namestringSim
recurrencenull nos exemplosSim
recurringFromIdnull nos exemplosSim
reminderDaysnull nos exemplosSim
remindersSentarray of anySim
sentAtstring (date-time)Sim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsnull nos exemplosSim
taxPercentnull nos exemplosSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
viewCountintegerSim
voidReasonnull nos exemplosSim
voidedAtnull nos exemplosSim
Exemplo
curl -X POST "https://api.firmado.app/v1/invoices/{id}/unpay" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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

Cancela uma fatura, estornando pelo Stripe quando pedido (administradores).

Atualizar/{id}/voidEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
reasonstring | nullNão
refundbooleanNãodefault false

Resposta

74 campos
CampoTipoSempre presente
acceptPaymentsbooleanSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactEmailstring | null (email)Sim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
currencystringSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
discountnull nos exemplosSim
discountAmountintegerSim
dueDatestring (date)Sim
firstViewedAtstring | null (date-time)Sim
idstring (uuid)Sim
issueDatestring (date)Sim
issuerobjectSim
issuer.addressnull nos exemplosSim
issuer.namestringSim
itemsarray of objectSim
items[].descriptionnull nos exemplosSim
items[].discountnull nos exemplosSim
items[].idstring (uuid)Sim
items[].namestringSim
items[].quantityintegerSim
items[].serviceIdnull nos exemplosSim
items[].unitPriceintegerSim
languagenull nos exemplosSim
lastViewedAtstring | null (date-time)Sim
notesnull nos exemplosSim
numberstringSim
organizationIdstring (uuid)Sim
overduebooleanSim
ownerobjectSim
owner.idstring (uuid)Sim
owner.namestringSim
ownerIdstring (uuid)Sim
paidAtnull nos exemplosSim
paymentobject | nullSim
payment.amountintegerSim
payment.applicationFeeintegerSim
payment.createdAtstring (date-time)Sim
payment.currencystringSim
payment.idstring (uuid)Sim
payment.paidAtstring (date-time)Sim
payment.payerEmailstring (email)Sim
payment.payerNamestringSim
payment.statusstringSim
paymentMethodnull nos exemplosSim
paymentNotenull nos exemplosSim
publicIdstringSim
recipientobject | nullSim
recipient.addressnull nos exemplosSim
recipient.namestringSim
recurrencenull nos exemplosSim
recurringFromIdnull nos exemplosSim
reminderDaysnull nos exemplosSim
remindersSentarray of anySim
sentAtstring (date-time)Sim
statusstringSim
subtotalintegerSim
taxAmountintegerSim
taxBasisPointsnull nos exemplosSim
taxPercentnull nos exemplosSim
totalintegerSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
viewCountintegerSim
voidReasonstring | nullSim
voidedAtstring (date-time)Sim
Exemplo
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
}'

Resposta (200), com valores de exemplo:

{
  "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"
}

Eventos de webhook

Mudanças desta funcionalidade que os webhooks podem enviar.

  • invoice.createdCriar
  • invoice.updatedAtualizar
  • invoice.sentAtualizar
  • invoice.viewedAtualizar
  • invoice.paidAtualizar
  • invoice.overdueAtualizar
  • invoice.voidedAtualizar
  • invoice.deletedExcluir