{
"_links": {
"self": "/api/suppliers/by-id/749/recent-activity?lookback_months=12&limit=20&offset=0",
"supplier_aging": "/api/suppliers/aging/by-id/749",
"supplier_overview": "/api/suppliers/by-id/749/overview",
"supplier_statement": "/api/suppliers/by-id/749/statement?from=2025-10-07&to=2026-10-07",
"unpaid_invoices": "/api/suppliers/by-id/749/unpaid-invoices"
},
"cache": {
"age_seconds": 0,
"cached_at": "2026-10-07T14:06:30-04:00",
"expires_at": "2026-10-07T18:06:30-04:00",
"force_refreshed": false,
"key_hash": "sha1:5b7d9f1a3c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d",
"status": "miss",
"ttl_policy": "current_period_4h",
"ttl_remaining_seconds": 14400
},
"items": [
{
"_links": {
"detail": "/api/suppliers/invoices-ap/by-id/34789"
},
"amount_remaining": 2532.06,
"amount_signed": 2532.06,
"credit": 0,
"debit": 2532.06,
"description": "Matériaux chantier rue des Érables",
"due_date": "2026-10-28",
"event_date": "2026-09-28",
"is_current_day": false,
"is_paid_in_full": false,
"line_index": 1,
"reference": "FC-2026-0412",
"source": {
"code": "1145",
"id": 34789,
"kind": "invoice_ap"
},
"transaction_type": {
"code": "invoice",
"id": 2,
"label": "Facture"
}
},
{
"_links": {
"detail": "/api/suppliers/payments/by-id/6932"
},
"amount_signed": -1840.25,
"credit": 1840.25,
"debit": 0,
"event_date": "2026-09-15",
"is_current_day": false,
"line_index": 2,
"source": {
"code": "4439",
"id": 6932,
"kind": "payment_ap"
},
"transaction_type": {
"code": "direct_payment",
"id": 2,
"label": "Paiement direct"
}
}
],
"lookback": {
"from": "2025-10-07",
"months": 12,
"to": "2026-10-07"
},
"metadata": {
"extracted_at": "2026-10-07T14:06:30-04:00",
"has_more": false,
"limit_applied": 20,
"offset_applied": 0,
"ordering": "event_date_desc",
"organisation_id": "construction_demo",
"scope": "non_archived_only",
"sdk_indexes_used": {
"invoice_ap": 6,
"payment_ap": 1
}
},
"summary": {
"credits_count": 0,
"interest_count": 0,
"invoices_count": 6,
"limit_applied": 20,
"other_count": 1,
"payments_count": 6,
"total_events": 13,
"truncated": false
},
"supplier": {
"code": "QUINC01",
"id": 749,
"name": "Quincaillerie Fictive ltée"
}
}