GET
Llistat d'impostos
Scope:
accounting:taxes.readhttps://api.holded.com/api/v2/taxesRetorna la llista completa d'impostos configurats en el teu compte.
Petició
python
import requests
url = "https://api.holded.com/api/v2/taxes"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
json
{
"items": [
{
"id": "string",
"name": "string",
"amount": "string",
"scope": "string",
"key": "string",
"group": "string",
"type": "string",
"items": [
"string"
],
"status": false,
"visible": false
}
]
}Respostes exitoses
200Llistat d'impostosapplication/jsonobject
items[]object[]
idstring
Tax unique identifier. Use this value in the `taxes` array when creating products or document line items.
namestring
Tax name
amountstring | null
Tax percentage as string for precision
scopestring | null
Tax scope
keystring
Tax key identifier
groupstring
Tax group
typestring
Tax type
items[]string[]
Tax sub-item keys
statusboolean
Whether the tax is active
visibleboolean
Whether the tax is visible
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json429Límit de sol·licituds exceditapplication/json