Saltar al contenido principal
GET

Listado de cuentas de gastos

Scope:accounting:expenses-accounts.read
https://api.holded.com/api/v2/expenses-accounts

Devuelve la lista de todas las cuentas de gastos de tu cuenta.

Petición

python
import requests

url = "https://api.holded.com/api/v2/expenses-accounts"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Respuestas

Respuesta

json
{
  "items": [
    {
      "id": "507f1f77bcf86cd799439011",
      "name": "Office Expenses",
      "color": "#FF5733",
      "account_num": 6290001,
      "archived": false,
      "description": "string"
    }
  ]
}

Respuestas exitosas

200Listado de cuentas de gastosapplication/json
object
items[]object[]
idstring

Unique identifier of the accounting account

namestring

Display name of the accounting account

colorstring

Hex color code used in the UI

account_numinteger

Numeric accounting code from the chart of accounts

archivedboolean

Whether the account is archived

descriptionstring | null

Description of the accounting account

Respuestas de error

401API key inválida o no proporcionadaapplication/json
403Permisos insuficientesapplication/json