Récupère les informations détaillées d'un achat par son identifiant.
Les informations incluent :
- Informations du fournisseur
- Lignes de l'achat (produits/services, quantités, prix)
- Montants (HT, TVA, TTC)
- État et échéances de paiement
GET
/purchase/{uid}
curl \
--request GET 'https://wuro.pro/api/v3.2/purchase/{uid}' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
"purchase": {
"_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"
}
}