Skip to main content
GET
Fetch custom field

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

id
string<uuid>
required

The unique identifier of the custom field.

Response

A custom field: a field that you add to one kind of record, such as customers or contracts, whose value users fill in on each record. Each record of that kind holds the value in its customFields, under the fieldKey.

id
string<uuid>
required

The unique identifier of the custom field.

entity
enum<string>
required

The kind of record that the custom field belongs to, such as customer or contract.

Available options:
contract,
product,
item,
customer,
importable_template,
legal_entity,
revenue_traceability,
revenue_attribution,
invoice_discount,
invoice,
plan_instance_version
fieldKey
string
required

The key under which each record of the entity holds the value of the custom field in its customFields. No other custom field of the same entity has it.

Example:

"canalDeVenda"

dataType
enum<string>
required

The type of the value of the custom field: string holds one text, string_array holds a list of texts, and boolean holds the text true or false.

Available options:
string,
string_array,
boolean
label
string
required

The name of the custom field that the billing app shows.

Minimum string length: 1
Example:

"Canal de venda"

description
null | string
required

The help text that the billing app shows with the input of the custom field, or null for none.

Example:

"Canal pelo qual o cliente compra."

required
boolean
required

Whether each record of the entity must hold a value of the custom field.

defaultValue
null | string
required

The value that the billing app fills in on a new record, or null for none.

Example:

"varejo"

options
null | object[]
required

The values that a record can hold in the custom field, in the order that the billing app shows them, or null when the custom field takes any value.

dataSource
null | enum<string>
required

The records whose ids a record holds in the custom field, in place of options: customers for the customers, and omie_categories or omie_bank_accounts for the categories or the bank accounts of Omie. Null when the custom field takes no records.

Available options:
customers,
omie_categories,
omie_bank_accounts,
null
multiline
boolean
required

Whether the billing app shows the input of the custom field as a text area of several lines, in place of a text input of one line. Only a custom field of string with no options and no dataSource is multiline.

module
null | enum<string>
required

The module of Aira that owns the custom field, such as the integration omie, which reads its value by the fieldKey, or null when no module owns it. You cannot update or delete a custom field that a module owns.

Available options:
omie,
senior,
celcash,
asaas,
enotas,
hubspot,
contaazul,
null