Paquetes

Conjuntos de servicios y productos con precios propios.

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/packages

Lista los paquetes del catálogo.

ListarSi va bien: 200.Permiso: Leer.

Parámetros de consulta

CampoTipoObligatorioNotas
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 100 · default 25
qstringNomin length 1 · max length 200
archivedstringNo

Respuesta

30 campos
CampoTipoSiempre presente
[].archivedbooleanSí
[].createdAtstring (date-time)Sí
[].createdBystring (uuid)Sí
[].currencystringSí
[].descriptionnull en los ejemplosSí
[].discountnull en los ejemplosSí
[].discountAmountintegerSí
[].discountPricesobjectSí
[].idstring (uuid)Sí
[].imagesarray of objectSí
[].images[].idstring (uuid)Sí
[].images[].urlstring (uri)Sí
[].itemsarray of objectSí
[].items[].catalogPriceintegerSí
[].items[].descriptionnull en los ejemplosSí
[].items[].kindstringSí
[].items[].namestringSí
[].items[].pricesobjectSí
[].items[].quantityintegerSí
[].items[].serviceIdstring (uuid)Sí
[].items[].skunull en los ejemplosSí
[].items[].unitPriceintegerSí
[].namestringSí
[].organizationIdstring (uuid)Sí
[].publicVisiblebooleanSí
[].subtotalintegerSí
[].totalintegerSí
[].totalsobjectSí
[].updatedAtstring (date-time)Sí
[].updatedBystring (uuid)Sí
Ejemplo
curl -X GET "https://api.firmado.app/v1/packages" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

[
  {
    "archived": true,
    "createdAt": "2026-11-21T14:00:00.000Z",
    "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "currency": "USD",
    "description": null,
    "discount": null,
    "discountAmount": 1,
    "discountPrices": {},
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "images": [
      {}
    ],
    "items": [
      {}
    ],
    "name": "Ana Lima",
    "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "publicVisible": true,
    "subtotal": 1,
    "total": 1,
    "totals": {},
    "updatedAt": "2026-11-21T14:00:00.000Z",
    "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
  }
]

POST/v1/packages

Crea un paquete de servicios y productos.

CrearSi va bien: 201.Permiso: Crear.

Cuerpo

CampoTipoObligatorioNotas
namestringSímin length 1 · max length 100
descriptionstring | nullNo
currencystringNopattern ^[A-Z]{3}$
itemsarray of objectSímin items 1 · max items 50
items[].serviceIdstring (uuid)Sí
items[].quantityintegerNomin 1 · max 100000 · default 1
items[].unitPriceintegerNomin 0 · max 10000000000000
items[].pricesobject of integerNo
discountobject | nullNo
discountPricesobject of integerNo
publicVisiblebooleanNo
archivedbooleanNo

Respuesta

37 campos
CampoTipoSiempre presente
archivedbooleanSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
currencystringSí
descriptionnull en los ejemplosSí
discountobject | nullSí
discount.typestringSí
discount.valuenumberSí
discountAmountintegerSí
discountPricesobjectSí
discountPrices.USDintegerNo
idstring (uuid)Sí
imagesarray of anySí
itemsarray of objectSí
items[].catalogPriceintegerSí
items[].descriptionstring | nullSí
items[].kindstringSí
items[].namestringSí
items[].pricesobjectSí
items[].prices.BRLintegerNo
items[].prices.USDintegerNo
items[].quantityintegerSí
items[].serviceIdstring (uuid)Sí
items[].skustring | nullSí
items[].unitPriceintegerSí
namestringSí
organizationIdstring (uuid)Sí
publicVisiblebooleanSí
subtotalintegerSí
totalintegerSí
totalsobjectSí
totals.USDobjectNo
totals.USD.discountAmountintegerSí
totals.USD.subtotalintegerSí
totals.USD.totalintegerSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
Ejemplo
curl -X POST "https://api.firmado.app/v1/packages" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "items": [
    {
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "quantity": 1,
      "unitPrice": 0,
      "prices": {}
    }
  ],
  "description": "…",
  "currency": "USD"
}'

Respuesta (201), con valores de ejemplo:

