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
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
digits | integer | Sim |
dueDays | integer | Sim |
issuer | null nos exemplos | Sim |
next | integer | Sim |
nextNumber | string | Sim |
notes | string | null | Sim |
prefix | string | Sim |
reminders | object | Sim |
reminders.after | array of integer | Sim |
reminders.before | array of integer | Sim |
taxPercent | integer | null | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/invoice-defaults" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/invoice-defaults", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/invoice-defaults",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoice-defaults");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoice-defaults")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/invoice-defaults", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoice-defaults"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/invoice-defaults");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
prefix | string | Sim | max length 20 |
digits | integer | Sim | min 1 · max 8 |
next | integer | Sim | min 1 · max 999999999 |
dueDays | integer | Sim | min 0 · max 365 |
notes | string | null | Sim | |
taxPercent | number | null | Sim | |
reminders | object | Sim | |
reminders.before | array of integer | Sim | max items 5 |
reminders.after | array of integer | Sim | max items 5 |
issuer | object | null | Não | |
issuer.name | string | Sim | min length 1 · max length 200 |
issuer.address | string | null | Não | |
acceptPayments | boolean | Não | default false |
Resposta
14 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
digits | integer | Sim |
dueDays | integer | Sim |
issuer | object | null | Sim |
issuer.address | string | Sim |
issuer.name | string | Sim |
next | integer | Sim |
nextNumber | string | Sim |
notes | string | null | Sim |
prefix | string | Sim |
reminders | object | Sim |
reminders.after | array of integer | Sim |
reminders.before | array of integer | Sim |
taxPercent | integer | null | Sim |
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
]
}
}'const res = await fetch("https://api.firmado.app/v1/invoice-defaults", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991
],
"after": [
1
]
}
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/invoice-defaults",
headers={"X-Api-Key": "fmd_..."},
json={
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991,
],
"after": [
1,
],
},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoice-defaults");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991
],
"after": [
1
]
}
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoice-defaults")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991
],
"after": [
1
]
}
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991
],
"after": [
1
]
}
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/invoice-defaults", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoice-defaults"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991
],
"after": [
1
]
}
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.firmado.app/v1/invoice-defaults");
request.Content = new StringContent(""""
{
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991
],
"after": [
1
]
}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
page | integer | Não | min 1 · default 1 |
pageSize | integer | Não | min 1 · max 100 · default 25 |
q | string | Não | min length 1 · max length 200 |
archived | string | Não | |
status | "draft" | "open" | "overdue" | "paid" | "void" | Não | |
contactId | string (uuid) | Não | |
companyId | string (uuid) | Não | |
dealId | string (uuid) | Não | |
ownerId | string | Não | min length 1 |
dueFrom | string (date) | Não | |
dueBefore | string (date) | Não | |
sort | "issueDate" | "dueDate" | "total" | "number" | "createdAt" | Não | default "issueDate" |
order | "asc" | "desc" | Não | default "desc" |
Resposta
81 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
data | array of object | Sim |
data[].acceptPayments | boolean | Sim |
data[].company | null nos exemplos | Sim |
data[].companyId | null nos exemplos | Sim |
data[].contact | object | null | Sim |
data[].contact.id | string (uuid) | Sim |
data[].contact.name | string | Sim |
data[].contactId | string | null (uuid) | Sim |
data[].createdAt | string (date-time) | Sim |
data[].createdBy | string | null (uuid) | Sim |
data[].currency | string | Sim |
data[].deal | null nos exemplos | Sim |
data[].dealId | null nos exemplos | Sim |
data[].discount | null nos exemplos | Sim |
data[].discountAmount | integer | Sim |
data[].dueDate | string (date) | Sim |
data[].firstViewedAt | null nos exemplos | Sim |
data[].id | string (uuid) | Sim |
data[].issueDate | string (date) | Sim |
data[].issuer | object | Sim |
data[].issuer.address | null nos exemplos | Sim |
data[].issuer.name | string | Sim |
data[].items | array of object | Sim |
data[].items[].description | null nos exemplos | Sim |
data[].items[].discount | null nos exemplos | Sim |
data[].items[].id | string (uuid) | Sim |
data[].items[].name | string | Sim |
data[].items[].quantity | integer | Sim |
data[].items[].serviceId | null nos exemplos | Sim |
data[].items[].unitPrice | integer | Sim |
data[].language | null nos exemplos | Sim |
data[].lastViewedAt | null nos exemplos | Sim |
data[].notes | string | null | Sim |
data[].number | string | Sim |
data[].organizationId | string (uuid) | Sim |
data[].overdue | boolean | Sim |
data[].owner | object | Sim |
data[].owner.id | string (uuid) | Sim |
data[].owner.name | string | Sim |
data[].ownerId | string (uuid) | Sim |
data[].paidAt | null nos exemplos | Sim |
data[].paymentMethod | null nos exemplos | Sim |
data[].paymentNote | null nos exemplos | Sim |
data[].publicId | string | Sim |
data[].recipient | object | null | Sim |
data[].recipient.address | null nos exemplos | Sim |
data[].recipient.name | string | Sim |
data[].recurrence | object | null | Sim |
data[].recurrence.autoSend | boolean | Sim |
data[].recurrence.dayOfMonth | integer | Sim |
data[].recurrence.dueDays | integer | Não |
data[].recurrence.interval | string | Sim |
data[].recurrence.nextIssueDate | string (date) | Sim |
data[].recurringFromId | string | null (uuid) | Sim |
data[].reminderDays | null nos exemplos | Sim |
data[].remindersSent | array of string | Sim |
data[].sentAt | string | null (date-time) | Sim |
data[].status | string | Sim |
data[].subtotal | integer | Sim |
data[].taxAmount | integer | Sim |
data[].taxBasisPoints | null nos exemplos | Sim |
data[].taxPercent | null nos exemplos | Sim |
data[].total | integer | Sim |
data[].updatedAt | string (date-time) | Sim |
data[].updatedBy | string | null (uuid) | Sim |
data[].viewCount | integer | Sim |
data[].voidReason | null nos exemplos | Sim |
data[].voidedAt | null nos exemplos | Sim |
page | integer | Sim |
pageSize | integer | Sim |
summary | object | Sim |
summary.open | array of object | Sim |
summary.open[].amount | integer | Sim |
summary.open[].count | integer | Sim |
summary.open[].currency | string | Sim |
summary.overdue | array of object | Sim |
summary.overdue[].amount | integer | Sim |
summary.overdue[].count | integer | Sim |
summary.overdue[].currency | string | Sim |
summary.paidThisMonth | array of any | Sim |
total | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/invoices" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/invoices", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/invoices",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/invoices", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/invoices");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
number | string | Não | min length 1 · max length 60 |
dealId | string (uuid) | null | Não | |
companyId | string (uuid) | null | Não | |
contactId | string (uuid) | null | Não | |
issuer | object | null | Não | |
issuer.name | string | Sim | min length 1 · max length 200 |
issuer.address | string | null | Não | |
recipient | object | null | Não | |
recipient.name | string | Sim | min length 1 · max length 200 |
recipient.address | string | null | Não | |
language | "pt" | "es" | "en" | "fr" | null | Não | |
ownerId | string | null | Não | |
currency | string | Não | pattern ^[A-Z]{3}$ |
issueDate | string (date) | Não | |
dueDate | string (date) | Não | |
items | array of object | Não | max items 200 |
items[].id | string | Não | min length 1 · max length 64 |
items[].serviceId | string (uuid) | null | Não | |
items[].name | string | Sim | min length 1 · max length 200 |
items[].description | string | null | Não | |
items[].quantity | number | Não | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Sim | min 0 · max 10000000000000 |
items[].discount | object | null | Não | |
discount | object | null | Não | |
taxPercent | number | null | Não | |
notes | string | null | Não | |
recurrence | object | null | Não | |
recurrence.interval | "monthly" | "quarterly" | "yearly" | Sim | |
recurrence.dayOfMonth | integer | Não | min 1 · max 31 |
recurrence.dueDays | integer | Não | min 0 · max 365 |
recurrence.nextIssueDate | string (date) | Não | |
recurrence.autoSend | boolean | Não | default false |
acceptPayments | boolean | Não | |
reminderDays | array of integer | null | Não |
Resposta
76 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | object | null | Sim |
company.id | string (uuid) | Sim |
company.name | string | Sim |
companyId | string | null (uuid) | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string | null (email) | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
currency | string | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
discount | object | null | Sim |
discount.type | string | Sim |
discount.value | integer | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | null nos exemplos | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | string | null | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | object | null | Sim |
items[].discount.type | string | Sim |
items[].discount.value | integer | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | string | null (uuid) | Sim |
items[].unitPrice | integer | Sim |
language | string | null | Sim |
lastViewedAt | null nos exemplos | Sim |
notes | string | null | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | null nos exemplos | Sim |
payment | null nos exemplos | Sim |
paymentMethod | null nos exemplos | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | null | Sim |
recipient.address | string | null | Sim |
recipient.name | string | Sim |
recurrence | object | null | Sim |
recurrence.autoSend | boolean | Sim |
recurrence.dayOfMonth | integer | Sim |
recurrence.dueDays | integer | Não |
recurrence.interval | string | Sim |
recurrence.nextIssueDate | string (date) | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | array | null | Sim |
remindersSent | array of any | Sim |
sentAt | null nos exemplos | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | integer | null | Sim |
taxPercent | integer | null | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | null nos exemplos | Sim |
viewCount | integer | Sim |
voidReason | null nos exemplos | Sim |
voidedAt | null nos exemplos | Sim |
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"
}'const res = await fetch("https://api.firmado.app/v1/invoices", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/invoices",
headers={"X-Api-Key": "fmd_..."},
json={
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/invoices", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/invoices");
request.Content = new StringContent(""""
{
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/invoices/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/invoices/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/invoices/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/invoices/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/invoices/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
83 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | null nos exemplos | Sim |
companyId | null nos exemplos | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string | null (email) | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string | null (uuid) | Sim |
currency | string | Sim |
deal | object | null | Sim |
deal.id | string (uuid) | Sim |
deal.title | string | Sim |
dealId | string | null (uuid) | Sim |
discount | object | null | Sim |
discount.type | string | Sim |
discount.value | integer | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | string | null (date-time) | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | null nos exemplos | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | null nos exemplos | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | null nos exemplos | Sim |
items[].unitPrice | integer | Sim |
language | null nos exemplos | Sim |
lastViewedAt | string | null (date-time) | Sim |
notes | string | null | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | string | null (date-time) | Sim |
payment | object | null | Sim |
payment.amount | integer | Sim |
payment.applicationFee | integer | Sim |
payment.createdAt | string (date-time) | Sim |
payment.currency | string | Sim |
payment.id | string (uuid) | Sim |
payment.paidAt | string (date-time) | Sim |
payment.payerEmail | string (email) | Sim |
payment.payerName | string | Sim |
payment.status | string | Sim |
paymentMethod | string | null | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | null | Sim |
recipient.address | null nos exemplos | Sim |
recipient.name | string | Sim |
recurrence | object | null | Sim |
recurrence.autoSend | boolean | Sim |
recurrence.dayOfMonth | integer | Sim |
recurrence.dueDays | integer | Não |
recurrence.interval | string | Sim |
recurrence.nextIssueDate | string (date) | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | null nos exemplos | Sim |
remindersSent | array of any | Sim |
sentAt | string | null (date-time) | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | null nos exemplos | Sim |
taxPercent | null nos exemplos | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string | null (uuid) | Sim |
url | string | null (uri) | Sim |
viewCount | integer | Sim |
voidReason | null nos exemplos | Sim |
voidedAt | null nos exemplos | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/invoices/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/invoices/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/invoices/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/invoices/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/invoices/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
dealId | string (uuid) | null | Não | |
companyId | string (uuid) | null | Não | |
contactId | string (uuid) | null | Não | |
issuer | object | null | Não | |
issuer.name | string | Sim | min length 1 · max length 200 |
issuer.address | string | null | Não | |
recipient | object | null | Não | |
recipient.name | string | Sim | min length 1 · max length 200 |
recipient.address | string | null | Não | |
language | "pt" | "es" | "en" | "fr" | null | Não | |
ownerId | string | null | Não | |
currency | string | Não | pattern ^[A-Z]{3}$ |
issueDate | string (date) | Não | |
dueDate | string (date) | Não | |
items | array of object | Não | max items 200 |
items[].id | string | Não | min length 1 · max length 64 |
items[].serviceId | string (uuid) | null | Não | |
items[].name | string | Sim | min length 1 · max length 200 |
items[].description | string | null | Não | |
items[].quantity | number | Não | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Sim | min 0 · max 10000000000000 |
items[].discount | object | null | Não | |
discount | object | null | Não | |
taxPercent | number | null | Não | |
notes | string | null | Não | |
recurrence | object | null | Não | |
recurrence.interval | "monthly" | "quarterly" | "yearly" | Sim | |
recurrence.dayOfMonth | integer | Não | min 1 · max 31 |
recurrence.dueDays | integer | Não | min 0 · max 365 |
recurrence.nextIssueDate | string (date) | Não | |
recurrence.autoSend | boolean | Não | default false |
acceptPayments | boolean | Não | |
reminderDays | array of integer | null | Não | |
number | string | Não | min length 1 · max length 60 |
Resposta
79 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | null nos exemplos | Sim |
companyId | null nos exemplos | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string | null (email) | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
currency | string | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
discount | null nos exemplos | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | null nos exemplos | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | string | null | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | null nos exemplos | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | null nos exemplos | Sim |
items[].unitPrice | integer | Sim |
language | null nos exemplos | Sim |
lastViewedAt | null nos exemplos | Sim |
notes | string | null | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | null nos exemplos | Sim |
payment | object | null | Sim |
payment.amount | integer | Sim |
payment.applicationFee | integer | Sim |
payment.createdAt | string (date-time) | Sim |
payment.currency | string | Sim |
payment.id | string (uuid) | Sim |
payment.paidAt | null nos exemplos | Sim |
payment.payerEmail | null nos exemplos | Sim |
payment.payerName | null nos exemplos | Sim |
payment.status | string | Sim |
paymentMethod | null nos exemplos | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | null | Sim |
recipient.address | string | null | Sim |
recipient.name | string | Sim |
recurrence | object | null | Sim |
recurrence.autoSend | boolean | Sim |
recurrence.dayOfMonth | integer | Sim |
recurrence.dueDays | integer | Sim |
recurrence.interval | string | Sim |
recurrence.nextIssueDate | string (date) | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | null nos exemplos | Sim |
remindersSent | array of any | Sim |
sentAt | string | null (date-time) | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | null nos exemplos | Sim |
taxPercent | null nos exemplos | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string | null (uri) | Sim |
viewCount | integer | Sim |
voidReason | null nos exemplos | Sim |
voidedAt | null nos exemplos | Sim |
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": "…"
}
}'const res = await fetch("https://api.firmado.app/v1/invoices/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…"
}
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/invoices/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…",
},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…"
}
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…"
}
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…"
}
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/invoices/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…"
}
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PATCH"), "https://api.firmado.app/v1/invoices/{id}");
request.Content = new StringContent(""""
{
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…"
}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
65 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | null nos exemplos | Sim |
companyId | null nos exemplos | Sim |
contact | object | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string (email) | Sim |
contactId | string (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
currency | string | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
discount | null nos exemplos | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | null nos exemplos | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | null nos exemplos | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | null nos exemplos | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | null nos exemplos | Sim |
items[].unitPrice | integer | Sim |
language | null nos exemplos | Sim |
lastViewedAt | null nos exemplos | Sim |
notes | null nos exemplos | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | null nos exemplos | Sim |
payment | null nos exemplos | Sim |
paymentMethod | null nos exemplos | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | Sim |
recipient.address | null nos exemplos | Sim |
recipient.name | string | Sim |
recurrence | null nos exemplos | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | null nos exemplos | Sim |
remindersSent | array of any | Sim |
sentAt | null nos exemplos | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | null nos exemplos | Sim |
taxPercent | null nos exemplos | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | null nos exemplos | Sim |
viewCount | integer | Sim |
voidReason | null nos exemplos | Sim |
voidedAt | null nos exemplos | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/invoices/{id}/duplicate" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/invoices/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/invoices/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}/duplicate");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}/duplicate")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/invoices/{id}/duplicate", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}/duplicate"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/invoices/{id}/duplicate");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
paidAt | string (date-time) | Não | |
method | string | null | Não | |
note | string | null | Não |
Resposta
67 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | object | null | Sim |
company.id | string (uuid) | Sim |
company.name | string | Sim |
companyId | string | null (uuid) | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string | null (email) | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
currency | string | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
discount | null nos exemplos | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | string | null (date-time) | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | null nos exemplos | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | null nos exemplos | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | null nos exemplos | Sim |
items[].unitPrice | integer | Sim |
language | null nos exemplos | Sim |
lastViewedAt | string | null (date-time) | Sim |
notes | null nos exemplos | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | string (date-time) | Sim |
payment | null nos exemplos | Sim |
paymentMethod | string | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | null | Sim |
recipient.address | null nos exemplos | Sim |
recipient.name | string | Sim |
recurrence | null nos exemplos | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | null nos exemplos | Sim |
remindersSent | array of any | Sim |
sentAt | string | null (date-time) | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | null nos exemplos | Sim |
taxPercent | null nos exemplos | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
viewCount | integer | Sim |
voidReason | null nos exemplos | Sim |
voidedAt | null nos exemplos | Sim |
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": "…"
}'const res = await fetch("https://api.firmado.app/v1/invoices/{id}/pay", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/invoices/{id}/pay",
headers={"X-Api-Key": "fmd_..."},
json={
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}/pay");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}/pay")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/invoices/{id}/pay", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}/pay"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/invoices/{id}/pay");
request.Content = new StringContent(""""
{
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
36 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
billTo | object | Sim |
billTo.address | string | null | Sim |
billTo.contact | string | null | Sim |
billTo.name | string | null | Sim |
currency | string | Sim |
dealUrl | null nos exemplos | Sim |
discount | null nos exemplos | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | string | null | Sim |
issuer.name | string | Sim |
items | array of any | Sim |
language | string | Sim |
notes | null nos exemplos | Sim |
number | string | Sim |
organization | object | Sim |
organization.name | string | Sim |
overdue | boolean | Sim |
paidAt | null nos exemplos | Sim |
payment | null nos exemplos | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxPercent | null nos exemplos | Sim |
templateId | string | Sim |
theme | object | Sim |
theme.accentColor | string | Sim |
theme.backgroundColor | string | Sim |
theme.bodyFont | string | Sim |
theme.cornerRadius | string | Sim |
theme.headingFont | string | Sim |
theme.primaryColor | string | Sim |
theme.textColor | string | Sim |
total | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/invoices/{id}/preview" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/invoices/{id}/preview", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/invoices/{id}/preview",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}/preview");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}/preview")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/invoices/{id}/preview", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}/preview"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/invoices/{id}/preview");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
email | boolean | Não | default true |
to | string (email) | Não | max length 320 |
Resposta
65 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | null nos exemplos | Sim |
companyId | null nos exemplos | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string | null (email) | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
currency | string | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
discount | null nos exemplos | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | null nos exemplos | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | string | null | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | null nos exemplos | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | null nos exemplos | Sim |
items[].unitPrice | integer | Sim |
language | string | null | Sim |
lastViewedAt | null nos exemplos | Sim |
notes | null nos exemplos | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | null nos exemplos | Sim |
payment | null nos exemplos | Sim |
paymentMethod | null nos exemplos | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | null | Sim |
recipient.address | string | null | Sim |
recipient.name | string | Sim |
recurrence | null nos exemplos | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | array | null | Sim |
remindersSent | array of any | Sim |
sentAt | string (date-time) | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | null nos exemplos | Sim |
taxPercent | null nos exemplos | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
viewCount | integer | Sim |
voidReason | null nos exemplos | Sim |
voidedAt | null nos exemplos | Sim |
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]"
}'const res = await fetch("https://api.firmado.app/v1/invoices/{id}/send", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"email": true,
"to": "[email protected]"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/invoices/{id}/send",
headers={"X-Api-Key": "fmd_..."},
json={
"email": True,
"to": "[email protected]",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}/send");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"email": true,
"to": "[email protected]"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}/send")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"email": true,
"to": "[email protected]"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"email": true,
"to": "[email protected]"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/invoices/{id}/send", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}/send"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"email": true,
"to": "[email protected]"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/invoices/{id}/send");
request.Content = new StringContent(""""
{
"email": true,
"to": "[email protected]"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
65 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | null nos exemplos | Sim |
companyId | null nos exemplos | Sim |
contact | object | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string (email) | Sim |
contactId | string (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
currency | string | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
discount | null nos exemplos | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | string (date-time) | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | null nos exemplos | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | null nos exemplos | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | null nos exemplos | Sim |
items[].unitPrice | integer | Sim |
language | null nos exemplos | Sim |
lastViewedAt | string (date-time) | Sim |
notes | null nos exemplos | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | null nos exemplos | Sim |
payment | null nos exemplos | Sim |
paymentMethod | null nos exemplos | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | Sim |
recipient.address | null nos exemplos | Sim |
recipient.name | string | Sim |
recurrence | null nos exemplos | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | null nos exemplos | Sim |
remindersSent | array of any | Sim |
sentAt | string (date-time) | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | null nos exemplos | Sim |
taxPercent | null nos exemplos | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
viewCount | integer | Sim |
voidReason | null nos exemplos | Sim |
voidedAt | null nos exemplos | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/invoices/{id}/unpay" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/invoices/{id}/unpay", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/invoices/{id}/unpay",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}/unpay");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}/unpay")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/invoices/{id}/unpay", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}/unpay"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/invoices/{id}/unpay");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
reason | string | null | Não | |
refund | boolean | Não | default false |
Resposta
74 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
acceptPayments | boolean | Sim |
company | null nos exemplos | Sim |
companyId | null nos exemplos | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactEmail | string | null (email) | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
currency | string | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
discount | null nos exemplos | Sim |
discountAmount | integer | Sim |
dueDate | string (date) | Sim |
firstViewedAt | string | null (date-time) | Sim |
id | string (uuid) | Sim |
issueDate | string (date) | Sim |
issuer | object | Sim |
issuer.address | null nos exemplos | Sim |
issuer.name | string | Sim |
items | array of object | Sim |
items[].description | null nos exemplos | Sim |
items[].discount | null nos exemplos | Sim |
items[].id | string (uuid) | Sim |
items[].name | string | Sim |
items[].quantity | integer | Sim |
items[].serviceId | null nos exemplos | Sim |
items[].unitPrice | integer | Sim |
language | null nos exemplos | Sim |
lastViewedAt | string | null (date-time) | Sim |
notes | null nos exemplos | Sim |
number | string | Sim |
organizationId | string (uuid) | Sim |
overdue | boolean | Sim |
owner | object | Sim |
owner.id | string (uuid) | Sim |
owner.name | string | Sim |
ownerId | string (uuid) | Sim |
paidAt | null nos exemplos | Sim |
payment | object | null | Sim |
payment.amount | integer | Sim |
payment.applicationFee | integer | Sim |
payment.createdAt | string (date-time) | Sim |
payment.currency | string | Sim |
payment.id | string (uuid) | Sim |
payment.paidAt | string (date-time) | Sim |
payment.payerEmail | string (email) | Sim |
payment.payerName | string | Sim |
payment.status | string | Sim |
paymentMethod | null nos exemplos | Sim |
paymentNote | null nos exemplos | Sim |
publicId | string | Sim |
recipient | object | null | Sim |
recipient.address | null nos exemplos | Sim |
recipient.name | string | Sim |
recurrence | null nos exemplos | Sim |
recurringFromId | null nos exemplos | Sim |
reminderDays | null nos exemplos | Sim |
remindersSent | array of any | Sim |
sentAt | string (date-time) | Sim |
status | string | Sim |
subtotal | integer | Sim |
taxAmount | integer | Sim |
taxBasisPoints | null nos exemplos | Sim |
taxPercent | null nos exemplos | Sim |
total | integer | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
viewCount | integer | Sim |
voidReason | string | null | Sim |
voidedAt | string (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
}'const res = await fetch("https://api.firmado.app/v1/invoices/{id}/void", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"reason": "…",
"refund": false
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/invoices/{id}/void",
headers={"X-Api-Key": "fmd_..."},
json={
"reason": "…",
"refund": False,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/invoices/{id}/void");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"reason": "…",
"refund": false
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/invoices/{id}/void")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"reason": "…",
"refund": false
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"reason": "…",
"refund": false
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/invoices/{id}/void", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/invoices/{id}/void"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"reason": "…",
"refund": false
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/invoices/{id}/void");
request.Content = new StringContent(""""
{
"reason": "…",
"refund": false
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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.createdCriarinvoice.updatedAtualizarinvoice.sentAtualizarinvoice.viewedAtualizarinvoice.paidAtualizarinvoice.overdueAtualizarinvoice.voidedAtualizarinvoice.deletedExcluir