Create Custom Field Definition
Create a new custom field definition.
Defines a new custom field schema for a specific entity type. Once created, values can be set on entities of that type using the field_key.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
Unique key for this field. Must start with a letter, contain only lowercase letters, numbers, underscores, and dashes (2-64 chars). This key is used when setting values on entities.
The entity type this field applies to (customer, subscription, product, price, invoice, checkout_session)
The data type for values: text (max 500 chars), number (integer or decimal), boolean, or select (from predefined options)
Human-readable name for the field, shown in the dashboard
Type-specific constraints. For number: {min, max}. For select: {options: [‘a’, ‘b’]}. Text and boolean do not support constraints.
Response
Unique identifier for the definition (e.g., ‘cfd_dev_abc123’)
Human-readable name for the field
Type-specific constraints