Skip to main content

Retrieving the list of customFields enabled for an expense nature

Custom fields activation depends on the expense nature. For example, custom field “Bill back client (bool)” may be activated for travel expenses, but not for team building expenses.
Each custom field is typed, as indicated by the customField.type.tag discriminator:

Retrieving the customFields values for an expense

In order to retrieve the list of customField values for an ExpenseTempItem or an ExpenseClaimItem, simply add “customFields” to the list of fields requested through the ?fields query parameter:
The customFields field you’ll retrieve is a JSON object whose keys are the IDs of the customField.