# InvoiceCustomFieldDefinitionCreateDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

Input DTO for creating a custom field definition.

## Fields
- `label` (string) required: (nullable, max length 200)
- `description` (string): Conditional: When Description is not null. Max length: 2000. (nullable)
- `isRequired` (boolean): (nullable)
- `isActive` (boolean): (nullable)
- `sortOrder` (integer(int32)): Conditional: When SortOrder is not null. Must be >= 0. (nullable)
- `options` (array<string>): For `Dropdown` fields, the list of selectable options. (nullable)
- `maxLength` (integer(int32)): Maximum length for `Text` fields. Conditional: When MaxLength is not null. Must be > 0. (nullable)
- `regexPattern` (string): Regex validation pattern for `Text` fields. Conditional: When RegexPattern is not null. Max length: 2000. (nullable)
- `regexErrorMessage` (string): Error message when regex validation fails. Conditional: When RegexErrorMessage is not null. Max length: 2000. (nullable)
- `billerId` (string(uuid)) required
- `billerType` ([InvoicePartyType](https://devportal.demo.winkpg.io/docs/api/models/InvoicePartyType.md)): Identifies the type of entity acting as the biller or recipient on an invoice.
  Values:
  - `GatewayOwner`: Platform-level gateway owner.
  - `Reseller`: Reseller entity.
  - `Merchant`: Merchant entity.
  - `Customer`: End customer.
- `key` (string) required: (nullable, max length 100)
- `fieldType` ([CustomFieldType](https://devportal.demo.winkpg.io/docs/api/models/CustomFieldType.md)): The data type of a custom field definition.
  Values:
  - `Text`
  - `Dropdown`
  - `Checkbox`
  - `Date`
  - `Numeric`

## See also

- [All documentation](https://devportal.demo.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
