Resource metafields
Last updated
Was this helpful?
Last updated
Was this helpful?
Setting up new Metafields involves the following tasks:
Adding to add fields for your specialized information.
as part of your API calls.
Metafield definitions act as the schema that specify what values the metafield can have. Before you can add metafield values to specific trackers, orders, or other resources in Kublau, you need to add the metafield definition for that information. Adding metafield definitions ensures that the same validation rules apply to every value that you enter for a specific metafield.
From your Kublau dashboard, go to Settings > Custom fields.
Click on create a new custom field.
Provide the key that this metafield will be represented with. This key will be used in the API and in CSV/XLSX import/exports.
Provide a label for the metafield. This will be used to display the field on the Kublau Dashboard.
Provide a metafield value type.
Each type of metafield accepts a range of supported values for different use cases. Refer to the table below of value types for information about the following:
supported values for each type of metafield
example use cases for each type of metafield
DATE
Supports date values in ISO 8601 format, without a time zone.
Add tracker expiration dates, order delivery dates, or customer birth dates.
DATETIME
Supports date values in ISO 8601 format and time values in UTC time.
Add order creation time, event dates or any timestamp.
INTEGER
Supports integer values.
Integer values can be in the range of -4,611,686,018,427,387,904 to 4,611,686,018,427,387,903.
An integer metafield might be used to add a priority count to an order.
FLOAT
Supports decimal values.
Decimal values can be in the range of +/-9999999999999.999999999, with up to 13 digits before the decimal and up to 9 digits after.
A decimal metafield might be used to add a weight for a product.
STRING
Supports plain text in either single-line or multi-line. Multi-line values can include line breaks.
Add shipping notes, store extra order fields, or include external IDs.
BOOLEAN
Supports boolean values of true or false.
Add whether an order belongs to a specific group, mark a shipment for priority.
JSON_STRING
Supports raw JSON data for advanced use cases when you need a structured data source.
Add an array of multi-field objects related to your order.