List invoices
GET/v1/invoices
List invoices for the active tenant.
Modèle de données
Cette opération porte sur l'entité Invoice (invoice). Les 51 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.
-
Champs obligatoires :
partyId,status -
Gérés par le serveur :
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy,invoiceNumber,lockedAt,lockedBy,contentHash,recordAddressSnapshot,deliveryAddressSnapshot,weclappId,weclappBaseUrl,externalVersion,syncedAt,customerPaymentReportedAt,customerPaymentReportedBy,customerPaymentReference,projectId. La plateforme attribue ces champs ; ils sont ignorés dans la requête.
Paramètres de requête
| Nom | Type | Description |
|---|---|---|
cursor | string | |
limit | number | |
includeDeleted | boolean |
Exemple
curl -X GET https://api.codemeta-os.de/v1/invoices \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.invoices.list();Codes de réponse
| HTTP | Signification |
|---|---|
200 |
Default Response |