Documentation
mizanpage Documentation

The format of a catalog, field types, lists, required fields and sample data.

A catalog describes the fields of a document type. Your software sends this data. Your users place it in their templates. There is one catalog per type (invoice, quote, order form…).

Send a catalog

PUT /v1/catalogs/sales.order_form
Authorization: Bearer mzp_…
Content-Type: application/json
{
  "label": "Order form",
  "groups": [
    { "key": "customer", "label": "Customer", "fields": [
      { "key": "customer.name", "label": "Name" },
      { "key": "customer.address", "label": "Address", "type": "longtext" }
    ]},
    { "key": "order", "label": "Order", "fields": [
      { "key": "order.reference", "label": "Reference" },
      { "key": "order.total", "label": "Total", "type": "amount" }
    ]}
  ],
  "required": [{ "key": "order.total", "reason": "The total is a legal requirement." }],
  "requiredBlocks": ["signature"],
  "sample": { "customer.name": "Mary Smith", "order.total": "EUR 32,490.00" }
}

Send it when your software starts, or when your fields change. The editor shows the new fields straight away.

Field types

Type Use
text (default) A short text
longtext A text over several lines
amount An amount
date A date
list A list of rows, for a table or a chart

Values arrive already formatted by your software ("€1,250.00", "22/11/2026"). The type only guides the editor.

Lists

A list field describes its columns in fields, with keys without a dot (twelve columns at most):

{ "key": "lines", "label": "Lines", "type": "list", "fields": [
  { "key": "description", "label": "Description" },
  { "key": "quantity", "label": "Quantity" },
  { "key": "total", "label": "Total", "type": "amount" }
]}

Its rows arrive in the render data, under the list's key. 5,000 rows at most.

Requirements

  • required: the fields a published template must always print. Publishing is refused if one is missing.
  • requiredBlocks: the blocks to keep, for example signature.

Sample data

sample gives the values the editor displays. The rows of a list are written there as in a render. A catalog sent again without sample keeps the sample it had.

The fields of a template

GET /v1/templates/{ref}/fields gives the fields a published template prints, grouped as in the catalog, with their label, type and required. This is what your software sends in data.values for this template. Enough to build a form without going through the whole catalog.

Read catalogs

GET /v1/catalogs lists them, GET /v1/catalogs/{kind} reads one.

Catalogs created in the editor

A company without software creates its types and fields in the editor. As soon as your software sends a PUT on that type, the catalog belongs to it and can no longer be changed from the editor.

Updated on 1 December 2026