List tax codes
https://api.light.inc/v1/tax-codes
Returns a cursor-paginated list of the company's tax codes, the ones documents reference as taxCodeId. Only active tax codes are returned unless the request filters on status. With a filter on id, a tax code assigned to a company entity only inactively is returned as well.
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
-
sortstringSort string in the format
field:direction. To provide multiple sort fields, separate them with commas.Available directions:
asc,desc.Available fields:
code,context,type,rate,country,status,createdAt. -
filterstringFilter 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
inandnot_inoperators, provide multiple values separated by the pipe character (|).
Available fields:
id,companyEntityId,code,sourceType,status,type,createdAt. - For
-
searchTermstringMatches against the tax code's code or name
-
limitinteger · int32Maximum number of items to return. Default is 50, maximum is 200.
-
cursorstringThe cursor position to start returning results from. Omit it, or provide
0, for the initial request. For subsequent requests, usenextCursorfrom the previous response to navigate. Cursor values are opaque and should not be constructed manually. This endpoint paginates by cursor only and has nooffsetparameter.
Response
-
recordsarray of objectList of records for the current page
-
idstring · uuidUnique identifier for the tax code. Documents reference it as
taxCodeId -
companyIdstring · uuidID of the company
-
codestringShort code of the tax code, unique within the company
-
namestringDisplay name of the tax code
-
ratenumberTax rate as a fraction:
0.25is 25%. Null for an exempt tax code -
typestringWhether the tax code applies to purchases (bills) or to sales (sales invoices)
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
PURCHASESALES -
statusstringStatus of the tax code.
DISABLED_EXTERNALLYis set by an ERP sync when the code was disabled in the ERP⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACTIVEDISABLEDDISABLED_EXTERNALLY -
sourceTypestringWhere the tax code is maintained.
SYNCED_EXTERNALLYmeans the code mirrors one in the company's ERP;INTERNALmeans it was created in Light⚠️ This enum is not exhaustive; new values may be added in the future.
One of
INTERNALSYNCED_EXTERNALLY -
countrystringCountry whose tax rules the tax code follows
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
taxCategorystringWhether the tax code is for goods or for services. Null when not set
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
GOODSSERVICES -
edifactCodestringDuty or tax category code from the UNCL5305 code list, used on electronic invoices (https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5305/)
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
AEEGKLMOSZ -
contextstringFree-text guidance describing when the tax code applies
-
baseTaxTagobjectTax tag the taxable base of a line with this tax code is reported under on the tax report
-
idstring · uuidUnique identifier for the tax tag
-
labelstringLabel of the tax tag, as it appears on the tax report
-
countrystringCountry whose tax report the tax tag belongs to
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW
-
-
companyEntityIdsarray of string · uuidCompany entities the code may be used in
-
createdAtstring · date-timeTimestamp when the tax code was created
-
updatedAtstring · date-timeTimestamp when the tax code was last updated
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
nextCursorstringCursor for fetching the next page
-
prevCursorstringCursor for fetching the previous page