Update vendor
PUT
https://api.light.inc/v1/vendors/{vendorId}
Updates an existing vendor
A full replacement: every field you omit or send as null is cleared (vatId, identifier, defaultCompanyEntity, all bank fields, ...), and companyEntityIds is replaced. Two exceptions: the web-enrichable contact fields fall back to the website lookup, and a null customProperties keeps the existing set. Send the full current record with your change applied.
status cannot be set and there is no archive or delete endpoint. Values: ONBOARDING, IN_REVIEW, ACTIVE, FAILED (rejected). An IN_REVIEW vendor cannot be updated (VENDOR_PENDING_APPROVAL_UPDATE_NOT_ALLOWED); updating a FAILED one re-submits it for review. When a vendor-approval workflow is published, bank-detail changes on an active vendor are not applied: they are parked as a change request until approved in Light, and a second change meanwhile fails with VENDOR_BANK_DATA_APPROVAL_ALREADY_IN_PROGRESS; other fields apply immediately. Companies on an external ledger cannot rename a vendor (FIELD_UPDATE_NOT_SUPPORTED_IN_EXTERNAL_LEDGER).
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
vendorIdstring · uuidrequired
Request body
application/json;charset=UTF-8
-
namestringVendor name.
-
defaultCompanyEntityobjectDefault company entity configuration for this vendor, if any.
-
companyEntityIdstring · uuidID of the company entity.
-
accountIdstring · uuidID of the ledger account to use for this vendor.
-
taxCodeIdstring · uuidID of the tax code to use for this vendor.
-
costCenterIdstring · uuidID of the cost center to use for this vendor.
-
senderBankAccountIdstring · uuidID of the sender bank account to use for payments to this vendor.
-
-
companyEntityIdsarray of string · uuidIDs of the company entities this vendor is associated with.
-
vatIdstringVendor VAT ID.
-
businessRegistrationNumberstringVendor business registration number.
-
identifierstringVendor identifier (external/system identifier).
-
descriptionstringVendor description or memo.
-
avatarUrlstringVendor avatar/logo URL.
-
emailstringVendor email address.
-
phoneNumberobject-
countryCodestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
localNumberstringThe number without the country code.
-
-
websitestringVendor website.
-
countrystringVendor country. Note: currently, updating country does not sync with the vendor in the ERP.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
citystringVendor city.
-
addressstringVendor street address.
-
zipcodestringVendor ZIP/postal code.
-
bankNamestringVendor bank name.
-
bankCountrystringVendor bank country.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
bankCitystringVendor bank city.
-
bankAddressstringVendor bank address.
-
bankZipcodestringVendor bank ZIP/postal code.
-
bankAccountNumberstringVendor bank account number (IBAN or local format).
-
bankAccountBicstringVendor bank BIC/SWIFT code.
-
domesticBankAccountNumberstringVendor domestic bank account number (country-specific format).
-
domesticBankAccountCodestringVendor domestic bank account code (e.g. routing/sort code).
-
swedishBankgiroNumberstringVendor Swedish Bankgiro number, if applicable.
-
swedishPlusgiroNumberstringVendor Swedish Plusgiro number, if applicable.
-
bankRecipientNamestringName of the bank account holder. When set, this overrides the vendor name on the payment recipient for providers that consult it (currently Airwallex).
-
customPropertiesarray of objectList of custom properties to set on the vendor. Replaces the existing set.
-
groupIdstring · uuidID of the custom property group.
-
valueIdsarray of string · uuidIDs of the selected custom property values. It behaves as a PUT operation, so if empty the existing ones will be effectively deleted.
Catalogue value ids for this group. Required; send
[](with an emptyinlineValues) to clear the group.SINGLE_SELECTandMULTI_SELECTgroups accept nothing else. See Custom properties on writes. -
inlineValuesarray of stringInline custom property values (used for TEXT/NUMERIC/DATE/etc. groups). It behaves as a PUT operation, so if empty or null the existing ones will be effectively deleted.
Literal values for
TEXT,NUMERIC,BOOLEANandDATEgroups, as strings (yyyy-MM-ddfor dates). Rejected on select groups withCUSTOM_PROPERTY_VALUE_TYPE_MISMATCH. See Custom properties on writes.
-
Response
-
typestringType of the vendor.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
EXTERNALUSER -
vendorIdstring · uuidExternal ID of the vendor.
-
companyIdstring · uuidID of the company this vendor belongs to.
-
companyEntityIdsarray of string · uuidIDs of the company entities this vendor is associated with.
-
defaultCompanyEntityobjectDefault company entity configuration for this vendor, if any.
The entity and the defaults (expense account, tax code, cost center, paying bank account) used when a bill from this vendor is created.
-
idstring · uuidID of the default company entity configuration.
-
vendorIdstring · uuidID of the vendor.
-
companyEntityIdstring · uuidID of the company entity.
-
accountIdstring · uuidID of the ledger account to use for this vendor.
-
taxCodeIdstring · uuidID of the tax code to use for this vendor.
-
costCenterIdstring · uuidID of the cost center to use for this vendor.
-
senderBankAccountIdstring · uuidID of the sender bank account to use for payments to this vendor.
-
createdAtstring · date-timeTimestamp when the configuration was created.
-
updatedAtstring · date-timeTimestamp when the configuration was last updated.
-
-
vatIdstringVendor VAT ID.
-
businessRegistrationNumberstringVendor business registration number.
-
identifierstringVendor identifier (external/system identifier).
-
namestringVendor name.
-
descriptionstringVendor description or memo.
-
avatarUrlstringVendor avatar/logo URL.
-
emailstringVendor email address.
-
phoneNumberobjectThe vendor's phone number. May be
null.PUT /v1/vendors/{vendorId}is a full replacement, so leaving it out clears it.-
countryCodestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
localNumberstringThe number without the country code.
-
-
websitestringVendor website.
-
countrystringVendor country.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
citystringVendor city.
-
addressstringVendor street address.
-
zipcodestringVendor ZIP/postal code.
-
bankNamestringVendor bank name.
-
bankCountrystringVendor bank country.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
bankCitystringVendor bank city.
-
bankAddressstringVendor bank address.
-
bankZipcodestringVendor bank ZIP/postal code.
-
bankAccountNumberstringVendor bank account number (IBAN or local format).
-
bankAccountBicstringVendor bank BIC/SWIFT code.
-
domesticBankAccountNumberstringVendor domestic bank account number (country-specific format).
-
domesticBankAccountCodestringVendor domestic bank account code (e.g. routing/sort code).
-
swedishBankgiroNumberstringVendor Swedish Bankgiro number, if applicable.
-
swedishPlusgiroNumberstringVendor Swedish Plusgiro number, if applicable.
-
bankRecipientNamestringName of the bank account holder. When set, this overrides the vendor name on the payment recipient for providers that consult it (currently Airwallex).
-
vendorCreatedAtstring · date-timeTimestamp when the vendor was created.
-
approversarray of objectList of vendor approvers.
-
idstring · uuidID of the vendor approver entry.
-
userIdstring · uuidID of the approver user.
-
vendorIdstring · uuidID of the vendor.
-
priorityinteger · int32Approval priority (lower means earlier).
-
createdAtstring · date-timeTimestamp when the approver entry was created.
-
-
notesarray of objectList of vendor notes.
-
idstring · uuidThe note id.
-
vendorIdstring · uuidThe vendor the note is on.
-
authorIdstring · uuidThe user who wrote the note.
-
companyIdstring · uuidYour company id.
-
channelstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
WEB_APPSLACK -
contentstringThe note text.
-
createdAtstring · date-timeWhen the note was written.
-
updatedAtstring · date-timeWhen it was last edited.
-
-
currencystringThe vendor's invoicing currency.
-
contractValueinteger · int64Vendor contract value in cents.
-
createdBystring · uuidID of the user who created the vendor.
-
statusstringVendor onboarding/status.
⚠️ This enum is not exhaustive; new values may be added in the future.
ONBOARDING(vendor portal in progress),IN_REVIEW(awaiting approval in Light; updates rejected),ACTIVE,FAILED(rejected; an update re-submits it). Not settable, and there is no archive endpoint.One of
ONBOARDINGIN_REVIEWACTIVEFAILED -
failureContextobjectFailure context when vendor onboarding fails.
The error of the last failed step, if any.
-
namestringThe error name
-
typestringThe error type
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
BAD_REQUESTUNAUTHORIZEDFORBIDDENNOT_FOUNDCONFLICTUNPROCESSABLE_CONTENT -
errorsarray of objectList of errors providing details about what went wrong
-
typestringA string code identifying the error type
-
messagestringA human-readable message providing more details about the error
-
patharray of stringOptional path of the error when the error is for a specific field. Used mostly on BAD_REQUEST errors, that path will match the field name on the request object
-
contextobjectOptional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
-
-
-
versioninteger · int32Vendor record version.
-
updatedAtstring · date-timeTimestamp when the vendor was last updated.
-
customPropertiesarray of objectCustom properties set on the vendor.
-
groupIdstring · uuidID of the custom property group
-
groupInternalNamestringInternal name of the custom property group
-
valuesarray of objectList of values. Note that this will be a single value unless the group input type supports multiple values
-
idstring · uuidUnique identifier for the object
-
groupIdstring · uuidID of the custom property group
-
groupInternalNamestringInternal name of the custom property group
-
companyIdstring · uuidID of the company
-
internalNamestringInternal name of the custom property value
-
labelstringLabel of the custom property value
-
contextstringContext/description of the custom property value
-
createdAtstring · date-timeTimestamp when the custom property value was created
-
updatedAtstring · date-timeTimestamp when the custom property value was last updated
-
-
-
representedCompanyEntityIdstring · uuidID of the company entity this business partner represents. Set only on system-managed intercompany counterparties, which Light creates and maintains; null for ordinary vendors.
-
lastMtdSpendInGroupCurrencyinteger · int64Last month-to-date spend in group currency.
-
groupCurrencystringYour company's group currency, in which the vendor's group-currency figures are expressed.