{
"_links": {
"customer_aging": "/api/customers/aging/by-id/105",
"customer_overview": "/api/customers/by-id/105/overview",
"customer_statement": "/api/customers/by-id/105/statement?from=2025-10-07&to=2026-10-07",
"next": "/api/customers/by-id/105/recent-activity?lookback_months=12&limit=20&offset=20",
"self": "/api/customers/by-id/105/recent-activity?lookback_months=12&limit=20&offset=0",
"unpaid_invoices": "/api/customers/by-id/105/unpaid-invoices"
},
"cache": {
"age_seconds": 0,
"cached_at": "2026-10-07T14:06:06-04:00",
"expires_at": "2026-10-07T18:06:06-04:00",
"force_refreshed": false,
"key_hash": "sha1:8d2e4b6a1c3f5e7d9b0a2c4e6f8a1b3d5c7e9f0a",
"status": "miss",
"ttl_policy": "current_period_4h",
"ttl_remaining_seconds": 14400
},
"customer": {
"code": "10005",
"id": 105,
"name": "Construction Exemple inc."
},
"items": [
{
"_links": {
"detail": "/api/customers/invoice-ar/by-id/2287"
},
"amount_remaining": 5370,
"amount_signed": 5370,
"credit": 0,
"debit": 5370,
"description": "Rénovation cuisine",
"due_date": "2026-10-28",
"event_date": "2026-09-28",
"is_current_day": false,
"is_paid_in_full": false,
"line_index": 1,
"reference": "PO-88810",
"source": {
"code": "24518",
"id": 2287,
"kind": "invoice_ar"
},
"transaction_type": {
"code": "invoice",
"id": 3,
"label": "Facture"
}
},
{
"_links": {
"detail": "/api/customers/payments/by-id/6120"
},
"amount_signed": -2414.48,
"credit": 2414.48,
"debit": 0,
"event_date": "2026-09-15",
"is_current_day": false,
"line_index": 2,
"reference": "Chèque 3381",
"source": {
"code": "4471",
"id": 6120,
"kind": "customer_payment"
},
"transaction_type": {
"code": "payment",
"id": 1,
"label": "Paiement"
}
}
],
"lookback": {
"from": "2025-10-07",
"months": 12,
"to": "2026-10-07"
},
"metadata": {
"extracted_at": "2026-10-07T14:06:06-04:00",
"has_more": true,
"limit_applied": 20,
"next_offset": 20,
"offset_applied": 0,
"ordering": "event_date_desc",
"organisation_id": "construction_demo",
"scope": "non_archived_only",
"sdk_indexes_used": {
"customer_payment": 8,
"invoice_ar": 6
}
},
"summary": {
"credits_count": 5,
"deposits_count": 2,
"invoices_count": 18,
"limit_applied": 20,
"other_count": 0,
"payments_count": 22,
"total_events": 47,
"truncated": true
}
}