Create new service insurance company
Create an insurance company entry: the insurer's name and the customer record that stands for it. Supply insuranceCompanyUid to make the call idempotent: a repeat with the same insuranceCompanyUid returns the entry already created and writes nothing — any insuranceCompanyUid the tenant already holds for an insurance company returns that entry — while a malformed uid stays refused. A repeat is answered before any other check the create makes, so it never meets the refusal its own record would cause. The name must not be blank and is unique within the tenant, compared exactly as sent. customerUid must be one of the tenant's customers, and a customer record is linked by at most one entry; a name or a customer another entry already holds is refused.
Required permissions: SERVICE_CONFIG
Access token recevied after user login with a deviceToken
Reference to a tenant.
^[A-Za-z0-9-_]+The editable parts of an insurance company entry. A field that is left out keeps its stored value; a field that is sent replaces it. The name must not be blank and is unique within the tenant, compared exactly as sent. customerUid must be one of the tenant's customers, and a customer record is linked by at most one entry; a name or a customer another entry already holds is refused. Set deprecated to take the insurer out of the picker while the entry stays in the list.
What the insurer is called, as it is shown in the picker.
The customer record that stands for the insurer.
^[A-Za-z0-9-_]+A deprecated entry stays in the list but is not offered in the picker.
^[A-Za-z0-9-_]+Example response
An insurance company entry: one of the insurers the tenant's service orders name, linked to the customer record that stands for it. The tenant's entries are the intake wizard's insurer picker — picking one puts its customerUid on the service order as insuranceCompanyCustomerUid, so no service order references the entry itself and it is deletable at any time. The entry goes with its customer record: deleting the record deletes the entry, and merging the record into another customer moves the entry to that customer. customerName is the linked customer's display name as it reads now. A deprecated entry stays in the list but is not offered in the picker.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+What the insurer is called, as it is shown in the picker. Unique within the tenant.
The customer record that stands for the insurer. Linked by this entry alone.
^[A-Za-z0-9-_]+The linked customer's display name as it reads now.
A deprecated entry stays in the list but is not offered in the picker.
POST /v2/tenants/{tenantUid}/serviceorders/insurancecompanies HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"name": "text",
"customerUid": "text",
"deprecated": true,
"insuranceCompanyUid": "text"
}Example response
{
"insuranceCompanyUid": "text",
"tenantUid": "text",
"name": "text",
"customerUid": "text",
"customerName": "text",
"deprecated": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text"
}Last updated
Was this helpful?

