Get Schema

GET /schema

Returns the types and fields you can use in filter on list endpoints. Field name values match the fieldName you pass in a filter. Museum custom customer fields appear on the CUSTOMER type as UUID field names.

Use this together with Querying.

Example Response

Copy
{ "entries": [ "CUSTOMER", "MEMBERSHIP", "EMAIL", "TICKET", "EVENT_TICKET", "GIFTCARD", "VISIT" ], "types": [ { "name": "CUSTOMER", "fields": [ { "name": "EMAIL", "type": "TEXT", "prettyName": "Email" } ] } ] }
PropertyTypeDescription
entriesarrayType names that can appear as list resources
typesarrayFilterable types for this museum
types[].namestringType name (for example CUSTOMER, MEMBERSHIP)
types[].fieldsarrayFields you can put in fieldName
types[].fields[].namestringFilter field name
types[].fields[].typestringField type (for example TEXT, DATE, BOOLEAN, REFERENCE)
types[].fields[].prettyNamestringHuman-readable label

Fields marked hidden in the filter overview are omitted. Custom customer fields are included on CUSTOMER when the museum has them.

Previous
Visit
Next
List Customers