For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

post
/tenants/{tenantUid}/serviceorders/insurancecompanies
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body

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.

namestringRequired

What the insurer is called, as it is shown in the picker.

customerUidstringRequired

The customer record that stands for the insurer.

Pattern: ^[A-Za-z0-9-_]+
deprecatedbooleanOptional

A deprecated entry stays in the list but is not offered in the picker.

insuranceCompanyUidstringOptionalPattern: ^[A-Za-z0-9-_]+
Responses
201

Example response

application/json

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.

insuranceCompanyUidstringRequiredPattern: ^[A-Za-z0-9-_]+
tenantUidstringRequiredPattern: ^[A-Za-z0-9-_]+
namestringRequired

What the insurer is called, as it is shown in the picker. Unique within the tenant.

customerUidstringRequired

The customer record that stands for the insurer. Linked by this entry alone.

Pattern: ^[A-Za-z0-9-_]+
customerNamestringRequired

The linked customer's display name as it reads now.

deprecatedbooleanRequired

A deprecated entry stays in the list but is not offered in the picker.

createdAtstring · date-timeRequired
createdBystringRequired
lastModifiedAtstring · date-timeRequired
lastModifiedBystringRequired
post/tenants/{tenantUid}/serviceorders/insurancecompanies
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"
}
201

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?