Factures
Factures : lignes, envoi, paiements saisis à la main et factures récurrentes.
Valeurs des exemples
Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.
GET/v1/invoice-defaults
Ce avec quoi commencent les nouvelles factures : échéance, textes et rappels.
ListerEn cas de succès : 200.Permission : Lire.
Réponse
12 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
digits | integer | Oui |
dueDays | integer | Oui |
issuer | null dans les exemples | Oui |
next | integer | Oui |
nextNumber | string | Oui |
notes | string | null | Oui |
prefix | string | Oui |
reminders | object | Oui |
reminders.after | array of integer | Oui |
reminders.before | array of integer | Oui |
taxPercent | integer | null | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"acceptPayments": true,
"digits": 1,
"dueDays": 1,
"issuer": null,
"next": 1,
"nextNumber": "…",
"notes": "…",
"prefix": "…",
"reminders": {
"after": [
1
],
"before": [
1
]
},
"taxPercent": 1
}PUT/v1/invoice-defaults
Modifie ce avec quoi commencent les nouvelles factures.
Modifier/En cas de succès : 200.Permission : Modifier.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
prefix | string | Oui | max length 20 |
digits | integer | Oui | min 1 · max 8 |
next | integer | Oui | min 1 · max 999999999 |
dueDays | integer | Oui | min 0 · max 365 |
notes | string | null | Oui | |
taxPercent | number | null | Oui | |
reminders | object | Oui | |
reminders.before | array of integer | Oui | max items 5 |
reminders.after | array of integer | Oui | max items 5 |
issuer | object | null | Non | |
issuer.name | string | Oui | min length 1 · max length 200 |
issuer.address | string | null | Non | |
acceptPayments | boolean | Non | default false |
Réponse
14 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
digits | integer | Oui |
dueDays | integer | Oui |
issuer | object | null | Oui |
issuer.address | string | Oui |
issuer.name | string | Oui |
next | integer | Oui |
nextNumber | string | Oui |
notes | string | null | Oui |
prefix | string | Oui |
reminders | object | Oui |
reminders.after | array of integer | Oui |
reminders.before | array of integer | Oui |
taxPercent | integer | null | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Liste et recherche les factures, par statut, client ou date.
ListerEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
page | integer | Non | min 1 · default 1 |
pageSize | integer | Non | min 1 · max 100 · default 25 |
q | string | Non | min length 1 · max length 200 |
archived | string | Non | |
status | "draft" | "open" | "overdue" | "paid" | "void" | Non | |
contactId | string (uuid) | Non | |
companyId | string (uuid) | Non | |
dealId | string (uuid) | Non | |
ownerId | string | Non | min length 1 |
dueFrom | string (date) | Non | |
dueBefore | string (date) | Non | |
sort | "issueDate" | "dueDate" | "total" | "number" | "createdAt" | Non | default "issueDate" |
order | "asc" | "desc" | Non | default "desc" |
Réponse
81 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].acceptPayments | boolean | Oui |
data[].company | null dans les exemples | Oui |
data[].companyId | null dans les exemples | Oui |
data[].contact | object | null | Oui |
data[].contact.id | string (uuid) | Oui |
data[].contact.name | string | Oui |
data[].contactId | string | null (uuid) | Oui |
data[].createdAt | string (date-time) | Oui |
data[].createdBy | string | null (uuid) | Oui |
data[].currency | string | Oui |
data[].deal | null dans les exemples | Oui |
data[].dealId | null dans les exemples | Oui |
data[].discount | null dans les exemples | Oui |
data[].discountAmount | integer | Oui |
data[].dueDate | string (date) | Oui |
data[].firstViewedAt | null dans les exemples | Oui |
data[].id | string (uuid) | Oui |
data[].issueDate | string (date) | Oui |
data[].issuer | object | Oui |
data[].issuer.address | null dans les exemples | Oui |
data[].issuer.name | string | Oui |
data[].items | array of object | Oui |
data[].items[].description | null dans les exemples | Oui |
data[].items[].discount | null dans les exemples | Oui |
data[].items[].id | string (uuid) | Oui |
data[].items[].name | string | Oui |
data[].items[].quantity | integer | Oui |
data[].items[].serviceId | null dans les exemples | Oui |
data[].items[].unitPrice | integer | Oui |
data[].language | null dans les exemples | Oui |
data[].lastViewedAt | null dans les exemples | Oui |
data[].notes | string | null | Oui |
data[].number | string | Oui |
data[].organizationId | string (uuid) | Oui |
data[].overdue | boolean | Oui |
data[].owner | object | Oui |
data[].owner.id | string (uuid) | Oui |
data[].owner.name | string | Oui |
data[].ownerId | string (uuid) | Oui |
data[].paidAt | null dans les exemples | Oui |
data[].paymentMethod | null dans les exemples | Oui |
data[].paymentNote | null dans les exemples | Oui |
data[].publicId | string | Oui |
data[].recipient | object | null | Oui |
data[].recipient.address | null dans les exemples | Oui |
data[].recipient.name | string | Oui |
data[].recurrence | object | null | Oui |
data[].recurrence.autoSend | boolean | Oui |
data[].recurrence.dayOfMonth | integer | Oui |
data[].recurrence.dueDays | integer | Non |
data[].recurrence.interval | string | Oui |
data[].recurrence.nextIssueDate | string (date) | Oui |
data[].recurringFromId | string | null (uuid) | Oui |
data[].reminderDays | null dans les exemples | Oui |
data[].remindersSent | array of string | Oui |
data[].sentAt | string | null (date-time) | Oui |
data[].status | string | Oui |
data[].subtotal | integer | Oui |
data[].taxAmount | integer | Oui |
data[].taxBasisPoints | null dans les exemples | Oui |
data[].taxPercent | null dans les exemples | Oui |
data[].total | integer | Oui |
data[].updatedAt | string (date-time) | Oui |
data[].updatedBy | string | null (uuid) | Oui |
data[].viewCount | integer | Oui |
data[].voidReason | null dans les exemples | Oui |
data[].voidedAt | null dans les exemples | Oui |
page | integer | Oui |
pageSize | integer | Oui |
summary | object | Oui |
summary.open | array of object | Oui |
summary.open[].amount | integer | Oui |
summary.open[].count | integer | Oui |
summary.open[].currency | string | Oui |
summary.overdue | array of object | Oui |
summary.overdue[].amount | integer | Oui |
summary.overdue[].count | integer | Oui |
summary.overdue[].currency | string | Oui |
summary.paidThisMonth | array of any | Oui |
total | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Crée un brouillon de facture avec ses articles.
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
number | string | Non | min length 1 · max length 60 |
dealId | string (uuid) | null | Non | |
companyId | string (uuid) | null | Non | |
contactId | string (uuid) | null | Non | |
issuer | object | null | Non | |
issuer.name | string | Oui | min length 1 · max length 200 |
issuer.address | string | null | Non | |
recipient | object | null | Non | |
recipient.name | string | Oui | min length 1 · max length 200 |
recipient.address | string | null | Non | |
language | "pt" | "es" | "en" | "fr" | null | Non | |
ownerId | string | null | Non | |
currency | string | Non | pattern ^[A-Z]{3}$ |
issueDate | string (date) | Non | |
dueDate | string (date) | Non | |
items | array of object | Non | max items 200 |
items[].id | string | Non | min length 1 · max length 64 |
items[].serviceId | string (uuid) | null | Non | |
items[].name | string | Oui | min length 1 · max length 200 |
items[].description | string | null | Non | |
items[].quantity | number | Non | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Oui | min 0 · max 10000000000000 |
items[].discount | object | null | Non | |
discount | object | null | Non | |
taxPercent | number | null | Non | |
notes | string | null | Non | |
recurrence | object | null | Non | |
recurrence.interval | "monthly" | "quarterly" | "yearly" | Oui | |
recurrence.dayOfMonth | integer | Non | min 1 · max 31 |
recurrence.dueDays | integer | Non | min 0 · max 365 |
recurrence.nextIssueDate | string (date) | Non | |
recurrence.autoSend | boolean | Non | default false |
acceptPayments | boolean | Non | |
reminderDays | array of integer | null | Non |
Réponse
76 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | object | null | Oui |
company.id | string (uuid) | Oui |
company.name | string | Oui |
companyId | string | null (uuid) | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string | null (email) | Oui |
contactId | string | null (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
deal | null dans les exemples | Oui |
dealId | null dans les exemples | Oui |
discount | object | null | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | null dans les exemples | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | string | null | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | object | null | Oui |
items[].discount.type | string | Oui |
items[].discount.value | integer | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | string | null (uuid) | Oui |
items[].unitPrice | integer | Oui |
language | string | null | Oui |
lastViewedAt | null dans les exemples | Oui |
notes | string | null | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | null dans les exemples | Oui |
payment | null dans les exemples | Oui |
paymentMethod | null dans les exemples | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | null | Oui |
recipient.address | string | null | Oui |
recipient.name | string | Oui |
recurrence | object | null | Oui |
recurrence.autoSend | boolean | Oui |
recurrence.dayOfMonth | integer | Oui |
recurrence.dueDays | integer | Non |
recurrence.interval | string | Oui |
recurrence.nextIssueDate | string (date) | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | array | null | Oui |
remindersSent | array of any | Oui |
sentAt | null dans les exemples | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | integer | null | Oui |
taxPercent | integer | null | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | null dans les exemples | Oui |
viewCount | integer | Oui |
voidReason | null dans les exemples | Oui |
voidedAt | null dans les exemples | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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}
Supprime un brouillon de facture.
SupprimerEn cas de succès : 204.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Renvoie une facture avec ses articles, paiements et statut.
Voir unEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
83 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | null dans les exemples | Oui |
companyId | null dans les exemples | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string | null (email) | Oui |
contactId | string | null (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string | null (uuid) | Oui |
currency | string | Oui |
deal | object | null | Oui |
deal.id | string (uuid) | Oui |
deal.title | string | Oui |
dealId | string | null (uuid) | Oui |
discount | object | null | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | string | null (date-time) | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | null dans les exemples | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | null dans les exemples | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | null dans les exemples | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
lastViewedAt | string | null (date-time) | Oui |
notes | string | null | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | string | null (date-time) | Oui |
payment | object | null | Oui |
payment.amount | integer | Oui |
payment.applicationFee | integer | Oui |
payment.createdAt | string (date-time) | Oui |
payment.currency | string | Oui |
payment.id | string (uuid) | Oui |
payment.paidAt | string (date-time) | Oui |
payment.payerEmail | string (email) | Oui |
payment.payerName | string | Oui |
payment.status | string | Oui |
paymentMethod | string | null | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | null | Oui |
recipient.address | null dans les exemples | Oui |
recipient.name | string | Oui |
recurrence | object | null | Oui |
recurrence.autoSend | boolean | Oui |
recurrence.dayOfMonth | integer | Oui |
recurrence.dueDays | integer | Non |
recurrence.interval | string | Oui |
recurrence.nextIssueDate | string (date) | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | null dans les exemples | Oui |
remindersSent | array of any | Oui |
sentAt | string | null (date-time) | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | null dans les exemples | Oui |
taxPercent | null dans les exemples | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string | null (uuid) | Oui |
url | string | null (uri) | Oui |
viewCount | integer | Oui |
voidReason | null dans les exemples | Oui |
voidedAt | null dans les exemples | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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}
Modifie un brouillon de facture.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
dealId | string (uuid) | null | Non | |
companyId | string (uuid) | null | Non | |
contactId | string (uuid) | null | Non | |
issuer | object | null | Non | |
issuer.name | string | Oui | min length 1 · max length 200 |
issuer.address | string | null | Non | |
recipient | object | null | Non | |
recipient.name | string | Oui | min length 1 · max length 200 |
recipient.address | string | null | Non | |
language | "pt" | "es" | "en" | "fr" | null | Non | |
ownerId | string | null | Non | |
currency | string | Non | pattern ^[A-Z]{3}$ |
issueDate | string (date) | Non | |
dueDate | string (date) | Non | |
items | array of object | Non | max items 200 |
items[].id | string | Non | min length 1 · max length 64 |
items[].serviceId | string (uuid) | null | Non | |
items[].name | string | Oui | min length 1 · max length 200 |
items[].description | string | null | Non | |
items[].quantity | number | Non | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Oui | min 0 · max 10000000000000 |
items[].discount | object | null | Non | |
discount | object | null | Non | |
taxPercent | number | null | Non | |
notes | string | null | Non | |
recurrence | object | null | Non | |
recurrence.interval | "monthly" | "quarterly" | "yearly" | Oui | |
recurrence.dayOfMonth | integer | Non | min 1 · max 31 |
recurrence.dueDays | integer | Non | min 0 · max 365 |
recurrence.nextIssueDate | string (date) | Non | |
recurrence.autoSend | boolean | Non | default false |
acceptPayments | boolean | Non | |
reminderDays | array of integer | null | Non | |
number | string | Non | min length 1 · max length 60 |
Réponse
79 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | null dans les exemples | Oui |
companyId | null dans les exemples | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string | null (email) | Oui |
contactId | string | null (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
deal | null dans les exemples | Oui |
dealId | null dans les exemples | Oui |
discount | null dans les exemples | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | null dans les exemples | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | string | null | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | null dans les exemples | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | null dans les exemples | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
lastViewedAt | null dans les exemples | Oui |
notes | string | null | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | null dans les exemples | Oui |
payment | object | null | Oui |
payment.amount | integer | Oui |
payment.applicationFee | integer | Oui |
payment.createdAt | string (date-time) | Oui |
payment.currency | string | Oui |
payment.id | string (uuid) | Oui |
payment.paidAt | null dans les exemples | Oui |
payment.payerEmail | null dans les exemples | Oui |
payment.payerName | null dans les exemples | Oui |
payment.status | string | Oui |
paymentMethod | null dans les exemples | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | null | Oui |
recipient.address | string | null | Oui |
recipient.name | string | Oui |
recurrence | object | null | Oui |
recurrence.autoSend | boolean | Oui |
recurrence.dayOfMonth | integer | Oui |
recurrence.dueDays | integer | Oui |
recurrence.interval | string | Oui |
recurrence.nextIssueDate | string (date) | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | null dans les exemples | Oui |
remindersSent | array of any | Oui |
sentAt | string | null (date-time) | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | null dans les exemples | Oui |
taxPercent | null dans les exemples | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string | null (uri) | Oui |
viewCount | integer | Oui |
voidReason | null dans les exemples | Oui |
voidedAt | null dans les exemples | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Un nouveau brouillon avec les mêmes articles et le même client.
Créer/{id}/duplicateEn cas de succès : 201.Permission : Créer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
65 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | null dans les exemples | Oui |
companyId | null dans les exemples | Oui |
contact | object | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string (email) | Oui |
contactId | string (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
deal | null dans les exemples | Oui |
dealId | null dans les exemples | Oui |
discount | null dans les exemples | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | null dans les exemples | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | null dans les exemples | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | null dans les exemples | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | null dans les exemples | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
lastViewedAt | null dans les exemples | Oui |
notes | null dans les exemples | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | null dans les exemples | Oui |
payment | null dans les exemples | Oui |
paymentMethod | null dans les exemples | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | Oui |
recipient.address | null dans les exemples | Oui |
recipient.name | string | Oui |
recurrence | null dans les exemples | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | null dans les exemples | Oui |
remindersSent | array of any | Oui |
sentAt | null dans les exemples | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | null dans les exemples | Oui |
taxPercent | null dans les exemples | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | null dans les exemples | Oui |
viewCount | integer | Oui |
voidReason | null dans les exemples | Oui |
voidedAt | null dans les exemples | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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
Marque une facture comme payée hors Stripe, avec la date et le moyen.
Modifier/{id}/payEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
paidAt | string (date-time) | Non | |
method | string | null | Non | |
note | string | null | Non |
Réponse
67 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | object | null | Oui |
company.id | string (uuid) | Oui |
company.name | string | Oui |
companyId | string | null (uuid) | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string | null (email) | Oui |
contactId | string | null (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
deal | null dans les exemples | Oui |
dealId | null dans les exemples | Oui |
discount | null dans les exemples | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | string | null (date-time) | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | null dans les exemples | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | null dans les exemples | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | null dans les exemples | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
lastViewedAt | string | null (date-time) | Oui |
notes | null dans les exemples | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | string (date-time) | Oui |
payment | null dans les exemples | Oui |
paymentMethod | string | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | null | Oui |
recipient.address | null dans les exemples | Oui |
recipient.name | string | Oui |
recurrence | null dans les exemples | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | null dans les exemples | Oui |
remindersSent | array of any | Oui |
sentAt | string | null (date-time) | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | null dans les exemples | Oui |
taxPercent | null dans les exemples | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
viewCount | integer | Oui |
voidReason | null dans les exemples | Oui |
voidedAt | null dans les exemples | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
La facture telle que le client la voit, sans compter une visite.
Lire/{id}/previewEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
36 champs
| Champ | Type | Toujours présent |
|---|---|---|
billTo | object | Oui |
billTo.address | string | null | Oui |
billTo.contact | string | null | Oui |
billTo.name | string | null | Oui |
currency | string | Oui |
dealUrl | null dans les exemples | Oui |
discount | null dans les exemples | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | string | null | Oui |
issuer.name | string | Oui |
items | array of any | Oui |
language | string | Oui |
notes | null dans les exemples | Oui |
number | string | Oui |
organization | object | Oui |
organization.name | string | Oui |
overdue | boolean | Oui |
paidAt | null dans les exemples | Oui |
payment | null dans les exemples | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxPercent | null dans les exemples | Oui |
templateId | string | Oui |
theme | object | Oui |
theme.accentColor | string | Oui |
theme.backgroundColor | string | Oui |
theme.bodyFont | string | Oui |
theme.cornerRadius | string | Oui |
theme.headingFont | string | Oui |
theme.primaryColor | string | Oui |
theme.textColor | string | Oui |
total | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Envoie la facture au client par e-mail.
Modifier/{id}/sendEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
email | boolean | Non | default true |
to | string (email) | Non | max length 320 |
Réponse
65 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | null dans les exemples | Oui |
companyId | null dans les exemples | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string | null (email) | Oui |
contactId | string | null (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
deal | null dans les exemples | Oui |
dealId | null dans les exemples | Oui |
discount | null dans les exemples | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | null dans les exemples | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | string | null | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | null dans les exemples | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | null dans les exemples | Oui |
items[].unitPrice | integer | Oui |
language | string | null | Oui |
lastViewedAt | null dans les exemples | Oui |
notes | null dans les exemples | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | null dans les exemples | Oui |
payment | null dans les exemples | Oui |
paymentMethod | null dans les exemples | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | null | Oui |
recipient.address | string | null | Oui |
recipient.name | string | Oui |
recurrence | null dans les exemples | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | array | null | Oui |
remindersSent | array of any | Oui |
sentAt | string (date-time) | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | null dans les exemples | Oui |
taxPercent | null dans les exemples | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
viewCount | integer | Oui |
voidReason | null dans les exemples | Oui |
voidedAt | null dans les exemples | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Annule le marquage d’une facture comme payée.
Modifier/{id}/unpayEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
65 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | null dans les exemples | Oui |
companyId | null dans les exemples | Oui |
contact | object | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string (email) | Oui |
contactId | string (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
deal | null dans les exemples | Oui |
dealId | null dans les exemples | Oui |
discount | null dans les exemples | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | string (date-time) | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | null dans les exemples | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | null dans les exemples | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | null dans les exemples | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
lastViewedAt | string (date-time) | Oui |
notes | null dans les exemples | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | null dans les exemples | Oui |
payment | null dans les exemples | Oui |
paymentMethod | null dans les exemples | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | Oui |
recipient.address | null dans les exemples | Oui |
recipient.name | string | Oui |
recurrence | null dans les exemples | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | null dans les exemples | Oui |
remindersSent | array of any | Oui |
sentAt | string (date-time) | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | null dans les exemples | Oui |
taxPercent | null dans les exemples | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
viewCount | integer | Oui |
voidReason | null dans les exemples | Oui |
voidedAt | null dans les exemples | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Annule une facture, en la remboursant via Stripe si demandé (administrateurs).
Modifier/{id}/voidEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
reason | string | null | Non | |
refund | boolean | Non | default false |
Réponse
74 champs
| Champ | Type | Toujours présent |
|---|---|---|
acceptPayments | boolean | Oui |
company | null dans les exemples | Oui |
companyId | null dans les exemples | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contactEmail | string | null (email) | Oui |
contactId | string | null (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
deal | null dans les exemples | Oui |
dealId | null dans les exemples | Oui |
discount | null dans les exemples | Oui |
discountAmount | integer | Oui |
dueDate | string (date) | Oui |
firstViewedAt | string | null (date-time) | Oui |
id | string (uuid) | Oui |
issueDate | string (date) | Oui |
issuer | object | Oui |
issuer.address | null dans les exemples | Oui |
issuer.name | string | Oui |
items | array of object | Oui |
items[].description | null dans les exemples | Oui |
items[].discount | null dans les exemples | Oui |
items[].id | string (uuid) | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].serviceId | null dans les exemples | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
lastViewedAt | string | null (date-time) | Oui |
notes | null dans les exemples | Oui |
number | string | Oui |
organizationId | string (uuid) | Oui |
overdue | boolean | Oui |
owner | object | Oui |
owner.id | string (uuid) | Oui |
owner.name | string | Oui |
ownerId | string (uuid) | Oui |
paidAt | null dans les exemples | Oui |
payment | object | null | Oui |
payment.amount | integer | Oui |
payment.applicationFee | integer | Oui |
payment.createdAt | string (date-time) | Oui |
payment.currency | string | Oui |
payment.id | string (uuid) | Oui |
payment.paidAt | string (date-time) | Oui |
payment.payerEmail | string (email) | Oui |
payment.payerName | string | Oui |
payment.status | string | Oui |
paymentMethod | null dans les exemples | Oui |
paymentNote | null dans les exemples | Oui |
publicId | string | Oui |
recipient | object | null | Oui |
recipient.address | null dans les exemples | Oui |
recipient.name | string | Oui |
recurrence | null dans les exemples | Oui |
recurringFromId | null dans les exemples | Oui |
reminderDays | null dans les exemples | Oui |
remindersSent | array of any | Oui |
sentAt | string (date-time) | Oui |
status | string | Oui |
subtotal | integer | Oui |
taxAmount | integer | Oui |
taxBasisPoints | null dans les exemples | Oui |
taxPercent | null dans les exemples | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
viewCount | integer | Oui |
voidReason | string | null | Oui |
voidedAt | string (date-time) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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"
}Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
invoice.createdCréerinvoice.updatedModifierinvoice.sentModifierinvoice.viewedModifierinvoice.paidModifierinvoice.overdueModifierinvoice.voidedModifierinvoice.deletedSupprimer