Packages

Bundles of services and products with their own prices.

Values for the examples

Type them once and every example on this page uses them. The API key stays on this page only and is never saved.

GET/v1/packages

Lists the catalog packages.

ListOn success: 200.Permission: Read.

Query parameters

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

Response

30 fields
FieldTypeAlways there
[].archivedbooleanYes
[].createdAtstring (date-time)Yes
[].createdBystring (uuid)Yes
[].currencystringYes
[].descriptionnull in the examplesYes
[].discountnull in the examplesYes
[].discountAmountintegerYes
[].discountPricesobjectYes
[].idstring (uuid)Yes
[].imagesarray of objectYes
[].images[].idstring (uuid)Yes
[].images[].urlstring (uri)Yes
[].itemsarray of objectYes
[].items[].catalogPriceintegerYes
[].items[].descriptionnull in the examplesYes
[].items[].kindstringYes
[].items[].namestringYes
[].items[].pricesobjectYes
[].items[].quantityintegerYes
[].items[].serviceIdstring (uuid)Yes
[].items[].skunull in the examplesYes
[].items[].unitPriceintegerYes
[].namestringYes
[].organizationIdstring (uuid)Yes
[].publicVisiblebooleanYes
[].subtotalintegerYes
[].totalintegerYes
[].totalsobjectYes
[].updatedAtstring (date-time)Yes
[].updatedBystring (uuid)Yes
Example
curl -X GET "https://api.firmado.app/v1/packages" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

[
  {
    "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

Creates a package of services and products.

CreateOn success: 201.Permission: Create.

Body

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

Response

37 fields
FieldTypeAlways there
archivedbooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
descriptionnull in the examplesYes
discountobject | nullYes
discount.typestringYes
discount.valuenumberYes
discountAmountintegerYes
discountPricesobjectYes
discountPrices.USDintegerNo
idstring (uuid)Yes
imagesarray of anyYes
itemsarray of objectYes
items[].catalogPriceintegerYes
items[].descriptionstring | nullYes
items[].kindstringYes
items[].namestringYes
items[].pricesobjectYes
items[].prices.BRLintegerNo
items[].prices.USDintegerNo
items[].quantityintegerYes
items[].serviceIdstring (uuid)Yes
items[].skustring | nullYes
items[].unitPriceintegerYes
namestringYes
organizationIdstring (uuid)Yes
publicVisiblebooleanYes
subtotalintegerYes
totalintegerYes
totalsobjectYes
totals.USDobjectNo
totals.USD.discountAmountintegerYes
totals.USD.subtotalintegerYes
totals.USD.totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
Example
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"
}'

Response (201), with sample values:

{
  "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}

Deletes a package; proposals and invoices keep their copies.

DeleteOn success: 204.Permission: Delete.

Path parameters

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/packages/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/packages/{id}

Returns a package with its items and prices.

Get oneOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

30 fields
FieldTypeAlways there
archivedbooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
descriptionnull in the examplesYes
discountobject | nullYes
discount.typestringYes
discount.valueintegerYes
discountAmountintegerYes
discountPricesobjectYes
idstring (uuid)Yes
imagesarray of anyYes
itemsarray of objectYes
items[].catalogPriceintegerYes
items[].descriptionnull in the examplesYes
items[].kindstringYes
items[].namestringYes
items[].pricesobjectYes
items[].quantityintegerYes
items[].serviceIdstring (uuid)Yes
items[].skunull in the examplesYes
items[].unitPriceintegerYes
namestringYes
organizationIdstring (uuid)Yes
publicVisiblebooleanYes
subtotalintegerYes
totalintegerYes
totalsobjectYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
Example
curl -X GET "https://api.firmado.app/v1/packages/{id}" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

{
  "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}

Changes a package: items, prices and visibility.

UpdateOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

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

Response

37 fields
FieldTypeAlways there
archivedbooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
currencystringYes
descriptionnull in the examplesYes
discountobject | nullYes
discount.typestringYes
discount.valueintegerYes
discountAmountintegerYes
discountPricesobjectYes
discountPrices.USDintegerNo
idstring (uuid)Yes
imagesarray of anyYes
itemsarray of objectYes
items[].catalogPriceintegerYes
items[].descriptionnull in the examplesYes
items[].kindstringYes
items[].namestringYes
items[].pricesobjectYes
items[].prices.BRLintegerNo
items[].prices.USDintegerNo
items[].quantityintegerYes
items[].serviceIdstring (uuid)Yes
items[].skunull in the examplesYes
items[].unitPriceintegerYes
namestringYes
organizationIdstring (uuid)Yes
publicVisiblebooleanYes
subtotalintegerYes
totalintegerYes
totalsobjectYes
totals.USDobjectNo
totals.USD.discountAmountintegerYes
totals.USD.subtotalintegerYes
totals.USD.totalintegerYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
Example
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": {}
    }
  ]
}'

Response (200), with sample values:

{
  "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

Uploads a photo for a package.

Update/{id}/imagesOn success: 201.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body: a multipart form, with the file in `file`

FieldTypeRequiredNotes
filestring (binary)Yes

Response

3 fields
FieldTypeAlways there
imagesarray of objectYes
images[].idstring (uuid)Yes
images[].urlstring (uri)Yes
Example
curl -X POST "https://api.firmado.app/v1/packages/{id}/images" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

Response (201), with sample values:

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

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

Removes a package’s photo.

Delete/{id}/images/{imageId}On success: 200.Permission: Delete.

Path parameters

FieldTypeRequiredNotes
idstringYes
imageIdstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/packages/{id}/images/{imageId}" \
  -H "X-Api-Key: fmd_..."

Webhook events

Changes of this feature that webhooks can send.

  • package.createdCreate
  • package.updatedUpdate
  • package.deletedDelete