Get a tax code
https://api.light.inc/v1/tax-codes/{id}
Returns a single tax code by ID, whatever its status or company entity assignments.
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
-
idstring · uuidrequired
Response
-
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