Récupère la liste de tous les achats/factures fournisseurs avec pagination et filtres.
Les achats permettent de suivre les dépenses de l'entreprise (factures fournisseurs, notes de frais, etc.).
États disponibles
- draft : Brouillon (pas encore validé)
- waiting : En attente de paiement
- to_pay : À payer
- paid : Payé
- notpaid : Impayé (échéance dépassée)
- inactive : Supprimé (soft delete)
Query parameters
-
Nombre maximum d'achats à retourner
Default value is
20. -
Nombre d'achats à ignorer (pagination)
Default value is
0. -
Champ et direction de tri (ex. "date:-1" pour les plus récents)
-
Filtrer par état de l'achat
Values are
draft,waiting,paid,to_pay,notpaid, orinactive. -
Filtrer par fournisseur (ID du fournisseur)
GET
/purchases
curl \
--request GET 'https://wuro.pro/api/v3.2/purchases' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
"purchases": [
{
"_id": "string",
"number": "string",
"invoiceNumber": "string",
"date": "2025-05-04T09:42:00Z",
"dateRecord": "2025-05-04T09:42:00Z",
"company": "string",
"supplier": "string",
"supplier_name": "string",
"supplier_code": "string",
"supplierTvaNumber": "string",
"supplierReverseCharge": false,
"total_ht": 42.0,
"total_ttc": 42.0,
"total_tva": 42.0,
"base_currency": "EUR",
"currency": "EUR",
"state": "waiting",
"type": "purchase",
"lines": [
{
"title": "string",
"totalHt": 42.0,
"totalTva": 42.0,
"totalTtc": 42.0,
"tvaRate": 42.0,
"tva": "string",
"type": "product"
}
],
"payments": [
{
"mode": "string",
"method_name": "string",
"amount": 42.0,
"currency": "string",
"date": "2025-05-04T09:42:00Z",
"check_number": "string"
}
],
"payment_date": "2025-05-04T09:42:00Z",
"payment_expiry_date": "2025-05-04T09:42:00Z",
"payment_methods": [
"string"
],
"categories": [
"string"
],
"VatRates": [
{
"amount": 42.0,
"rate": "string",
"total": 42.0
}
],
"url": "string",
"exported": false,
"exportedFEC": false,
"exportedPDF": false,
"bank_reconciliations": [
"string"
],
"bank_reconciliation_status": "unreconciliated",
"bank_reconciliate_total": 42.0,
"creditForPurchase": "string",
"analytical_code": "string",
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z"
}
],
"total": 42,
"limit": 42,
"skip": 42
}