List custom field definitions
Returns a page of the custom fields the company has defined, newest page first by the store's own order. Active fields only unless you ask otherwise.
Authorization
AuthorizationstringrequiredQuery parameters
pageintegerWhich page to return. Starts at 1.
pageSizeintegerHow many items per page, between 1 and 100.
entityTypeenum<string>Only return fields defined for this kind of record.
publicbooleanOnly return fields that are, or are not, visible in the tenant, owner and vendor portals.
filterablebooleanOnly return fields that can, or cannot, be filtered on.
listablebooleanOnly return fields that can, or cannot, be shown as a list column.
activebooleanWhether to return active or deactivated fields. Defaults to active only.
searchstringFree-text search over the field name, 3 to 100 characters.
Response
200 · One page of custom field definitions.
itemsobject[]The definitions on this page.
currentPageintegerThe page number that was returned.
totalPagesintegerHow many pages exist for this filter.
pageSizeintegerHow many items were requested per page.
totalCountintegerHow many items match the filter across all pages.
401 · The access token is missing, expired, or not valid for this company.
This resource creates and edits the definitions: what the field is called, what kind of record it hangs off, and what a valid value looks like. The values themselves are set and read on the record they belong to, through that record's own endpoints.
Because the definitions are written by the company, a value has no single fixed type. Which JSON property carries it depends entirely on options.type on the definition.
options.type | Which value slot the field uses | Rules you can set |
|---|---|---|
string | stringValue, or stringArray when multiple is true | minLength, maxLength, values, rejectUnknown, multiline, multiple, default |
number | numberValue | min, max, step, default |
boolean | booleanValue | default |
datetime | dateTimeValue | min, max, default, dateOnly |
reference | referenceValue, or referenceArray when multiple is true | referenceEntityType, multiple |
So to read a value you first look up its definition by customFieldId, read options.type, and then read the matching property off the value. There is no generic value property.