Facturas
Facturas: elementos, envío, pagos registrados a mano y facturas recurrentes.
Valores de los ejemplos
Escríbelos una vez y todos los ejemplos de esta página los usan. La clave de API se queda solo en esta página y nunca se guarda.
GET/v1/invoice-defaults
Con qué empiezan las facturas nuevas: vencimiento, textos y recordatorios.
ListarSi va bien: 200.Permiso: Leer.
Respuesta
12 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
digits | integer | Sí |
dueDays | integer | Sí |
issuer | null en los ejemplos | Sí |
next | integer | Sí |
nextNumber | string | Sí |
notes | string | null | Sí |
prefix | string | Sí |
reminders | object | Sí |
reminders.after | array of integer | Sí |
reminders.before | array of integer | Sí |
taxPercent | integer | null | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"acceptPayments": true,
"digits": 1,
"dueDays": 1,
"issuer": null,
"next": 1,
"nextNumber": "…",
"notes": "…",
"prefix": "…",
"reminders": {
"after": [
1
],
"before": [
1
]
},
"taxPercent": 1
}PUT/v1/invoice-defaults
Cambia con qué empiezan las facturas nuevas.
Actualizar/Si va bien: 200.Permiso: Actualizar.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
prefix | string | Sí | max length 20 |
digits | integer | Sí | min 1 · max 8 |
next | integer | Sí | min 1 · max 999999999 |
dueDays | integer | Sí | min 0 · max 365 |
notes | string | null | Sí | |
taxPercent | number | null | Sí | |
reminders | object | Sí | |
reminders.before | array of integer | Sí | max items 5 |
reminders.after | array of integer | Sí | max items 5 |
issuer | object | null | No | |
issuer.name | string | Sí | min length 1 · max length 200 |
issuer.address | string | null | No | |
acceptPayments | boolean | No | default false |
Respuesta
14 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
digits | integer | Sí |
dueDays | integer | Sí |
issuer | object | null | Sí |
issuer.address | string | Sí |
issuer.name | string | Sí |
next | integer | Sí |
nextNumber | string | Sí |
notes | string | null | Sí |
prefix | string | Sí |
reminders | object | Sí |
reminders.after | array of integer | Sí |
reminders.before | array of integer | Sí |
taxPercent | integer | null | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"acceptPayments": true,
"digits": 1,
"dueDays": 1,
"issuer": {
"name": "Ana Lima",
"address": "…"
},
"next": 1,
"nextNumber": "…",
"notes": "…",
"prefix": "…",
"reminders": {
"after": [
1
],
"before": [
1
]
},
"taxPercent": 1
}GET/v1/invoices
Lista y busca facturas, por estado, cliente o fecha.
ListarSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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" |
Respuesta
81 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].acceptPayments | boolean | Sí |
data[].company | null en los ejemplos | Sí |
data[].companyId | null en los ejemplos | Sí |
data[].contact | object | null | Sí |
data[].contact.id | string (uuid) | Sí |
data[].contact.name | string | Sí |
data[].contactId | string | null (uuid) | Sí |
data[].createdAt | string (date-time) | Sí |
data[].createdBy | string | null (uuid) | Sí |
data[].currency | string | Sí |
data[].deal | null en los ejemplos | Sí |
data[].dealId | null en los ejemplos | Sí |
data[].discount | null en los ejemplos | Sí |
data[].discountAmount | integer | Sí |
data[].dueDate | string (date) | Sí |
data[].firstViewedAt | null en los ejemplos | Sí |
data[].id | string (uuid) | Sí |
data[].issueDate | string (date) | Sí |
data[].issuer | object | Sí |
data[].issuer.address | null en los ejemplos | Sí |
data[].issuer.name | string | Sí |
data[].items | array of object | Sí |
data[].items[].description | null en los ejemplos | Sí |
data[].items[].discount | null en los ejemplos | Sí |
data[].items[].id | string (uuid) | Sí |
data[].items[].name | string | Sí |
data[].items[].quantity | integer | Sí |
data[].items[].serviceId | null en los ejemplos | Sí |
data[].items[].unitPrice | integer | Sí |
data[].language | null en los ejemplos | Sí |
data[].lastViewedAt | null en los ejemplos | Sí |
data[].notes | string | null | Sí |
data[].number | string | Sí |
data[].organizationId | string (uuid) | Sí |
data[].overdue | boolean | Sí |
data[].owner | object | Sí |
data[].owner.id | string (uuid) | Sí |
data[].owner.name | string | Sí |
data[].ownerId | string (uuid) | Sí |
data[].paidAt | null en los ejemplos | Sí |
data[].paymentMethod | null en los ejemplos | Sí |
data[].paymentNote | null en los ejemplos | Sí |
data[].publicId | string | Sí |
data[].recipient | object | null | Sí |
data[].recipient.address | null en los ejemplos | Sí |
data[].recipient.name | string | Sí |
data[].recurrence | object | null | Sí |
data[].recurrence.autoSend | boolean | Sí |
data[].recurrence.dayOfMonth | integer | Sí |
data[].recurrence.dueDays | integer | No |
data[].recurrence.interval | string | Sí |
data[].recurrence.nextIssueDate | string (date) | Sí |
data[].recurringFromId | string | null (uuid) | Sí |
data[].reminderDays | null en los ejemplos | Sí |
data[].remindersSent | array of string | Sí |
data[].sentAt | string | null (date-time) | Sí |
data[].status | string | Sí |
data[].subtotal | integer | Sí |
data[].taxAmount | integer | Sí |
data[].taxBasisPoints | null en los ejemplos | Sí |
data[].taxPercent | null en los ejemplos | Sí |
data[].total | integer | Sí |
data[].updatedAt | string (date-time) | Sí |
data[].updatedBy | string | null (uuid) | Sí |
data[].viewCount | integer | Sí |
data[].voidReason | null en los ejemplos | Sí |
data[].voidedAt | null en los ejemplos | Sí |
page | integer | Sí |
pageSize | integer | Sí |
summary | object | Sí |
summary.open | array of object | Sí |
summary.open[].amount | integer | Sí |
summary.open[].count | integer | Sí |
summary.open[].currency | string | Sí |
summary.overdue | array of object | Sí |
summary.overdue[].amount | integer | Sí |
summary.overdue[].count | integer | Sí |
summary.overdue[].currency | string | Sí |
summary.paidThisMonth | array of any | Sí |
total | integer | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Crea un borrador de factura con sus artículos.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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 | Sí | min length 1 · max length 200 |
issuer.address | string | null | No | |
recipient | object | null | No | |
recipient.name | string | Sí | 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 | Sí | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | No | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Sí | 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" | Sí | |
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 |
Respuesta
76 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | object | null | Sí |
company.id | string (uuid) | Sí |
company.name | string | Sí |
companyId | string | null (uuid) | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string | null (email) | Sí |
contactId | string | null (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
deal | null en los ejemplos | Sí |
dealId | null en los ejemplos | Sí |
discount | object | null | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | null en los ejemplos | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | string | null | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | object | null | Sí |
items[].discount.type | string | Sí |
items[].discount.value | integer | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | string | null (uuid) | Sí |
items[].unitPrice | integer | Sí |
language | string | null | Sí |
lastViewedAt | null en los ejemplos | Sí |
notes | string | null | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | null en los ejemplos | Sí |
payment | null en los ejemplos | Sí |
paymentMethod | null en los ejemplos | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | null | Sí |
recipient.address | string | null | Sí |
recipient.name | string | Sí |
recurrence | object | null | Sí |
recurrence.autoSend | boolean | Sí |
recurrence.dayOfMonth | integer | Sí |
recurrence.dueDays | integer | No |
recurrence.interval | string | Sí |
recurrence.nextIssueDate | string (date) | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | array | null | Sí |
remindersSent | array of any | Sí |
sentAt | null en los ejemplos | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | integer | null | Sí |
taxPercent | integer | null | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | null en los ejemplos | Sí |
viewCount | integer | Sí |
voidReason | null en los ejemplos | Sí |
voidedAt | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"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}
Elimina un borrador de factura.
EliminarSi va bien: 204.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
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}
Devuelve una factura con sus artículos, pagos y estado.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
83 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | null en los ejemplos | Sí |
companyId | null en los ejemplos | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string | null (email) | Sí |
contactId | string | null (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string | null (uuid) | Sí |
currency | string | Sí |
deal | object | null | Sí |
deal.id | string (uuid) | Sí |
deal.title | string | Sí |
dealId | string | null (uuid) | Sí |
discount | object | null | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | string | null (date-time) | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | null en los ejemplos | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | null en los ejemplos | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | null en los ejemplos | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
lastViewedAt | string | null (date-time) | Sí |
notes | string | null | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | string | null (date-time) | Sí |
payment | object | null | Sí |
payment.amount | integer | Sí |
payment.applicationFee | integer | Sí |
payment.createdAt | string (date-time) | Sí |
payment.currency | string | Sí |
payment.id | string (uuid) | Sí |
payment.paidAt | string (date-time) | Sí |
payment.payerEmail | string (email) | Sí |
payment.payerName | string | Sí |
payment.status | string | Sí |
paymentMethod | string | null | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | null | Sí |
recipient.address | null en los ejemplos | Sí |
recipient.name | string | Sí |
recurrence | object | null | Sí |
recurrence.autoSend | boolean | Sí |
recurrence.dayOfMonth | integer | Sí |
recurrence.dueDays | integer | No |
recurrence.interval | string | Sí |
recurrence.nextIssueDate | string (date) | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | null en los ejemplos | Sí |
remindersSent | array of any | Sí |
sentAt | string | null (date-time) | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | null en los ejemplos | Sí |
taxPercent | null en los ejemplos | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string | null (uuid) | Sí |
url | string | null (uri) | Sí |
viewCount | integer | Sí |
voidReason | null en los ejemplos | Sí |
voidedAt | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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}
Cambia un borrador de factura.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
dealId | string (uuid) | null | No | |
companyId | string (uuid) | null | No | |
contactId | string (uuid) | null | No | |
issuer | object | null | No | |
issuer.name | string | Sí | min length 1 · max length 200 |
issuer.address | string | null | No | |
recipient | object | null | No | |
recipient.name | string | Sí | 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 | Sí | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | No | min 0 · max 100000 · default 1 |
items[].unitPrice | integer | Sí | 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" | Sí | |
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 |
Respuesta
79 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | null en los ejemplos | Sí |
companyId | null en los ejemplos | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string | null (email) | Sí |
contactId | string | null (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
deal | null en los ejemplos | Sí |
dealId | null en los ejemplos | Sí |
discount | null en los ejemplos | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | null en los ejemplos | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | string | null | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | null en los ejemplos | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | null en los ejemplos | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
lastViewedAt | null en los ejemplos | Sí |
notes | string | null | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | null en los ejemplos | Sí |
payment | object | null | Sí |
payment.amount | integer | Sí |
payment.applicationFee | integer | Sí |
payment.createdAt | string (date-time) | Sí |
payment.currency | string | Sí |
payment.id | string (uuid) | Sí |
payment.paidAt | null en los ejemplos | Sí |
payment.payerEmail | null en los ejemplos | Sí |
payment.payerName | null en los ejemplos | Sí |
payment.status | string | Sí |
paymentMethod | null en los ejemplos | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | null | Sí |
recipient.address | string | null | Sí |
recipient.name | string | Sí |
recurrence | object | null | Sí |
recurrence.autoSend | boolean | Sí |
recurrence.dayOfMonth | integer | Sí |
recurrence.dueDays | integer | Sí |
recurrence.interval | string | Sí |
recurrence.nextIssueDate | string (date) | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | null en los ejemplos | Sí |
remindersSent | array of any | Sí |
sentAt | string | null (date-time) | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | null en los ejemplos | Sí |
taxPercent | null en los ejemplos | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string | null (uri) | Sí |
viewCount | integer | Sí |
voidReason | null en los ejemplos | Sí |
voidedAt | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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 nuevo borrador con los mismos artículos y cliente.
Crear/{id}/duplicateSi va bien: 201.Permiso: Crear.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
65 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | null en los ejemplos | Sí |
companyId | null en los ejemplos | Sí |
contact | object | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string (email) | Sí |
contactId | string (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
deal | null en los ejemplos | Sí |
dealId | null en los ejemplos | Sí |
discount | null en los ejemplos | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | null en los ejemplos | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | null en los ejemplos | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | null en los ejemplos | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | null en los ejemplos | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
lastViewedAt | null en los ejemplos | Sí |
notes | null en los ejemplos | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | null en los ejemplos | Sí |
payment | null en los ejemplos | Sí |
paymentMethod | null en los ejemplos | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | Sí |
recipient.address | null en los ejemplos | Sí |
recipient.name | string | Sí |
recurrence | null en los ejemplos | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | null en los ejemplos | Sí |
remindersSent | array of any | Sí |
sentAt | null en los ejemplos | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | null en los ejemplos | Sí |
taxPercent | null en los ejemplos | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | null en los ejemplos | Sí |
viewCount | integer | Sí |
voidReason | null en los ejemplos | Sí |
voidedAt | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"number": "…",
"status": "…",
"dealId": null,
"companyId": null,
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issuer": {
"name": "Ana Lima",
"address": null
},
"recipient": {
"name": "Ana Lima",
"address": null
},
"language": null,
"currency": "USD",
"issueDate": "2026-11-21",
"dueDate": "2026-11-21",
"items": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"discount": null,
"quantity": 1,
"serviceId": null,
"unitPrice": 1,
"description": null
}
],
"discount": null,
"taxBasisPoints": null,
"notes": null,
"subtotal": 1,
"discountAmount": 1,
"taxAmount": 1,
"total": 1,
"sentAt": null,
"paidAt": null,
"acceptPayments": true,
"paymentMethod": null,
"paymentNote": null,
"voidedAt": null,
"voidReason": null,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"reminderDays": null,
"remindersSent": [],
"recurrence": null,
"recurringFromId": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"taxPercent": null,
"overdue": true,
"company": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"deal": null,
"url": null,
"contactEmail": "[email protected]",
"payment": null
}POST/v1/invoices/{id}/pay
Marca una factura como pagada fuera de Stripe, con la fecha y la forma.
Actualizar/{id}/paySi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
paidAt | string (date-time) | No | |
method | string | null | No | |
note | string | null | No |
Respuesta
67 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | object | null | Sí |
company.id | string (uuid) | Sí |
company.name | string | Sí |
companyId | string | null (uuid) | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string | null (email) | Sí |
contactId | string | null (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
deal | null en los ejemplos | Sí |
dealId | null en los ejemplos | Sí |
discount | null en los ejemplos | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | string | null (date-time) | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | null en los ejemplos | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | null en los ejemplos | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | null en los ejemplos | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
lastViewedAt | string | null (date-time) | Sí |
notes | null en los ejemplos | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | string (date-time) | Sí |
payment | null en los ejemplos | Sí |
paymentMethod | string | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | null | Sí |
recipient.address | null en los ejemplos | Sí |
recipient.name | string | Sí |
recurrence | null en los ejemplos | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | null en los ejemplos | Sí |
remindersSent | array of any | Sí |
sentAt | string | null (date-time) | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | null en los ejemplos | Sí |
taxPercent | null en los ejemplos | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
viewCount | integer | Sí |
voidReason | null en los ejemplos | Sí |
voidedAt | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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 factura como la ve el cliente, sin contar una visita.
Leer/{id}/previewSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
36 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
billTo | object | Sí |
billTo.address | string | null | Sí |
billTo.contact | string | null | Sí |
billTo.name | string | null | Sí |
currency | string | Sí |
dealUrl | null en los ejemplos | Sí |
discount | null en los ejemplos | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | string | null | Sí |
issuer.name | string | Sí |
items | array of any | Sí |
language | string | Sí |
notes | null en los ejemplos | Sí |
number | string | Sí |
organization | object | Sí |
organization.name | string | Sí |
overdue | boolean | Sí |
paidAt | null en los ejemplos | Sí |
payment | null en los ejemplos | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxPercent | null en los ejemplos | Sí |
templateId | string | Sí |
theme | object | Sí |
theme.accentColor | string | Sí |
theme.backgroundColor | string | Sí |
theme.bodyFont | string | Sí |
theme.cornerRadius | string | Sí |
theme.headingFont | string | Sí |
theme.primaryColor | string | Sí |
theme.textColor | string | Sí |
total | integer | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Envía la factura al cliente por correo.
Actualizar/{id}/sendSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
email | boolean | No | default true |
to | string (email) | No | max length 320 |
Respuesta
65 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | null en los ejemplos | Sí |
companyId | null en los ejemplos | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string | null (email) | Sí |
contactId | string | null (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
deal | null en los ejemplos | Sí |
dealId | null en los ejemplos | Sí |
discount | null en los ejemplos | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | null en los ejemplos | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | string | null | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | null en los ejemplos | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | null en los ejemplos | Sí |
items[].unitPrice | integer | Sí |
language | string | null | Sí |
lastViewedAt | null en los ejemplos | Sí |
notes | null en los ejemplos | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | null en los ejemplos | Sí |
payment | null en los ejemplos | Sí |
paymentMethod | null en los ejemplos | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | null | Sí |
recipient.address | string | null | Sí |
recipient.name | string | Sí |
recurrence | null en los ejemplos | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | array | null | Sí |
remindersSent | array of any | Sí |
sentAt | string (date-time) | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | null en los ejemplos | Sí |
taxPercent | null en los ejemplos | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
viewCount | integer | Sí |
voidReason | null en los ejemplos | Sí |
voidedAt | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Deshace marcar una factura como pagada.
Actualizar/{id}/unpaySi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
65 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | null en los ejemplos | Sí |
companyId | null en los ejemplos | Sí |
contact | object | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string (email) | Sí |
contactId | string (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
deal | null en los ejemplos | Sí |
dealId | null en los ejemplos | Sí |
discount | null en los ejemplos | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | string (date-time) | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | null en los ejemplos | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | null en los ejemplos | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | null en los ejemplos | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
lastViewedAt | string (date-time) | Sí |
notes | null en los ejemplos | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | null en los ejemplos | Sí |
payment | null en los ejemplos | Sí |
paymentMethod | null en los ejemplos | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | Sí |
recipient.address | null en los ejemplos | Sí |
recipient.name | string | Sí |
recurrence | null en los ejemplos | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | null en los ejemplos | Sí |
remindersSent | array of any | Sí |
sentAt | string (date-time) | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | null en los ejemplos | Sí |
taxPercent | null en los ejemplos | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
viewCount | integer | Sí |
voidReason | null en los ejemplos | Sí |
voidedAt | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Anula una factura, reembolsándola por Stripe cuando se pide (administradores).
Actualizar/{id}/voidSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
reason | string | null | No | |
refund | boolean | No | default false |
Respuesta
74 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
acceptPayments | boolean | Sí |
company | null en los ejemplos | Sí |
companyId | null en los ejemplos | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contactEmail | string | null (email) | Sí |
contactId | string | null (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
deal | null en los ejemplos | Sí |
dealId | null en los ejemplos | Sí |
discount | null en los ejemplos | Sí |
discountAmount | integer | Sí |
dueDate | string (date) | Sí |
firstViewedAt | string | null (date-time) | Sí |
id | string (uuid) | Sí |
issueDate | string (date) | Sí |
issuer | object | Sí |
issuer.address | null en los ejemplos | Sí |
issuer.name | string | Sí |
items | array of object | Sí |
items[].description | null en los ejemplos | Sí |
items[].discount | null en los ejemplos | Sí |
items[].id | string (uuid) | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].serviceId | null en los ejemplos | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
lastViewedAt | string | null (date-time) | Sí |
notes | null en los ejemplos | Sí |
number | string | Sí |
organizationId | string (uuid) | Sí |
overdue | boolean | Sí |
owner | object | Sí |
owner.id | string (uuid) | Sí |
owner.name | string | Sí |
ownerId | string (uuid) | Sí |
paidAt | null en los ejemplos | Sí |
payment | object | null | Sí |
payment.amount | integer | Sí |
payment.applicationFee | integer | Sí |
payment.createdAt | string (date-time) | Sí |
payment.currency | string | Sí |
payment.id | string (uuid) | Sí |
payment.paidAt | string (date-time) | Sí |
payment.payerEmail | string (email) | Sí |
payment.payerName | string | Sí |
payment.status | string | Sí |
paymentMethod | null en los ejemplos | Sí |
paymentNote | null en los ejemplos | Sí |
publicId | string | Sí |
recipient | object | null | Sí |
recipient.address | null en los ejemplos | Sí |
recipient.name | string | Sí |
recurrence | null en los ejemplos | Sí |
recurringFromId | null en los ejemplos | Sí |
reminderDays | null en los ejemplos | Sí |
remindersSent | array of any | Sí |
sentAt | string (date-time) | Sí |
status | string | Sí |
subtotal | integer | Sí |
taxAmount | integer | Sí |
taxBasisPoints | null en los ejemplos | Sí |
taxPercent | null en los ejemplos | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
viewCount | integer | Sí |
voidReason | string | null | Sí |
voidedAt | string (date-time) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"acceptPayments": true,
"company": null,
"companyId": null,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"contactEmail": "[email protected]",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"deal": null,
"dealId": null,
"discount": null,
"discountAmount": 1,
"dueDate": "2026-11-21",
"firstViewedAt": "2026-11-21T14:00:00.000Z",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issueDate": "2026-11-21",
"issuer": {
"address": null,
"name": "Ana Lima"
},
"items": [
{
"description": null,
"discount": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"quantity": 1,
"serviceId": null,
"unitPrice": 1
}
],
"language": null,
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"notes": null,
"number": "…",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"overdue": true,
"owner": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": null,
"payment": {
"amount": 1,
"applicationFee": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"currency": "USD",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"paidAt": "2026-11-21T14:00:00.000Z",
"payerEmail": "[email protected]",
"payerName": "Ana Lima",
"status": "…"
},
"paymentMethod": null,
"paymentNote": null,
"publicId": "…",
"recipient": {
"name": "Ana Lima",
"address": null
},
"recurrence": null,
"recurringFromId": null,
"reminderDays": null,
"remindersSent": [],
"sentAt": "2026-11-21T14:00:00.000Z",
"status": "…",
"subtotal": 1,
"taxAmount": 1,
"taxBasisPoints": null,
"taxPercent": null,
"total": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"viewCount": 1,
"voidReason": "…",
"voidedAt": "2026-11-21T14:00:00.000Z"
}Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
invoice.createdCrearinvoice.updatedActualizarinvoice.sentActualizarinvoice.viewedActualizarinvoice.paidActualizarinvoice.overdueActualizarinvoice.voidedActualizarinvoice.deletedEliminar