Skip to main content
GET
Error

Authorizations

authorization
string
header
required
X-Workspace-ID
string
header
required

Headers

X-Workspace-ID
string
required

Response

OK

Available merge fields for purchase orders report templates. Fixed per report kind: the workspace and project records (project resolves to nulls unless the report is generated with a project_id) plus the purchase_orders collection: one row per order, in list order, with the list totals. status is its label (Draft, Open, ...); projects the item projects' names joined with ", "; amounts (format: currency) are "USD 1,234.50" strings in the order's currency, plain numbers without one. Plus purchase_order_items: each row's items, nested in the rows.

workspace
object
required
project
object
required
purchase_orders
object
required
purchase_order_items
object
required

Each row's items, the same collection as in the single purchase order pdf. Never a list of its own: each row of purchase_orders nests its items under purchase_order_items ({{#each purchase_order_items}} inside {{#each purchase_orders}}) when used_fields.collections names purchase_order_items.