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

Create new service order intake form

Create a new service order intake form for a service type. Set storeUid to create the form for a single store; leave it out or send an empty string to create a tenant-wide form, which requires SERVICE_CONFIG. Supply serviceFormUid to make the call idempotent: a repeat with the same serviceFormUid returns the form already created and writes nothing, when that form is one the tenant created at the scope the request names — a tenant-wide form, or a form of the same store. The seeded default form's uid, and a serviceFormUid held by any other form, are refused with a 400, and a malformed uid stays refused. A repeat is answered once the scope the request names is resolved, with the permission that scope needs, and before any other check the create makes, so it never meets the refusal its own record would cause: a retry naming a store the tenant does not hold is refused with a 400, and a tenant-wide retry without SERVICE_CONFIG with a 403. A store form wins over the tenant form for the same service type, and the tenant form wins over the seeded default form. One active form per level: a service type carries at most one unarchived form per store, and at most one unarchived tenant-wide form. A create at a level another active form already holds is refused with a 409 saying which level is taken — the store already has a form for this service type, or the tenant does. The resolution picks a single form at each level, so a second one would make the answer arbitrary. The seeded default does not occupy the tenant level. A tenant that has only the default still has its tenant level free, and the default goes on existing beside the tenant-wide form that is created — it is the floor the resolution falls back to, not a form standing in the way. Archived forms occupy no level either: they are history, kept for the service orders created from them, so a form created already archived is not checked against a level at all. A level that was free when the client last read it may have been taken since, so a 409 is answered by re-reading and trying again rather than by retrying the same call. Place fields on the form with the placements list; archived fields cannot be placed. A placement can be made conditional with visibleWhen, so that it is shown at intake only while the field it names holds the value it names. That field must be of type BOOLEAN, SELECT or MULTI_SELECT, not marked sensitive, and placed on the same form at a lower position — and it may itself be conditional, so conditions can be chained down a branch. A form whose condition breaks any of those rules, names an equals the field cannot hold, or closes a cycle is rejected.

Required permissions: SERVICE_STORE_CONFIG, SERVICE_CONFIG

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

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

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

An update of an intake form. The placements list replaces the fields on the form — a field left out of the list is removed from the form. The store and the service type of a form are set when it is created and cannot be updated. A tenant-wide form is edited only with SERVICE_CONFIG; a store that needs a different form clones it and edits the copy instead. Archived fields cannot be placed on a form. A placement made conditional with visibleWhen must name a field of type BOOLEAN, SELECT or MULTI_SELECT that is not marked sensitive, placed on the same form at a lower position, and its equals must be a value that field can hold. Conditions may be chained down a branch, but a form whose condition breaks any of those rules, or whose conditions close a cycle, is rejected.

namestringRequired

The name of the form.

archivedbooleanOptional

Set to true to take the form out of use. An archived form is never resolved for new service orders.

serviceFormUidstringOptionalPattern: ^[A-Za-z0-9-_]+
serviceTypeUidstringRequiredPattern: ^[A-Za-z0-9-_]+
storeUidstringOptionalPattern: ^[A-Za-z0-9-_]*
Responses
201

Example response

application/json

An intake form: the ordered set of fields that is filled in when a service order of a given service type is created. A form belongs either to a single store or to the whole tenant. A store form always wins over the tenant form for the same service type, and the tenant form wins over the seeded default form. A tenant-wide form is edited only with SERVICE_CONFIG; a store that needs a different form clones it and edits the copy, which then wins for that store. Forms are never deleted — archive a form to take it out of use. storeUid is an empty string on a tenant-wide form.

serviceFormUidstringRequiredPattern: ^[A-Za-z0-9-_]+
tenantUidstringRequiredPattern: ^[A-Za-z0-9-_]+
storeUidstringRequiredPattern: ^[A-Za-z0-9-_]*
serviceTypeUidstringRequiredPattern: ^[A-Za-z0-9-_]+
namestringRequired

The name of the form.

archivedbooleanRequired

An archived form is kept for the service orders created from it, but is never resolved for new service orders.

createdAtstring · date-timeRequired
createdBystringRequired
lastModifiedAtstring · date-timeRequired
lastModifiedBystringRequired
post/tenants/{tenantUid}/serviceorders/forms
POST /v2/tenants/{tenantUid}/serviceorders/forms HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 233

{
  "name": "text",
  "archived": true,
  "placements": [
    {
      "serviceFormFieldUid": "text",
      "position": 1,
      "required": true,
      "visibleWhen": {
        "serviceFormFieldUid": "text",
        "equals": "text"
      }
    }
  ],
  "serviceFormUid": "text",
  "serviceTypeUid": "text",
  "storeUid": "text"
}
201

Example response

{
  "serviceFormUid": "text",
  "tenantUid": "text",
  "storeUid": "text",
  "serviceTypeUid": "text",
  "name": "text",
  "archived": true,
  "placements": [
    {
      "serviceFormFieldUid": "text",
      "position": 1,
      "required": true,
      "visibleWhen": {
        "serviceFormFieldUid": "text",
        "equals": "text"
      },
      "fieldKey": "text",
      "label": "text",
      "fieldType": "TEXT",
      "systemKind": "SERIAL_NUMBER",
      "sensitive": true,
      "selectOptions": [
        "text"
      ],
      "validation": "text",
      "note": "text"
    }
  ],
  "createdAt": "2026-01-01T00:00:00.000Z",
  "createdBy": "text",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedBy": "text"
}

Last updated

Was this helpful?