Tiime
SDK TypeScript

Labels

Labels comptables personnalisés, standards et tags

Accès via client.labels.

list

Récupérer les labels personnalisés de l'entreprise.

labels.ts
const labels = await client.labels.list();
// [{ id: 1, name: "Fournitures bureau", color: "#4CAF50" }, ...]

Retour : Promise<Label[]>

standard

Récupérer les labels standards du plan comptable.

labels.ts
const standard = await client.labels.standard();

Retour : Promise<Label[]>

tags

Récupérer les tags avec leurs détails.

labels.ts
const tags = await client.labels.tags();
// [{ id: 1, label: "Projet A", tag_detail: { id: 10, label: "Projet A" } }, ...]

Retour : Promise<Tag[]>

Type Label

ChampTypeDescription
idnumberIdentifiant unique
namestringNom du label
colorstringCouleur (hex)

Type Tag

ChampTypeDescription
idnumberIdentifiant unique
labelstringLibellé du tag
tag_detail{ id, label }Détails du tag (si expand: "tag_detail")

On this page