Skip to main content

Get CSV Column Registry

GET 

/api/purchase-orders/csv-columns

Returns the master registry of supported PO email CSV columns and the tenant-wide default selection. Used by the per-supplier CSV column picker, the supplier preferences panel, and the PO settings page.

The registry is append-only and position-stable — column ordering and keys are part of a public contract that supplier intake pipelines rely on. Removing or renaming a key is a breaking change.

Response fields:

  • data.columns[] — array of { key, label } in canonical order
  • data.tenant_default — array of column keys representing the tenant-wide default, or null if no override is set (means: use system default = every column)

Authentication: Requires Bearer token. Scope: purchase-orders:rw.

Request

Responses

Successful response