Files
Upload withPOST /v1/supplier/file/upload: multipart form, single part named file, max 512 MB.
FileManager) is a FileDetails record: { "fileName": "before.jpg", "fileId": "a1b2c3d4e5" }. Non-ASCII characters are stripped from the file name; a storage failure returns 500.
Use the returned object verbatim in attachment fields: work order supplier attachments, proposal and invoice attachments, and check-in/check-out images. Invoice PDFs have their own upload-and-publish endpoint.
Download with GET /v1/supplier/file/download/{id}/{name}, which streams the stored bytes as an attachment. {id} is the fileId; {name} is the file name to serve it under. Use it to pull buyer-provided documents off buyerAttachments. Download failures are answered with 400.
Provisioning supplier users
POST /v1/supplier/user/provision creates a supplier contact under your company, optionally with an active login. Typical use: onboarding technicians from your HR system.
email(lower-cased and trimmed),nameGiven,nameFamily, and a non-emptyrolesarray are required. Role names are matched case-insensitively, and admin or super-admin roles are rejected with403.SUPPLIER_TECHroles additionally get a field-tech record, which is what makes the user schedulable on service calls and visible in WrenchMode.- The target
facilityIddefaults to your key’s facility and must belong to the same supplier company (403otherwise). - An existing account or contact for the email is a
400conflict. - Login creation. Without a
password, the user gets a sign-up invitation email. With one, the account is created active immediately; addpasswordResetRequiredto force a change on first login. - Location access:
hasAccessToAllLocations, or explicitlocationIds/brandIds(ignored when the all-locations flag is true). - Stock-location access:
hasAccessToAllStockLocationsandcanManageAllStockLocationsdefault to false and are forced false wheneverstockLocationIdsis non-empty; explicit ids win. - EPA 608 credentials:
epaCertificationTypeis validated against the recognized classes;epaCertificationNumberis free-form.