Printago API
GET /v1/routing-rules/catalog

Get the routing rule field catalog

The fields a rule can read in this store, and the operators each takes Lists the built-in printer, part, SKU and order fields plus one `custom.<key>` entry per custom field. A rule that reads anything else is refused. `timezone` is the store timezone that dates written without an offset are read in.

Requires: routingRules.view

Response Schema

RoutingRuleCatalog
fieldsrequired
object[]
entityrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
enumValuesoptional
string[]
The allowed values of an `enum` attribute.
labelrequired
string
pathrequired
string
The path a `Ref` uses, e.g. `userTags` or `custom.batchColor`.
typerequired
enum
stringnumberbooleandateenumstring[]number[]
unitoptional
string
operatorsrequired
object
Construct a type with a set of properties K of type T
booleanrequired
enum[]
daterequired
enum[]
enumrequired
enum[]
numberrequired
enum[]
number[]required
enum[]
stringrequired
enum[]
string[]required
enum[]
timezonerequired
string
The timezone dates without an offset are read in.

Example Response

200 OK — application/json
{
  "timezone": "string",
  "fields": [
    {
      "entity": "order",
      "path": "string",
      "label": "string",
      "type": "string",
      "enumValues": [
        "string"
      ],
      "unit": "string"
    }
  ],
  "operators": {
    "string": [
      "in"
    ],
    "number": [
      "in"
    ],
    "boolean": [
      "in"
    ],
    "date": [
      "in"
    ],
    "enum": [
      "in"
    ],
    "string[]": [
      "in"
    ],
    "number[]": [
      "in"
    ]
  }
}