Skip to main content
POST
Provision a supplier user

Autorisations

X-API-KEY
string
header
requis
OW-KEY
string
header
requis

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Corps

application/json
email
string
requis

REQUIRED. Lower-cased and trimmed.

nameGiven
string
requis

REQUIRED

nameFamily
string
requis

REQUIRED

roles
string[]
requis

REQUIRED, non-empty. Supplier role names (case-insensitive); admin and super-admin roles are rejected.

facilityId
integer

Target supplier facility; defaults to the API key contact's facility. Must belong to the same supplier company.

title
string
department
string
isSharedContact
boolean

Default false

readOnlyAccess
boolean

Default false

hasAccessToAllLocations
boolean
locationIds
integer<int64>[]

Location ids the user may access (ignored when hasAccessToAllLocations is true)

brandIds
integer[]

Brand ids the user may access (ignored when hasAccessToAllLocations is true)

hasAccessToAllStockLocations
boolean

Default false; forced false when stockLocationIds is non-empty

canManageAllStockLocations
boolean

Default false; forced false when stockLocationIds is non-empty

stockLocationIds
integer<int64>[]
epaCertificationType
string

EPA 608 certification class; validated

epaCertificationNumber
string
password
string

When present, an active user account is created with this password instead of sending a sign-up invite

passwordResetRequired
boolean

Only meaningful together with password

Réponse

The created contact (envelope type "SupplierContact")

type
string
requis

Entity type label, e.g. "SupplierContact". Endpoints that derive it via Scala reflection (most generic list/get endpoints) may return the fully qualified server class name instead (e.g. "models.workorder.WorkOrder"); treat this field as informational.

data
object
requis

Contact record (abridged - the full Contact model carries additional fields).

status
enum<string>
requis

"ok" on success

Options disponibles:
ok