Update a supplier
A patch: omitted fields are left alone, so sending {"contactPhone": "+44 117 496 0000"} changes nothing else.
Pass null to clear a contact field.
Errors
409 default_supplier_immutable— the hidden Default supplier can’t be edited.409 supplier_name_taken— the new name belongs to another supplier on the tenant.422 supplier_name_required—namepresent but blank.404 supplier_not_found— unknown, archived, or another tenant’s.
PATCH
/api/v1/suppliers/{id}Authorization
AuthorizationBearer token (bloomcount_...) · headerrequiredPath parameters
idstringrequiredRequest body
requiredapplication/jsonnamestringaddressstringwebsitestringcontactNamestringcontactEmailstringcontactPhonestringResponses
200Updated
supplierIdstringrequirednamestringrequiredcontactNamestring | nullcontactEmailstring | nullcontactPhonestring | nullwebsitestring | nulladdressstring | null401Missing or invalid API key, or revoked / expired.
errorstringrequired403Authenticated, but the key lacks the required scope or the tenant has no API access.
errorstringrequired404The requested resource doesn't exist or belongs to a different tenant.
errorstringrequired409The request is well formed, but it conflicts with the current state: a name already taken, a row the app
protects (the hidden Default supplier, a preset colour or category), or a staff member who has an account.
errorstringrequired422Request body or arguments failed validation.
errorstringrequired429Per-minute rate limit (60/min) or per-month cap exceeded.
errorstringrequired