Skip to main content
POST
Provision a buyer user

Auktoriseringar

X-API-KEY
string
header
obligatorisk
OW-KEY
string
header
obligatorisk

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

Kropp

application/json
email
string
obligatorisk
nameGiven
string
obligatorisk
nameFamily
string
obligatorisk
roles
string[]
obligatorisk

Role names (case-insensitive); admin/super-admin roles are rejected.

facilityId
integer | null

Target buyer facility; defaults to the API key's facility. Must be in the same buyer company.

title
string | null
department
string | null
isSharedContact
boolean | null
readOnlyAccess
boolean | null
hasAccessToAllLocations
boolean | null
locationIds
integer[] | null
brandIds
integer[] | null
password
string | null

If supplied, a login is created immediately with this password.

passwordResetRequired
boolean | null
epaCertificationType
string | null

EPA 608 certification class; validated against the recognised classes — an unrecognised value is rejected with 400.

epaCertificationNumber
string | null

EPA 608 certificate number (free-form, max 64 characters).

Maximum string length: 64

Svar

The created contact (type marker "BuyerContact").

type
string
obligatorisk

Entity type marker, e.g. "BuyerContact".

data
object
obligatorisk

Contact record. Abridged: only fields observed in the provided sources are listed.

status
enum<string>
obligatorisk
Tillgängliga alternativ:
ok