Light APIv1.0.0

API / Reference / Vendors

List vendors

GET https://api.light.inc/v1/vendors

Returns a paginated list of vendors

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

Query parameters

  • sort string

    Sort string in the format field:direction. To provide multiple sort fields, separate them with commas.

    Available directions: asc, desc.

    Available fields: name, spendLastMtd, createdAt, updatedAt.

  • filter string

    Filter string in the format field:operator:value. To provide multiple filters, separate them with commas.

    Available operators: eq, ne, in, not_in, gt, gte, lt, lte.

    • For in and not_in operators, provide multiple values separated by the pipe character (|).

    Available fields: id, status, type, ledgerAccountId, ledgerTaxId, spendLastMtd, createdAt, updatedAt.

  • searchTerm string

    Search term to filter results by. Performs a case-insensitive partial match across searchable fields.

  • limit integer · int32

    Maximum number of items to return. Default is 50, maximum is 200.

  • offset integer · int64deprecated

    Number of items to skip before starting to collect the result set. Deprecated, use 'cursor' instead.

  • cursor string

    The cursor position to start returning results from. To opt-in into cursor-based pagination, provide 0 for the initial request. For subsequent requests, use nextCursor and prevCursor from the previous response to navigate. Cursor values are opaque and should not be constructed manually.

Response

  • records array of object

    List of records for the current page

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

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

    • 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

      Vendor phone number.

      • countryCode string

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

        One of UNDEFINED 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

    • website string

      Vendor website.

    • country string

      Vendor country.

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

      One of UNDEFINED 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 UNDEFINED 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).

    • 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

      • vendorId string · uuid

      • authorId string · uuid

      • companyId string · uuid

      • channel string

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

        One of WEB_APP SLACK

      • content string

      • createdAt string · date-time

      • updatedAt string · date-time

    • currency string

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

      One of ONBOARDING IN_REVIEW ACTIVE FAILED

    • failureContext object

      Failure context when vendor onboarding fails.

      • 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

    • lastMtdSpendInGroupCurrency integer · int64

      Last month-to-date spend in group currency.

    • groupCurrency string

  • hasMore boolean

    Boolean flag indicating if there are more records available

  • total integer · int64deprecated

    Total number of records (only for offset pagination). This field is not guaranteed to be returned and only available for offset pagination, please do not rely on it and migrate to cursor pagination.

  • nextCursor string

    Cursor for fetching the next page (only for cursor pagination)

  • prevCursor string

    Cursor for fetching the previous page (only for cursor pagination)