Expense type fields - initialize

Returns the field definitions needed to render a form for creating or editing an expense record of the given expenseType. The shape of fields varies by type (ReceiptVerification, CarSpecification, SubsistenceAllowance, FoodBenefitsSpecification, FuelBenefitsSpecification) — for example, ReceiptVerification surfaces amount and receipt-attachment fields, CarSpecification surfaces distance and route fields, and SubsistenceAllowance surfaces day-by-day per-diem fields. Initial values can be seeded from an existing expense record (pass expenseRecordId), from a card transaction (pass cardTransactionId), or from a business-trip / fuel-benefit context (pass fromFuelBenefit=true together with either businessTripId or fuelBenefitId); omit all of those to start from a blank record.

Path Params
string
required

The id of the organization of the user

string
enum
required

Expense type where CarSpecification relates to Mileage, SubsistenceAllowance to Per Diem, etc

Allowed:
Query Params
string

The id of the expense to initialize the fields with

include
array of strings

optional properties to include

include
Allowed:
string

The id of the card transaction to initialize the fields with

boolean

used when creating an expenseRecord from a report

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json