{
  "archived": true,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "description": null,
  "discount": {
    "type": "…",
    "value": 1
  },
  "discountAmount": 1,
  "discountPrices": {
    "USD": 1
  },
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "images": [],
  "items": [
    {
      "catalogPrice": 1,
      "description": "…",
      "kind": "…",
      "name": "Ana Lima",
      "prices": {},
      "quantity": 1,
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "sku": "…",
      "unitPrice": 1
    }
  ],
  "name": "Ana Lima",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicVisible": true,
  "subtotal": 1,
  "total": 1,
  "totals": {
    "USD": {
      "subtotal": 1,
      "discountAmount": 1,
      "total": 1
    }
  },
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

DELETE/v1/packages/{id}

Elimina un paquete; las propuestas y facturas conservan sus copias.

EliminarSi va bien: 204.Permiso: Eliminar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí
Ejemplo
curl -X DELETE "https://api.firmado.app/v1/packages/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/packages/{id}

Devuelve un paquete con sus artículos y precios.

Ver unoSi va bien: 200.Permiso: Leer.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Respuesta

30 campos
CampoTipoSiempre presente
archivedbooleanSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
currencystringSí
descriptionnull en los ejemplosSí
discountobject | nullSí
discount.typestringSí
discount.valueintegerSí
discountAmountintegerSí
discountPricesobjectSí
idstring (uuid)Sí
imagesarray of anySí
itemsarray of objectSí
items[].catalogPriceintegerSí
items[].descriptionnull en los ejemplosSí
items[].kindstringSí
items[].namestringSí
items[].pricesobjectSí
items[].quantityintegerSí
items[].serviceIdstring (uuid)Sí
items[].skunull en los ejemplosSí
items[].unitPriceintegerSí
namestringSí
organizationIdstring (uuid)Sí
publicVisiblebooleanSí
subtotalintegerSí
totalintegerSí
totalsobjectSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
Ejemplo
curl -X GET "https://api.firmado.app/v1/packages/{id}" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

{
  "archived": true,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "description": null,
  "discount": {
    "type": "…",
    "value": 1
  },
  "discountAmount": 1,
  "discountPrices": {},
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "images": [],
  "items": [
    {
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "quantity": 1,
      "unitPrice": 1,
      "prices": {},
      "kind": "…",
      "sku": null,
      "name": "Ana Lima",
      "description": null,
      "catalogPrice": 1
    }
  ],
  "name": "Ana Lima",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicVisible": true,
  "subtotal": 1,
  "total": 1,
  "totals": {},
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

PATCH/v1/packages/{id}

Cambia un paquete: artículos, precios y visibilidad.

ActualizarSi va bien: 200.Permiso: Actualizar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Cuerpo

CampoTipoObligatorioNotas
namestringNomin length 1 · max length 100
descriptionstring | nullNo
currencystringNopattern ^[A-Z]{3}$
itemsarray of objectNomin items 1 · max items 50
items[].serviceIdstring (uuid)Sí
items[].quantityintegerNomin 1 · max 100000 · default 1
items[].unitPriceintegerNomin 0 · max 10000000000000
items[].pricesobject of integerNo
discountobject | nullNo
discountPricesobject of integerNo
publicVisiblebooleanNo
archivedbooleanNo

Respuesta

37 campos
CampoTipoSiempre presente
archivedbooleanSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
currencystringSí
descriptionnull en los ejemplosSí
discountobject | nullSí
discount.typestringSí
discount.valueintegerSí
discountAmountintegerSí
discountPricesobjectSí
discountPrices.USDintegerNo
idstring (uuid)Sí
imagesarray of anySí
itemsarray of objectSí
items[].catalogPriceintegerSí
items[].descriptionnull en los ejemplosSí
items[].kindstringSí
items[].namestringSí
items[].pricesobjectSí
items[].prices.BRLintegerNo
items[].prices.USDintegerNo
items[].quantityintegerSí
items[].serviceIdstring (uuid)Sí
items[].skunull en los ejemplosSí
items[].unitPriceintegerSí
namestringSí
organizationIdstring (uuid)Sí
publicVisiblebooleanSí
subtotalintegerSí
totalintegerSí
totalsobjectSí
totals.USDobjectNo
totals.USD.discountAmountintegerSí
totals.USD.subtotalintegerSí
totals.USD.totalintegerSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/packages/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "description": "…",
  "currency": "USD",
  "items": [
    {
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "quantity": 1,
      "unitPrice": 0,
      "prices": {}
    }
  ]
}'

Respuesta (200), con valores de ejemplo:

{
  "archived": true,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "currency": "USD",
  "description": null,
  "discount": {
    "type": "…",
    "value": 1
  },
  "discountAmount": 1,
  "discountPrices": {
    "USD": 1
  },
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "images": [],
  "items": [
    {
      "catalogPrice": 1,
      "description": null,
      "kind": "…",
      "name": "Ana Lima",
      "prices": {},
      "quantity": 1,
      "serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "sku": null,
      "unitPrice": 1
    }
  ],
  "name": "Ana Lima",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicVisible": true,
  "subtotal": 1,
  "total": 1,
  "totals": {
    "USD": {
      "subtotal": 1,
      "discountAmount": 1,
      "total": 1
    }
  },
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

POST/v1/packages/{id}/images

Sube una foto para un paquete.

Actualizar/{id}/imagesSi va bien: 201.Permiso: Actualizar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Cuerpo: un formulario multipart, con el archivo en `file`

CampoTipoObligatorioNotas
filestring (binary)Sí

Respuesta

3 campos
CampoTipoSiempre presente
imagesarray of objectSí
images[].idstring (uuid)Sí
images[].urlstring (uri)Sí
Ejemplo
curl -X POST "https://api.firmado.app/v1/packages/{id}/images" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

Respuesta (201), con valores de ejemplo:

{
  "images": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "url": "https://example.com"
    }
  ]
}

DELETE/v1/packages/{id}/images/{imageId}

Quita la foto de un paquete.

Eliminar/{id}/images/{imageId}Si va bien: 200.Permiso: Eliminar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí
imageIdstringSí
Ejemplo
curl -X DELETE "https://api.firmado.app/v1/packages/{id}/images/{imageId}" \
  -H "X-Api-Key: fmd_..."

Eventos de webhook

Cambios de esta funcionalidad que los webhooks pueden enviar.

  • package.createdCrear
  • package.updatedActualizar
  • package.deletedEliminar