Skip to main content
This page documents all request body models used across the FieldIU API.

AccountRequest

Used by POST /api/v1/accounts.
FieldTypeDescription
namestring | nullAccount display name
emailstring | nullEmail address
accountTypeinteger | nullAccount type code
legalNamestring | nullLegal registered name
defaultPaymentTermsinteger | nullPayment terms code
trnNumberstring | nullTax registration number
licenseNumberstring | nullBusiness license number
businessPhonestring | nullBusiness phone number
buildingLocationstring | nullBuilding or location name
street1string | nullStreet address line 1
street2string | nullStreet address line 2
citystring | nullCity
postalCodestring | nullPostal / ZIP code
statestring | nullState or province
countrystring | nullCountry

ContactRequest

Used by POST /api/v1/contacts.
FieldTypeDescription
firstNamestring | nullFirst name
lastNamestring | nullLast name
emailstring | nullEmail address
mobilePhonestring | nullMobile phone number
businessPhonestring | nullBusiness phone number
accountIdstring | nullID of the linked account
buildingLocationstring | nullBuilding or location name
street1string | nullStreet address line 1
street2string | nullStreet address line 2
citystring | nullCity
postalCodestring | nullPostal / ZIP code
statestring | nullState or province
countrystring | nullCountry

LeadRequest

Used by POST /api/v1/leads.
FieldTypeDescription
firstNamestring | nullFirst name
lastNamestring | nullLast name
titlestring | nullJob title
companyNamestring | nullCompany name
emailstring | nullEmail address
mobilePhonestring | nullMobile phone number
businessPhonestring | nullBusiness phone number
leadSourceinteger | nullLead source code
accountTypeinteger | nullAccount type code
ratinginteger | nullLead quality rating code
estimatedValuenumber | nullEstimated deal value (double)
estimatedCloseDatestring | nullEstimated close date (ISO 8601)
buildingLocationstring | nullBuilding or location name
street1string | nullStreet address line 1
street2string | nullStreet address line 2
citystring | nullCity
postalCodestring | nullPostal / ZIP code
statestring | nullState or province
countrystring | nullCountry

AIAskModel

Used by POST /api/v1/ai-agent/ask.
FieldTypeDescription
querystringThe natural language query to send
chatIdstring (uuid)Conversation thread identifier
userIdstring (uuid)ID of the user sending the query

WorkorderConfirmationRequest

Used by POST /api/v1/ai-agent/confirm-workorder.
FieldTypeDescription
wo_numberstring | nullWork order number
confirmedboolean | nulltrue to confirm, false to cancel
visit_datestringScheduled visit date and time (ISO 8601)

WorkorderBookingAvailableRequest

Used by POST /api/v1/ai-agent/is-booking-available.
FieldTypeDescription
dateTimestring | nullDate and time to check (ISO 8601)

WorkorderBookingAvailableExactDateRequest

Used by POST /api/v1/ai-agent/available-appointments.
FieldTypeDescription
dateTimestring | nullStarting date and time to search from (ISO 8601)

IncidentCreatingRequest

Used by POST /api/v1/ai-agent/create-incident.
FieldTypeDescription
clientNamestring | nullClient name
insectNamestring | nullPest or insect type
dateTimestringIncident date and time (ISO 8601, e.g. 2017-07-21T17:32:28Z)

CreateQuoteRequestModel

Used by POST /api/v1/ai-agent/create-quote-request.
FieldTypeDescription
clientNamestringClient name
descriptionstringService description

GetWorkOrderDetailsModel

Used by POST /api/v1/ai-agent/get-wo-details.
FieldTypeDescription
woNumberstringWork order number to look up

Enum Types

These integer fields use CRM option set codes. Contact your FieldIU administrator for the full list of values specific to your organization.
Model FieldType
account.accountTypeNullableOfaccount_ha_accounttype
account.defaultPaymentTermsNullableOfaccount_ha_defaultpaymentterms
lead.accountTypeNullableOflead_ha_accounttype
lead.ratingNullableOflead_leadqualitycode
lead.leadSourceNullableOflead_leadsourcecode