{
"_links": {
"aging": "/api/suppliers/aging/by-id/211",
"overview": "/api/suppliers/by-id/211/overview",
"self": "/api/suppliers/by-id/211/statement?from=2026-01-01&to=2026-05-31"
},
"cache": {
"age_seconds": 0,
"cached_at": "2026-05-12T09:12:00-04:00",
"expires_at": "2026-05-12T13:12:00-04:00",
"force_refreshed": false,
"key_hash": "sha1:3f7a1c9e5b2d8f4a6c0e1b3d5f7a9c2e4b6d8f0a",
"status": "miss",
"ttl_policy": "current_period_4h",
"ttl_remaining_seconds": 14400
},
"closing_balance": 2450,
"lines": [
{
"_links": {
"detail": "/api/suppliers/invoices-ap/by-id/4501"
},
"amount_paid": 3200,
"amount_remaining": 0,
"credit": 0,
"date": "2026-01-08",
"debit": 3200,
"description": "Quincaillerie de chantier",
"due_date": "2026-02-07",
"is_current_day": false,
"is_paid_in_full": true,
"line_index": 1,
"reference": "BL-22011",
"running_balance": 4450,
"source": {
"code": "F-2026-0091",
"id": 4501,
"kind": "invoice_ap"
},
"transaction_type": {
"code": "invoice",
"id": 2,
"label": "Facture"
}
},
{
"_links": {
"detail": "/api/suppliers/payments/by-id/1102"
},
"credit": 4450,
"date": "2026-01-22",
"debit": 0,
"is_current_day": false,
"line_index": 2,
"reference": "CHQ-001245",
"running_balance": 0,
"source": {
"code": "001245",
"id": 1102,
"kind": "payment_ap"
},
"transaction_type": {
"code": "check",
"id": 1,
"label": "Chèque"
}
},
{
"_links": {
"detail": "/api/suppliers/invoices-ap/by-id/4562"
},
"amount_remaining": 2600,
"credit": 0,
"date": "2026-03-15",
"debit": 2600,
"description": "Matériaux de mars",
"due_date": "2026-04-14",
"is_current_day": false,
"is_paid_in_full": false,
"line_index": 3,
"reference": "BL-22307",
"running_balance": 2600,
"source": {
"code": "F-2026-0148",
"id": 4562,
"kind": "invoice_ap"
},
"transaction_type": {
"code": "invoice",
"id": 2,
"label": "Facture"
}
},
{
"_links": {
"detail": "/api/suppliers/invoices-ap/by-id/4570"
},
"amount_paid": 150,
"amount_remaining": 0,
"credit": 150,
"date": "2026-03-20",
"debit": 0,
"description": "Crédit pour retour de matériel",
"is_current_day": false,
"is_paid_in_full": true,
"line_index": 4,
"reference": "BL-22307",
"running_balance": 2450,
"source": {
"code": "F-2026-0155",
"id": 4570,
"kind": "invoice_ap"
},
"transaction_type": {
"code": "credit",
"id": 1,
"label": "Crédit"
}
}
],
"metadata": {
"extracted_at": "2026-05-12T09:12:00-04:00",
"organisation_id": "construction_exemple",
"scope": "non_archived_only",
"sdk_indexes_used": {
"invoice_ap": 6,
"payment_ap": 1
}
},
"opening_balance": 1250,
"period": {
"from": "2026-01-01",
"to": "2026-05-31"
},
"supplier": {
"code": "F-0045",
"id": 211,
"name": "Quincaillerie Fictive ltée"
},
"totals": {
"credits": 4600,
"credits_count": 1,
"debits": 5800,
"invoices_count": 2,
"net_change": 1200,
"other_count": 0,
"payments_count": 1
}
}