Repository navigation
Payload format
Gil Cleber Barboza edited this page Nov 12, 2026
·
1 revision
A payload has three parts: meta, optional layout, and data.
| Field | Required | Description |
|---|---|---|
title |
yes | Report title |
sub_title |
no | Subtitle / period line |
mode |
no |
"exact" (default) or "gray" print color adjust |
company |
no | Company name |
locale |
no | BCP 47 locale for numbers/dates/currency/footer (default "pt-BR") |
currency |
no | ISO code overriding the locale's default currency |
accent_color |
no | Rebrands the header (CSS --brand-color), e.g. "#1B7A3D"
|
printed_at |
no | Print timestamp (auto-filled as YYYY-MM-DD HH:MM) |
page |
no | {size: "A4", orientation: "portrait"|"landscape", margins: {top, bottom, left, right}} |
Explicit pdf_options passed to the API win over meta.page.
Hierarchical field definitions. A dict with label is a column; a dict without label is a nested group. Keys starting with $ are level options.
"layout": {
"company": {"label": "Company", "format_mask": "str", "alignment": "left"},
"orders": {
"order": {"label": "Code", "format_mask": "int", "alignment": "right"},
"total": {"label": "Total", "format_mask": "float", "alignment": "right", "aggregate": "sum"},
"$order_by": "-order",
},
}Field definition keys: label, format_mask (str|int|float|date|percent|currency|bool), alignment (left|center|right), aggregate, running_balance, visible, visible_when. See Report parameters.
Omit layout to infer columns from the first data row.
Raw nested records, or template-format records ({"fields": {...}, "groups": [...]}).
"data": [{"company": "ACME", "orders": [{"order": 750, "total": 4000}]}]Pass sections instead of data + layout — see Sections and charts.
Validate any payload against the schema: isis-report schema or payload_schema().