New Light partners with Amesto GlobalLight partners with Amesto Global Read the announcement

Update vendor

This endpoint is deprecated and may be removed. Check the reference for its replacement before building on it.

PUT
https://api.light.inc/v1/vendors/{vendorId}

Updates an existing vendor, replacing every field. Deprecated, use PATCH to update only the fields you send.

Permission: vendors:update (COMPANY_ADMIN, VENDOR_MANAGEMENT)

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

  • vendorId string · uuidrequired

Request body

application/json;charset=UTF-8

  • name string

    Vendor name.

  • defaultCompanyEntity object

    Default company entity configuration for this vendor, if any.

    • companyEntityId string · uuid

      ID of the company entity.

    • accountId string · uuid

      ID of the ledger account to use for this vendor.

    • taxCodeId string · uuid

      ID of the tax code to use for this vendor.

    • costCenterId string · uuid

      ID of the cost center to use for this vendor.

    • senderBankAccountId string · uuid

      ID of the sender bank account to use for payments to this vendor.

  • companyEntityIds array of string · uuid

    IDs of the company entities this vendor is associated with.

  • vatId string

    Vendor VAT ID.

  • businessRegistrationNumber string

    Vendor business registration number.

  • identifier string

    Vendor identifier (external/system identifier).

  • description string

    Vendor description or memo.

  • avatarUrl string

    Vendor avatar/logo URL.

  • email string

    Vendor email address.

  • phoneNumber object

    • countryCode string

      ⚠️ This enum is not exhaustive; new values may be added in the future.

      One of AC AD AE AF AG AI AL AM AN AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BU BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CP CR CS CU CV CW CX CY CZ DE DG DJ DK DM DO DZ EA EC EE EG EH ER ES ET EU EZ FI FJ FK FM FO FR FX GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU IC ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NT NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SF SG SH SI SJ SK SL SM SN SO SR SS ST SU SV SX SY SZ TA TC TD TF TG TH TJ TK TL TM TN TO TP TR TT TV TW TZ UA UG UK UM US UY UZ VA VC VE VG VI VN VU WF WS XI XU XK YE YT YU ZA ZM ZR ZW

    • localNumber string

      Note

      The number without the country code.

  • website string

    Vendor website.

  • country string

    Vendor 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 AC AD AE AF AG AI AL AM AN AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BU BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CP CR CS CU CV CW CX CY CZ DE DG DJ DK DM DO DZ EA EC EE EG EH ER ES ET EU EZ FI FJ FK FM FO FR FX GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU IC ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NT NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SF SG SH SI SJ SK SL SM SN SO SR SS ST SU SV SX SY SZ TA TC TD TF TG TH TJ TK TL TM TN TO TP TR TT TV TW TZ UA UG UK UM US UY UZ VA VC VE VG VI VN VU WF WS XI XU XK YE YT YU ZA ZM ZR ZW

  • city string

    Vendor city.

  • address string

    Vendor street address.

  • zipcode string

    Vendor ZIP/postal code.

  • bankName string

    Vendor bank name.

  • bankCountry string

    Vendor bank country.

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of AC AD AE AF AG AI AL AM AN AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BU BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CP CR CS CU CV CW CX CY CZ DE DG DJ DK DM DO DZ EA EC EE EG EH ER ES ET EU EZ FI FJ FK FM FO FR FX GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU IC ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NT NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SF SG SH SI SJ SK SL SM SN SO SR SS ST SU SV SX SY SZ TA TC TD TF TG TH TJ TK TL TM TN TO TP TR TT TV TW TZ UA UG UK UM US UY UZ VA VC VE VG VI VN VU WF WS XI XU XK YE YT YU ZA ZM ZR ZW

  • bankCity string

    Vendor bank city.

  • bankAddress string

    Vendor bank address.

  • bankZipcode string

    Vendor bank ZIP/postal code.

  • bankAccountNumber string

    Vendor bank account number (IBAN or local format).

  • bankAccountBic string

    Vendor bank BIC/SWIFT code.

  • domesticBankAccountNumber string

    Vendor domestic bank account number (country-specific format).

  • domesticBankAccountCode string

    Vendor domestic bank account code (e.g. routing/sort code).

  • swedishBankgiroNumber string

    Vendor Swedish Bankgiro number, if applicable.

  • swedishPlusgiroNumber string

    Vendor Swedish Plusgiro number, if applicable.

  • bankRecipientName string

    Name of the bank account holder. When set, this overrides the vendor name on the payment recipient for providers that consult it (currently Airwallex).

  • isWithholdingSubject boolean

    Whether the vendor's invoices are expected to carry a withholding tax. The withholding tax code itself is the vendor's default tax code on the company entity. Omitting it or sending null keeps the vendor's current value.

  • paymentMethod string

    How the vendor's bills are paid. DEFAULT (shown as Light in the app): Light pays the bills. DIRECT_DEBIT: the vendor collects the payment by direct debit, so Light does not pay the bills. MANUAL: the bills are paid outside Light. Omitting it or sending null keeps the vendor's current payment method.

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of DEFAULT DIRECT_DEBIT MANUAL

  • customProperties array of object

    List of custom properties to set on the vendor. Replaces the existing set.

    • groupId string · uuid

      ID of the custom property group.

    • valueIds array of string · uuid

      IDs of the selected custom property values. It behaves as a PUT operation, so if empty the existing ones will be effectively deleted.

      Note

      Catalog value ids for this group. Required; send [] (with an empty inlineValues) to clear the group. SINGLE_SELECT and MULTI_SELECT groups accept nothing else. See Custom properties on writes.

    • inlineValues array of string

      Inline 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.

      Note

      Literal values for TEXT, NUMERIC, BOOLEAN and DATE groups, as strings (yyyy-MM-dd for dates). Rejected on select groups with CUSTOM_PROPERTY_VALUE_TYPE_MISMATCH. See Custom properties on writes.

    • attachmentIds array of string · uuid

      IDs of attachments to assign to an ATTACHMENT property on an existing vendor. Send valueIds as an empty list. Only one active attachment belonging to the vendor can be assigned per group. Clear the current file before assigning another. Create the vendor first, request POST /v1/attachments/upload-url with its resourceId, upload the file to the returned URL, then POST /v1/attachments with documentKey set to the returned key. Use the created attachment's id here in PUT or PATCH /v1/vendors/{vendorId}. A PATCH that sends only customProperties and changes only their files works in every vendor status. customProperties replaces the whole set, so send the vendor's other properties as they are, by valueIds. A PUT, or a PATCH that changes anything else, returns 400 while the vendor is IN_REVIEW, ONBOARDING or INACTIVE. An empty list clears the assignment without archiving the file.

