Invoices
Invoices: items, sending, payments recorded by hand and recurring invoices.
Values for the examples
Type them once and every example on this page uses them. The API key stays on this page only and is never saved.
GET/v1/invoice-defaults
What new invoices start with: due date, texts, reminders.
ListOn success: 200.Permission: Read.
Response
12 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
digits | integer | Yes |
dueDays | integer | Yes |
issuer | null in the examples | Yes |
next | integer | Yes |
nextNumber | string | Yes |
notes | string | null | Yes |
prefix | string | Yes |
reminders | object | Yes |
reminders.after | array of integer | Yes |
reminders.before | array of integer | Yes |
taxPercent | integer | null | Yes |
Example
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();Response (200), with sample values:
{
"acceptPayments": true,
"digits": 1,
"dueDays": 1,
"issuer": null,
"next": 1,
"nextNumber": "…",
"notes": "…",
"prefix": "…",
"reminders": {
"after": [
1
],
"before": [
1
]
},
"taxPercent": 1
}PUT/v1/invoice-defaults
Changes what new invoices start with.
Update/On success: 200.Permission: Update.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
prefix | string | Yes | max length 20 |
digits | integer | Yes | min 1 · max 8 |
next | integer | Yes | min 1 · max 999999999 |
dueDays | integer | Yes | min 0 · max 365 |
notes | string | null | Yes | |
taxPercent | number | null | Yes | |
reminders | object | Yes | |
reminders.before | array of integer | Yes | max items 5 |
reminders.after | array of integer | Yes | max items 5 |
issuer | object | null | No | |
issuer.name | string | Yes | min length 1 · max length 200 |
issuer.address | string | null | No | |
acceptPayments | boolean | No | default false |
Response
14 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
digits | integer | Yes |
dueDays | integer | Yes |
issuer | object | null | Yes |
issuer.address | string | Yes |
issuer.name | string | Yes |
next | integer | Yes |
nextNumber | string | Yes |
notes | string | null | Yes |
prefix | string | Yes |
reminders | object | Yes |
reminders.after | array of integer | Yes |
reminders.before | array of integer | Yes |
taxPercent | integer | null | Yes |
Example
curl -X PUT "https://api.firmado.app/v1/invoice-defaults" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"prefix": "…",
"digits": 1,
"next": 1,
"dueDays": 0,
"notes": "…",
"taxPercent": 0,
"reminders": {
"before": [
-9007199254740991
],
"after": [
1
]
}
}'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();Response (200), with sample values:
{
"acceptPayments": true,
"digits": 1,
"dueDays": 1,
"issuer": {
"name": "Ana Lima",
"address": "…"
},
"next": 1,
"nextNumber": "…",
"notes": "…",
"prefix": "…",
"reminders": {
"after": [
1
],
"before": [
1
]
},
"taxPercent": 1
}GET/v1/invoices
Lists and searches invoices, by status, client or date.
ListOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
q | string | No | min length 1 · max length 200 |
archived | string | No | |
status | "draft" | "open" | "overdue" | "paid" | "void" | No | |
contactId | string (uuid) | No | |
companyId | string (uuid) | No | |
dealId | string (uuid) | No | |
ownerId | string | No | min length 1 |
dueFrom | string (date) | No | |
dueBefore | string (date) | No | |
sort | "issueDate" | "dueDate" | "total" | "number" | "createdAt" | No | default "issueDate" |
order | "asc" | "desc" | No | default "desc" |
Response
81 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].acceptPayments | boolean | Yes |
data[].company | null in the examples | Yes |
data[].companyId | null in the examples | Yes |
data[].contact | object | null | Yes |
data[].contact.id | string (uuid) | Yes |
data[].contact.name | string | Yes |
data[].contactId | string | null (uuid) | Yes |
data[].createdAt | string (date-time) | Yes |
data[].createdBy | string | null (uuid) | Yes |
data[].currency | string | Yes |
data[].deal | null in the examples | Yes |
data[].dealId | null in the examples | Yes |
data[].discount | null in the examples | Yes |
data[].discountAmount | integer | Yes |
data[].dueDate | string (date) | Yes |
data[].firstViewedAt | null in the examples | Yes |
data[].id | string (uuid) | Yes |
data[].issueDate | string (date) | Yes |
data[].issuer | object | Yes |
data[].issuer.address | null in the examples | Yes |
data[].issuer.name | string | Yes |
data[].items | array of object | Yes |
data[].items[].description | null in the examples | Yes |
data[].items[].discount | null in the examples | Yes |
data[].items[].id | string (uuid) | Yes |
data[].items[].name | string | Yes |
data[].items[].quantity | integer | Yes |
data[].items[].serviceId | null in the examples | Yes |
data[].items[].unitPrice | integer | Yes |
data[].language | null in the examples | Yes |
data[].lastViewedAt | null in the examples | Yes |
data[].notes | string | null | Yes |
data[].number | string | Yes |
data[].organizationId | string (uuid) | Yes |
data[].overdue | boolean | Yes |
data[].owner | object | Yes |
data[].owner.id | string (uuid) | Yes |
data[].owner.name | string | Yes |
data[].ownerId | string (uuid) | Yes |
data[].paidAt | null in the examples | Yes |
data[].paymentMethod | null in the examples | Yes |
data[].paymentNote | null in the examples | Yes |
data[].publicId | string | Yes |
data[].recipient | object | null | Yes |
data[].recipient.address | null in the examples | Yes |
data[].recipient.name | string | Yes |
data[].recurrence | object | null | Yes |
data[].recurrence.autoSend | boolean | Yes |
data[].recurrence.dayOfMonth | integer | Yes |
data[].recurrence.dueDays | integer | No |
data[].recurrence.interval | string | Yes |
data[].recurrence.nextIssueDate | string (date) | Yes |
data[].recurringFromId | string | null (uuid) | Yes |
data[].reminderDays | null in the examples | Yes |
data[].remindersSent | array of string | Yes |
data[].sentAt | string | null (date-time) | Yes |
data[].status | string | Yes |
data[].subtotal | integer | Yes |
data[].taxAmount | integer | Yes |
data[].taxBasisPoints | null in the examples | Yes |
data[].taxPercent | null in the examples | Yes |
data[].total | integer | Yes |
data[].updatedAt | string (date-time) | Yes |
data[].updatedBy | string | null (uuid) | Yes |
data[].viewCount | integer | Yes |
data[].voidReason | null in the examples | Yes |
data[].voidedAt | null in the examples | Yes |
page | integer | Yes |
pageSize | integer | Yes |
summary | object | Yes |
summary.open | array of object | Yes |
summary.open[].amount | integer | Yes |
summary.open[].count | integer | Yes |
summary.open[].currency | string | Yes |
summary.overdue | array of object | Yes |
summary.overdue[].amount | integer | Yes |
summary.overdue[].count | integer | Yes |
summary.overdue[].currency | string | Yes |
summary.paidThisMonth | array of any | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"number": "…",
"status": "…",
"dealId": null,
"companyId": null,
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {},
"recipient": {},
"language": null,
"currency": "USD",
"issueDate": "2026-11-21",
"dueDate": "2026-11-21",
"items": [],
"discount": null,
"taxBasisPoints": null,
"notes": "…",
"subtotal": 1,
"discountAmount": 1,
"taxAmount": 1,
"total": 1,
"sentAt": "2026-11-21T14:00:00.000Z",
"paidAt": null,
"acceptPayments": true,
"paymentMethod": null,
"paymentNote": null,
"voidedAt": null,
"voidReason": null,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"reminderDays": null,
"remindersSent": [],
"recurrence": {},
"recurringFromId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"taxPercent": null,
"overdue": true,
"company": null,
"contact": {},
"owner": {},
"deal": null
}
],
"page": 1,
"pageSize": 1,
"total": 1,
"summary": {
"open": [
{}
],
"overdue": [
{}
],
"paidThisMonth": []
}
}POST/v1/invoices
Creates an invoice draft with its items.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
number | string | No | min length 1 · max length 60 |
dealId | string (uuid) | null | No | |
companyId | string (uuid) | null | No | |
contactId | string (uuid) | null | No | |
issuer | object | null | No | |
issuer.name | string | Yes | min length 1 · max length 200 |
issuer.address | string | null | No | |
recipient | object | null | No | |
recipient.name | string | Yes | min length 1 · max length 200 |
recipient.address | string | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
ownerId | string | null | No | |
currency | string | No | pattern ^[A-Z]{3}$ |
issueDate | string (date) | No | |
dueDate | string (date) | No | |
items | array of object | No | max items 200 |
items[].id | string | No | min length 1 · max length 64 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Yes | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | No | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Yes | min 0 · max 10000000000000 |
items[].discount | object | null | No | |
discount | object | null | No | |
taxPercent | number | null | No | |
notes | string | null | No | |
recurrence | object | null | No | |
recurrence.interval | "monthly" | "quarterly" | "yearly" | Yes | |
recurrence.dayOfMonth | integer | No | min 1 · max 31 |
recurrence.dueDays | integer | No | min 0 · max 365 |
recurrence.nextIssueDate | string (date) | No | |
recurrence.autoSend | boolean | No | default false |
acceptPayments | boolean | No | |
reminderDays | array of integer | null | No |
Response
76 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | object | null | Yes |
company.id | string (uuid) | Yes |
company.name | string | Yes |
companyId | string | null (uuid) | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string | null (email) | Yes |
contactId | string | null (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
deal | null in the examples | Yes |
dealId | null in the examples | Yes |
discount | object | null | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | null in the examples | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | string | null | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | object | null | Yes |
items[].discount.type | string | Yes |
items[].discount.value | integer | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | string | null (uuid) | Yes |
items[].unitPrice | integer | Yes |
language | string | null | Yes |
lastViewedAt | null in the examples | Yes |
notes | string | null | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | null in the examples | Yes |
payment | null in the examples | Yes |
paymentMethod | null in the examples | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | null | Yes |
recipient.address | string | null | Yes |
recipient.name | string | Yes |
recurrence | object | null | Yes |
recurrence.autoSend | boolean | Yes |
recurrence.dayOfMonth | integer | Yes |
recurrence.dueDays | integer | No |
recurrence.interval | string | Yes |
recurrence.nextIssueDate | string (date) | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | array | null | Yes |
remindersSent | array of any | Yes |
sentAt | null in the examples | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | integer | null | Yes |
taxPercent | integer | null | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | null in the examples | Yes |
viewCount | integer | Yes |
voidReason | null in the examples | Yes |
voidedAt | null in the examples | Yes |
Example
curl -X POST "https://api.firmado.app/v1/invoices" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"number": "…",
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'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();Response (201), with sample values:
{
"acceptPayments": true,
"company": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"contactEmail": "[email protected]",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"deal": null,
"dealId": null,
"discount": {
"type": "…",
"value": 1
},
"discountAmount": 1,
"dueDate": "2026-11-21",
"firstViewedAt": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issueDate": "2026-11-21",
"issuer": {
"address": "…",
"name": "Ana Lima"
},
"items": [
{
"description": null,
"discount": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"quantity": 1,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"unitPrice": 1
}
],
"language": "…",
"lastViewedAt": null,
"notes": "…",
"number": "…",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"overdue": true,
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": null,
"payment": null,
"paymentMethod": null,
"paymentNote": null,
"publicId": "…",
"recipient": {
"address": "…",
"name": "Ana Lima"
},
"recurrence": {
"autoSend": true,
"dayOfMonth": 1,
"interval": "…",
"nextIssueDate": "2026-11-21",
"dueDays": 1
},
"recurringFromId": null,
"reminderDays": [
1
],
"remindersSent": [],
"sentAt": null,
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxBasisPoints": 1,
"taxPercent": 1,
"total": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": null,
"viewCount": 1,
"voidReason": null,
"voidedAt": null
}DELETE/v1/invoices/{id}
Deletes an invoice draft.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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}
Returns an invoice with its items, payments and status.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
83 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | null in the examples | Yes |
companyId | null in the examples | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string | null (email) | Yes |
contactId | string | null (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string | null (uuid) | Yes |
currency | string | Yes |
deal | object | null | Yes |
deal.id | string (uuid) | Yes |
deal.title | string | Yes |
dealId | string | null (uuid) | Yes |
discount | object | null | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | string | null (date-time) | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | null in the examples | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | null in the examples | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | null in the examples | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
lastViewedAt | string | null (date-time) | Yes |
notes | string | null | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | string | null (date-time) | Yes |
payment | object | null | Yes |
payment.amount | integer | Yes |
payment.applicationFee | integer | Yes |
payment.createdAt | string (date-time) | Yes |
payment.currency | string | Yes |
payment.id | string (uuid) | Yes |
payment.paidAt | string (date-time) | Yes |
payment.payerEmail | string (email) | Yes |
payment.payerName | string | Yes |
payment.status | string | Yes |
paymentMethod | string | null | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | null | Yes |
recipient.address | null in the examples | Yes |
recipient.name | string | Yes |
recurrence | object | null | Yes |
recurrence.autoSend | boolean | Yes |
recurrence.dayOfMonth | integer | Yes |
recurrence.dueDays | integer | No |
recurrence.interval | string | Yes |
recurrence.nextIssueDate | string (date) | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | null in the examples | Yes |
remindersSent | array of any | Yes |
sentAt | string | null (date-time) | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | null in the examples | Yes |
taxPercent | null in the examples | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string | null (uuid) | Yes |
url | string | null (uri) | Yes |
viewCount | integer | Yes |
voidReason | null in the examples | Yes |
voidedAt | null in the examples | Yes |
Example
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();Response (200), with sample values:
{
"acceptPayments": true,
"company": null,
"companyId": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"contactEmail": "[email protected]",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"deal": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…"
},
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"discount": {
"type": "…",
"value": 1
},
"discountAmount": 1,
"dueDate": "2026-11-21",
"firstViewedAt": "2026-11-21T14:00:00.000Z",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issueDate": "2026-11-21",
"issuer": {
"address": null,
"name": "Ana Lima"
},
"items": [
{
"description": null,
"discount": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"quantity": 1,
"serviceId": null,
"unitPrice": 1
}
],
"language": null,
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"notes": "…",
"number": "…",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"overdue": true,
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": "2026-11-21T14:00:00.000Z",
"payment": {
"amount": 1,
"applicationFee": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"currency": "USD",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": "2026-11-21T14:00:00.000Z",
"payerEmail": "[email protected]",
"payerName": "Ana Lima",
"status": "…"
},
"paymentMethod": "…",
"paymentNote": null,
"publicId": "…",
"recipient": {
"address": null,
"name": "Ana Lima"
},
"recurrence": {
"autoSend": true,
"interval": "…",
"dayOfMonth": 1,
"nextIssueDate": "2026-11-21",
"dueDays": 1
},
"recurringFromId": null,
"reminderDays": null,
"remindersSent": [],
"sentAt": "2026-11-21T14:00:00.000Z",
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxBasisPoints": null,
"taxPercent": null,
"total": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"viewCount": 1,
"voidReason": null,
"voidedAt": null
}PATCH/v1/invoices/{id}
Changes an invoice draft.
UpdateOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
dealId | string (uuid) | null | No | |
companyId | string (uuid) | null | No | |
contactId | string (uuid) | null | No | |
issuer | object | null | No | |
issuer.name | string | Yes | min length 1 · max length 200 |
issuer.address | string | null | No | |
recipient | object | null | No | |
recipient.name | string | Yes | min length 1 · max length 200 |
recipient.address | string | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
ownerId | string | null | No | |
currency | string | No | pattern ^[A-Z]{3}$ |
issueDate | string (date) | No | |
dueDate | string (date) | No | |
items | array of object | No | max items 200 |
items[].id | string | No | min length 1 · max length 64 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Yes | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | No | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Yes | min 0 · max 10000000000000 |
items[].discount | object | null | No | |
discount | object | null | No | |
taxPercent | number | null | No | |
notes | string | null | No | |
recurrence | object | null | No | |
recurrence.interval | "monthly" | "quarterly" | "yearly" | Yes | |
recurrence.dayOfMonth | integer | No | min 1 · max 31 |
recurrence.dueDays | integer | No | min 0 · max 365 |
recurrence.nextIssueDate | string (date) | No | |
recurrence.autoSend | boolean | No | default false |
acceptPayments | boolean | No | |
reminderDays | array of integer | null | No | |
number | string | No | min length 1 · max length 60 |
Response
79 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | null in the examples | Yes |
companyId | null in the examples | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string | null (email) | Yes |
contactId | string | null (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
deal | null in the examples | Yes |
dealId | null in the examples | Yes |
discount | null in the examples | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | null in the examples | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | string | null | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | null in the examples | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | null in the examples | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
lastViewedAt | null in the examples | Yes |
notes | string | null | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | null in the examples | Yes |
payment | object | null | Yes |
payment.amount | integer | Yes |
payment.applicationFee | integer | Yes |
payment.createdAt | string (date-time) | Yes |
payment.currency | string | Yes |
payment.id | string (uuid) | Yes |
payment.paidAt | null in the examples | Yes |
payment.payerEmail | null in the examples | Yes |
payment.payerName | null in the examples | Yes |
payment.status | string | Yes |
paymentMethod | null in the examples | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | null | Yes |
recipient.address | string | null | Yes |
recipient.name | string | Yes |
recurrence | object | null | Yes |
recurrence.autoSend | boolean | Yes |
recurrence.dayOfMonth | integer | Yes |
recurrence.dueDays | integer | Yes |
recurrence.interval | string | Yes |
recurrence.nextIssueDate | string (date) | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | null in the examples | Yes |
remindersSent | array of any | Yes |
sentAt | string | null (date-time) | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | null in the examples | Yes |
taxPercent | null in the examples | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string | null (uri) | Yes |
viewCount | integer | Yes |
voidReason | null in the examples | Yes |
voidedAt | null in the examples | Yes |
Example
curl -X PATCH "https://api.firmado.app/v1/invoices/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"dealId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": "…"
}
}'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();Response (200), with sample values:
{
"acceptPayments": true,
"company": null,
"companyId": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"contactEmail": "[email protected]",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"deal": null,
"dealId": null,
"discount": null,
"discountAmount": 1,
"dueDate": "2026-11-21",
"firstViewedAt": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issueDate": "2026-11-21",
"issuer": {
"address": "…",
"name": "Ana Lima"
},
"items": [
{
"description": null,
"discount": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"quantity": 1,
"serviceId": null,
"unitPrice": 1
}
],
"language": null,
"lastViewedAt": null,
"notes": "…",
"number": "…",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"overdue": true,
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": null,
"payment": {
"amount": 1,
"applicationFee": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"currency": "USD",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": null,
"payerEmail": null,
"payerName": null,
"status": "…"
},
"paymentMethod": null,
"paymentNote": null,
"publicId": "…",
"recipient": {
"address": "…",
"name": "Ana Lima"
},
"recurrence": {
"autoSend": true,
"dayOfMonth": 1,
"dueDays": 1,
"interval": "…",
"nextIssueDate": "2026-11-21"
},
"recurringFromId": null,
"reminderDays": null,
"remindersSent": [],
"sentAt": "2026-11-21T14:00:00.000Z",
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxBasisPoints": null,
"taxPercent": null,
"total": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"viewCount": 1,
"voidReason": null,
"voidedAt": null
}POST/v1/invoices/{id}/duplicate
A new draft with the same items and client.
Create/{id}/duplicateOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
65 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | null in the examples | Yes |
companyId | null in the examples | Yes |
contact | object | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string (email) | Yes |
contactId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
deal | null in the examples | Yes |
dealId | null in the examples | Yes |
discount | null in the examples | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | null in the examples | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | null in the examples | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | null in the examples | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | null in the examples | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
lastViewedAt | null in the examples | Yes |
notes | null in the examples | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | null in the examples | Yes |
payment | null in the examples | Yes |
paymentMethod | null in the examples | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | Yes |
recipient.address | null in the examples | Yes |
recipient.name | string | Yes |
recurrence | null in the examples | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | null in the examples | Yes |
remindersSent | array of any | Yes |
sentAt | null in the examples | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | null in the examples | Yes |
taxPercent | null in the examples | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | null in the examples | Yes |
viewCount | integer | Yes |
voidReason | null in the examples | Yes |
voidedAt | null in the examples | Yes |
Example
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();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"number": "…",
"status": "…",
"dealId": null,
"companyId": null,
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": null
},
"recipient": {
"name": "Ana Lima",
"address": null
},
"language": null,
"currency": "USD",
"issueDate": "2026-11-21",
"dueDate": "2026-11-21",
"items": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"discount": null,
"quantity": 1,
"serviceId": null,
"unitPrice": 1,
"description": null
}
],
"discount": null,
"taxBasisPoints": null,
"notes": null,
"subtotal": 1,
"discountAmount": 1,
"taxAmount": 1,
"total": 1,
"sentAt": null,
"paidAt": null,
"acceptPayments": true,
"paymentMethod": null,
"paymentNote": null,
"voidedAt": null,
"voidReason": null,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"reminderDays": null,
"remindersSent": [],
"recurrence": null,
"recurringFromId": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"taxPercent": null,
"overdue": true,
"company": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"deal": null,
"url": null,
"contactEmail": "[email protected]",
"payment": null
}POST/v1/invoices/{id}/pay
Marks an invoice as paid outside Stripe, with the date and how.
Update/{id}/payOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
paidAt | string (date-time) | No | |
method | string | null | No | |
note | string | null | No |
Response
67 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | object | null | Yes |
company.id | string (uuid) | Yes |
company.name | string | Yes |
companyId | string | null (uuid) | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string | null (email) | Yes |
contactId | string | null (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
deal | null in the examples | Yes |
dealId | null in the examples | Yes |
discount | null in the examples | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | string | null (date-time) | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | null in the examples | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | null in the examples | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | null in the examples | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
lastViewedAt | string | null (date-time) | Yes |
notes | null in the examples | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | string (date-time) | Yes |
payment | null in the examples | Yes |
paymentMethod | string | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | null | Yes |
recipient.address | null in the examples | Yes |
recipient.name | string | Yes |
recurrence | null in the examples | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | null in the examples | Yes |
remindersSent | array of any | Yes |
sentAt | string | null (date-time) | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | null in the examples | Yes |
taxPercent | null in the examples | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
viewCount | integer | Yes |
voidReason | null in the examples | Yes |
voidedAt | null in the examples | Yes |
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/pay" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"paidAt": "2026-11-21T14:00:00.000Z",
"method": "…",
"note": "…"
}'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();Response (200), with sample values:
{
"acceptPayments": true,
"company": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"contactEmail": "[email protected]",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"deal": null,
"dealId": null,
"discount": null,
"discountAmount": 1,
"dueDate": "2026-11-21",
"firstViewedAt": "2026-11-21T14:00:00.000Z",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issueDate": "2026-11-21",
"issuer": {
"address": null,
"name": "Ana Lima"
},
"items": [
{
"description": null,
"discount": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"quantity": 1,
"serviceId": null,
"unitPrice": 1
}
],
"language": null,
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"notes": null,
"number": "…",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"overdue": true,
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": "2026-11-21T14:00:00.000Z",
"payment": null,
"paymentMethod": "…",
"paymentNote": null,
"publicId": "…",
"recipient": {
"address": null,
"name": "Ana Lima"
},
"recurrence": null,
"recurringFromId": null,
"reminderDays": null,
"remindersSent": [],
"sentAt": "2026-11-21T14:00:00.000Z",
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxBasisPoints": null,
"taxPercent": null,
"total": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"viewCount": 1,
"voidReason": null,
"voidedAt": null
}GET/v1/invoices/{id}/preview
The invoice as the client sees it, without counting a view.
Read/{id}/previewOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
36 fields
| Field | Type | Always there |
|---|---|---|
billTo | object | Yes |
billTo.address | string | null | Yes |
billTo.contact | string | null | Yes |
billTo.name | string | null | Yes |
currency | string | Yes |
dealUrl | null in the examples | Yes |
discount | null in the examples | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | string | null | Yes |
issuer.name | string | Yes |
items | array of any | Yes |
language | string | Yes |
notes | null in the examples | Yes |
number | string | Yes |
organization | object | Yes |
organization.name | string | Yes |
overdue | boolean | Yes |
paidAt | null in the examples | Yes |
payment | null in the examples | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxPercent | null in the examples | Yes |
templateId | string | Yes |
theme | object | Yes |
theme.accentColor | string | Yes |
theme.backgroundColor | string | Yes |
theme.bodyFont | string | Yes |
theme.cornerRadius | string | Yes |
theme.headingFont | string | Yes |
theme.primaryColor | string | Yes |
theme.textColor | string | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"billTo": {
"address": "…",
"contact": "…",
"name": "Ana Lima"
},
"currency": "USD",
"dealUrl": null,
"discount": null,
"discountAmount": 1,
"dueDate": "2026-11-21",
"issueDate": "2026-11-21",
"issuer": {
"address": "…",
"name": "Ana Lima"
},
"items": [],
"language": "…",
"notes": null,
"number": "…",
"organization": {
"name": "Ana Lima"
},
"overdue": true,
"paidAt": null,
"payment": null,
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxPercent": null,
"templateId": "…",
"theme": {
"accentColor": "…",
"backgroundColor": "…",
"bodyFont": "…",
"cornerRadius": "…",
"headingFont": "…",
"primaryColor": "…",
"textColor": "…"
},
"total": 1
}POST/v1/invoices/{id}/send
Sends the invoice to the client by email.
Update/{id}/sendOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
email | boolean | No | default true |
to | string (email) | No | max length 320 |
Response
65 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | null in the examples | Yes |
companyId | null in the examples | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string | null (email) | Yes |
contactId | string | null (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
deal | null in the examples | Yes |
dealId | null in the examples | Yes |
discount | null in the examples | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | null in the examples | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | string | null | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | null in the examples | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | null in the examples | Yes |
items[].unitPrice | integer | Yes |
language | string | null | Yes |
lastViewedAt | null in the examples | Yes |
notes | null in the examples | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | null in the examples | Yes |
payment | null in the examples | Yes |
paymentMethod | null in the examples | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | null | Yes |
recipient.address | string | null | Yes |
recipient.name | string | Yes |
recurrence | null in the examples | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | array | null | Yes |
remindersSent | array of any | Yes |
sentAt | string (date-time) | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | null in the examples | Yes |
taxPercent | null in the examples | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
viewCount | integer | Yes |
voidReason | null in the examples | Yes |
voidedAt | null in the examples | Yes |
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/send" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"email": true,
"to": "[email protected]"
}'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();Response (200), with sample values:
{
"acceptPayments": true,
"company": null,
"companyId": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"contactEmail": "[email protected]",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"deal": null,
"dealId": null,
"discount": null,
"discountAmount": 1,
"dueDate": "2026-11-21",
"firstViewedAt": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issueDate": "2026-11-21",
"issuer": {
"address": "…",
"name": "Ana Lima"
},
"items": [
{
"description": null,
"discount": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"quantity": 1,
"serviceId": null,
"unitPrice": 1
}
],
"language": "…",
"lastViewedAt": null,
"notes": null,
"number": "…",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"overdue": true,
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": null,
"payment": null,
"paymentMethod": null,
"paymentNote": null,
"publicId": "…",
"recipient": {
"address": "…",
"name": "Ana Lima"
},
"recurrence": null,
"recurringFromId": null,
"reminderDays": [
1
],
"remindersSent": [],
"sentAt": "2026-11-21T14:00:00.000Z",
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxBasisPoints": null,
"taxPercent": null,
"total": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"viewCount": 1,
"voidReason": null,
"voidedAt": null
}POST/v1/invoices/{id}/unpay
Undoes marking an invoice as paid.
Update/{id}/unpayOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
65 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | null in the examples | Yes |
companyId | null in the examples | Yes |
contact | object | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string (email) | Yes |
contactId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
deal | null in the examples | Yes |
dealId | null in the examples | Yes |
discount | null in the examples | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | string (date-time) | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | null in the examples | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | null in the examples | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | null in the examples | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
lastViewedAt | string (date-time) | Yes |
notes | null in the examples | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | null in the examples | Yes |
payment | null in the examples | Yes |
paymentMethod | null in the examples | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | Yes |
recipient.address | null in the examples | Yes |
recipient.name | string | Yes |
recurrence | null in the examples | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | null in the examples | Yes |
remindersSent | array of any | Yes |
sentAt | string (date-time) | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | null in the examples | Yes |
taxPercent | null in the examples | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
viewCount | integer | Yes |
voidReason | null in the examples | Yes |
voidedAt | null in the examples | Yes |
Example
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();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"number": "…",
"status": "…",
"dealId": null,
"companyId": null,
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": null
},
"recipient": {
"name": "Ana Lima",
"address": null
},
"language": null,
"currency": "USD",
"issueDate": "2026-11-21",
"dueDate": "2026-11-21",
"items": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"discount": null,
"quantity": 1,
"serviceId": null,
"unitPrice": 1,
"description": null
}
],
"discount": null,
"taxBasisPoints": null,
"notes": null,
"subtotal": 1,
"discountAmount": 1,
"taxAmount": 1,
"total": 1,
"sentAt": "2026-11-21T14:00:00.000Z",
"paidAt": null,
"acceptPayments": true,
"paymentMethod": null,
"paymentNote": null,
"voidedAt": null,
"voidReason": null,
"viewCount": 1,
"firstViewedAt": "2026-11-21T14:00:00.000Z",
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"reminderDays": null,
"remindersSent": [],
"recurrence": null,
"recurringFromId": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"taxPercent": null,
"overdue": true,
"company": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"deal": null,
"url": "https://example.com",
"contactEmail": "[email protected]",
"payment": null
}POST/v1/invoices/{id}/void
Cancels an invoice, refunding it through Stripe when asked (administrators).
Update/{id}/voidOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
reason | string | null | No | |
refund | boolean | No | default false |
Response
74 fields
| Field | Type | Always there |
|---|---|---|
acceptPayments | boolean | Yes |
company | null in the examples | Yes |
companyId | null in the examples | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contactEmail | string | null (email) | Yes |
contactId | string | null (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
deal | null in the examples | Yes |
dealId | null in the examples | Yes |
discount | null in the examples | Yes |
discountAmount | integer | Yes |
dueDate | string (date) | Yes |
firstViewedAt | string | null (date-time) | Yes |
id | string (uuid) | Yes |
issueDate | string (date) | Yes |
issuer | object | Yes |
issuer.address | null in the examples | Yes |
issuer.name | string | Yes |
items | array of object | Yes |
items[].description | null in the examples | Yes |
items[].discount | null in the examples | Yes |
items[].id | string (uuid) | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].serviceId | null in the examples | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
lastViewedAt | string | null (date-time) | Yes |
notes | null in the examples | Yes |
number | string | Yes |
organizationId | string (uuid) | Yes |
overdue | boolean | Yes |
owner | object | Yes |
owner.id | string (uuid) | Yes |
owner.name | string | Yes |
ownerId | string (uuid) | Yes |
paidAt | null in the examples | Yes |
payment | object | null | Yes |
payment.amount | integer | Yes |
payment.applicationFee | integer | Yes |
payment.createdAt | string (date-time) | Yes |
payment.currency | string | Yes |
payment.id | string (uuid) | Yes |
payment.paidAt | string (date-time) | Yes |
payment.payerEmail | string (email) | Yes |
payment.payerName | string | Yes |
payment.status | string | Yes |
paymentMethod | null in the examples | Yes |
paymentNote | null in the examples | Yes |
publicId | string | Yes |
recipient | object | null | Yes |
recipient.address | null in the examples | Yes |
recipient.name | string | Yes |
recurrence | null in the examples | Yes |
recurringFromId | null in the examples | Yes |
reminderDays | null in the examples | Yes |
remindersSent | array of any | Yes |
sentAt | string (date-time) | Yes |
status | string | Yes |
subtotal | integer | Yes |
taxAmount | integer | Yes |
taxBasisPoints | null in the examples | Yes |
taxPercent | null in the examples | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
viewCount | integer | Yes |
voidReason | string | null | Yes |
voidedAt | string (date-time) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/invoices/{id}/void" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"reason": "…",
"refund": false
}'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();Response (200), with sample values:
{
"acceptPayments": true,
"company": null,
"companyId": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"contactEmail": "[email protected]",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"deal": null,
"dealId": null,
"discount": null,
"discountAmount": 1,
"dueDate": "2026-11-21",
"firstViewedAt": "2026-11-21T14:00:00.000Z",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issueDate": "2026-11-21",
"issuer": {
"address": null,
"name": "Ana Lima"
},
"items": [
{
"description": null,
"discount": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"quantity": 1,
"serviceId": null,
"unitPrice": 1
}
],
"language": null,
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"notes": null,
"number": "…",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"overdue": true,
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": null,
"payment": {
"amount": 1,
"applicationFee": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"currency": "USD",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": "2026-11-21T14:00:00.000Z",
"payerEmail": "[email protected]",
"payerName": "Ana Lima",
"status": "…"
},
"paymentMethod": null,
"paymentNote": null,
"publicId": "…",
"recipient": {
"name": "Ana Lima",
"address": null
},
"recurrence": null,
"recurringFromId": null,
"reminderDays": null,
"remindersSent": [],
"sentAt": "2026-11-21T14:00:00.000Z",
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxBasisPoints": null,
"taxPercent": null,
"total": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"viewCount": 1,
"voidReason": "…",
"voidedAt": "2026-11-21T14:00:00.000Z"
}Webhook events
Changes of this feature that webhooks can send.
invoice.createdCreateinvoice.updatedUpdateinvoice.sentUpdateinvoice.viewedUpdateinvoice.paidUpdateinvoice.overdueUpdateinvoice.voidedUpdateinvoice.deletedDelete