Response

  • type string

    Type of the vendor.

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of EXTERNAL USER

  • vendorId string · uuid

    External ID of the vendor.

  • companyId string · uuid

    ID of the company this vendor belongs to.

  • companyEntityIds array of string · uuid

    IDs of the company entities this vendor is associated with.

  • defaultCompanyEntity object

    Default company entity configuration for this vendor, if any.

    Note

    The entity and the defaults (expense account, tax code, cost center, paying bank account) used when a bill from this vendor is created.

    • id string · uuid

      ID of the default company entity configuration.

    • vendorId string · uuid

      ID of the vendor.

    • companyEntityId string · uuid

      ID of the company entity.

    • accountId string · uuid

      ID of the ledger account to use for this vendor.

    • taxCodeId string · uuid

      ID of the tax code to use for this vendor.

    • costCenterId string · uuid

      ID of the cost center to use for this vendor.

    • senderBankAccountId string · uuid

      ID of the sender bank account to use for payments to this vendor.

    • createdAt string · date-time

      Timestamp when the configuration was created.

    • updatedAt string · date-time

      Timestamp when the configuration was last updated.

  • vatId string

    Vendor VAT ID.

  • businessRegistrationNumber string

    Vendor business registration number.

  • easCode string

    Electronic Address Scheme code of the vendor's e-invoice address.

  • einvoiceAddress string

    E-invoice address of the vendor.

  • einvoiceNetwork string

    E-invoice network the vendor is registered on.

    • DE_EMAIL - Germany e-invoice delivered by email (XRechnung). Only for vendors in Germany
    • FINVOICE - Finland Finvoice e-invoice network
    • FR_PA - France Plateforme Agréée (Chorus Pro / Annuaire) e-invoice network
    • MYDATA - Greece myDATA e-invoice network
    • NEMHANDEL - NemHandel e-invoice network
    • PEPPOL - Peppol e-invoice network
    • PORTUGUESE_TAX_REPORTING - Portuguese tax reporting (ATCUD) e-invoice network
    • SDI - SDI (Sistema di Interscambio) e-invoice network
    • VERIFACTU - Spain VERI*FACTU tax reporting e-invoice network

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of DE_EMAIL FINVOICE FR_PA MYDATA NEMHANDEL PEPPOL PORTUGUESE_TAX_REPORTING SDI VERIFACTU

  • identifier string

    Vendor identifier (external/system identifier).

  • name string

    Vendor name.

  • description string

    Vendor description or memo.

  • avatarUrl string

    Vendor avatar/logo URL.

  • email string

    Vendor email address.

  • phoneNumber object

    Note

    The vendor's phone number. May be null. PUT /v1/vendors/{vendorId} is a full replacement, so leaving it out clears it.

    • countryCode string

      ⚠️ This enum is not exhaustive; new values may be added in the future.

      One of AC AD AE AF AG AI AL AM AN AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BU BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CP CR CS CU CV CW CX CY CZ DE DG DJ DK DM DO DZ EA EC EE EG EH ER ES ET EU EZ FI FJ FK FM FO FR FX GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU IC ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NT NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SF SG SH SI SJ SK SL SM SN SO SR SS ST SU SV SX SY SZ TA TC TD TF TG TH TJ TK TL TM TN TO TP TR TT TV TW TZ UA UG UK UM US UY UZ VA VC VE VG VI VN VU WF WS XI XU XK YE YT YU ZA ZM ZR ZW

    • localNumber string

      Note

      The number without the country code.

  • website string

    Vendor website.

  • country string

    Vendor country.

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of AC AD AE AF AG AI AL AM AN AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BU BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CP CR CS CU CV CW CX CY CZ DE DG DJ DK DM DO DZ EA EC EE EG EH ER ES ET EU EZ FI FJ FK FM FO FR FX GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU IC ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NT NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SF SG SH SI SJ SK SL SM SN SO SR SS ST SU SV SX SY SZ TA TC TD TF TG TH TJ TK TL TM TN TO TP TR TT TV TW TZ UA UG UK UM US UY UZ VA VC VE VG VI VN VU WF WS XI XU XK YE YT YU ZA ZM ZR ZW

  • city string

    Vendor city.

  • address string

    Vendor street address.

  • zipcode string

    Vendor ZIP/postal code.

  • bankName string

    Vendor bank name.

  • bankCountry string

    Vendor bank country.

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of AC AD AE AF AG AI AL AM AN AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BU BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CP CR CS CU CV CW CX CY CZ DE DG DJ DK DM DO DZ EA EC EE EG EH ER ES ET EU EZ FI FJ FK FM FO FR FX GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU IC ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NT NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SF SG SH SI SJ SK SL SM SN SO SR SS ST SU SV SX SY SZ TA TC TD TF TG TH TJ TK TL TM TN TO TP TR TT TV TW TZ UA UG UK UM US UY UZ VA VC VE VG VI VN VU WF WS XI XU XK YE YT YU ZA ZM ZR ZW

  • bankCity string

    Vendor bank city.

  • bankAddress string

    Vendor bank address.

  • bankZipcode string

    Vendor bank ZIP/postal code.

  • bankAccountNumber string

    Vendor bank account number (IBAN or local format).

  • bankAccountBic string

    Vendor bank BIC/SWIFT code.

  • domesticBankAccountNumber string

    Vendor domestic bank account number (country-specific format).

  • domesticBankAccountCode string

    Vendor domestic bank account code (e.g. routing/sort code).

  • swedishBankgiroNumber string

    Vendor Swedish Bankgiro number, if applicable.

  • swedishPlusgiroNumber string

    Vendor Swedish Plusgiro number, if applicable.

  • bankRecipientName string

    Name of the bank account holder. When set, this overrides the vendor name on the payment recipient for providers that consult it (currently Airwallex).

  • isWithholdingSubject boolean

    Whether the vendor's invoices are expected to carry a withholding tax. The withholding tax code itself is the vendor's default tax code on the company entity.

  • paymentMethod string

    How the vendor's bills are paid. DEFAULT (shown as Light in the app): Light pays the bills. DIRECT_DEBIT: the vendor collects the payment by direct debit, so Light does not pay the bills. MANUAL: the bills are paid outside Light. Null when not set, in which case Light pays the bills.

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of DEFAULT DIRECT_DEBIT MANUAL

  • vendorCreatedAt string · date-time

    Timestamp when the vendor was created.

  • approvers array of object

    List of vendor approvers.

    • id string · uuid

      ID of the vendor approver entry.

    • userId string · uuid

      ID of the approver user.

    • vendorId string · uuid

      ID of the vendor.

    • priority integer · int32

      Approval priority (lower means earlier).

    • createdAt string · date-time

      Timestamp when the approver entry was created.

  • notes array of object

    List of vendor notes.

    • id string · uuid

      Note

      The note id.

    • vendorId string · uuid

      Note

      The vendor the note is on.

    • authorId string · uuid

      Note

      The user who wrote the note.

    • companyId string · uuid

      Note

      Your company id.

    • channel string

      ⚠️ This enum is not exhaustive; new values may be added in the future.

      One of WEB_APP SLACK

    • content string

      Note

      The note text.

    • createdAt string · date-time

      Note

      When the note was written.

    • updatedAt string · date-time

      Note

      When it was last edited.

  • currency string

    Vendor currency, if configured.

    Note

    The vendor's invoicing currency.

  • contractValue integer · int64

    Vendor contract value in cents.

  • createdBy string · uuid

    ID of the user who created the vendor.

  • status string

    Vendor onboarding/status.

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    Note

    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 ONBOARDING IN_REVIEW ACTIVE FAILED INACTIVE

  • failureContext object

    Failure context when vendor onboarding fails.

    Note

    The error of the last failed step, if any.

    • name string

      The error name

    • type string

      The error type

      ⚠️ This enum is not exhaustive; new values may be added in the future.

      One of BAD_REQUEST UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT UNPROCESSABLE_CONTENT

    • errors array of object

      List of errors providing details about what went wrong

      • type string

        A string code identifying the error type

      • message string

        A human-readable message providing more details about the error

      • path array of string

        Optional 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

      • context object

        Optional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error

  • version integer · int32

    Vendor record version.

  • updatedAt string · date-time

    Timestamp when the vendor was last updated.

  • customProperties array of object

    Custom properties set on the vendor.

    • groupId string · uuid

      ID of the custom property group

    • groupInternalName string

      Internal name of the custom property group

    • values array of object

      List of values. Note that this will be a single value unless the group input type supports multiple values

      • id string · uuid

        Unique identifier for the object

      • groupId string · uuid

        ID of the custom property group

      • groupInternalName string

        Internal name of the custom property group

      • companyId string · uuid

        ID of the company

      • internalName string

        Internal name of the custom property value

      • label string

        Label of the custom property value

      • context string

        Context/description of the custom property value

      • createdAt string · date-time

        Timestamp when the custom property value was created

      • updatedAt string · date-time

        Timestamp when the custom property value was last updated

      • attachment object

        File assigned to an ATTACHMENT property. Null for other property types.

        • id string · uuid

          Attachment ID. Use GET /v1/attachments/{attachmentId}/document to download the file.

        • fileName string

        • contentType string

  • representedCompanyEntityId string · uuid

    ID of the company entity this business partner represents. Set when Light creates the partner for intercompany invoicing, or when a user links an existing one; null for ordinary vendors.

  • lastMtdSpendInGroupCurrency integer · int64

    Last month-to-date spend in group currency.

  • groupCurrency string

    Group currency.

    Note

    Your company's group currency, in which the vendor's group-currency figures are expressed.