{
"invoice": {
"id": 34269,
"number": "20260301",
"type": {
"id": 2,
"code": "invoice",
"label": "Facture"
},
"supplier": {
"id": 416,
"code": "QUINFICT",
"name": "Quincaillerie Fictive ltée"
}
},
"invoice_date": "2026-02-02",
"due_date": "2026-03-04",
"amount_invoiced": 695.23,
"filter": {
"include_archived": false
},
"summary": {
"allocations_count": 2,
"total_allocated": 695.23,
"total_discount": 0,
"amount_invoiced": 695.23,
"is_fully_allocated": true,
"remaining_to_allocate": 0,
"first_allocation_date": "2026-03-02",
"last_allocation_date": "2026-06-01",
"currency": "CAD"
},
"items": [
{
"allocation": {
"line_id": 34748,
"unique_code": "53382"
},
"allocation_date": "2026-03-02",
"amount_applied": 463.51,
"discount_applied": 0,
"amount_total": 463.51,
"payment": {
"id": 6948,
"number": "9005336",
"payment_type": {
"id": 1,
"code": "check",
"label": "Chèque"
},
"payment_date": "2026-03-02",
"is_archived": false
},
"is_current_day": false,
"_links": {
"payment_detail": "/api/suppliers/payments/by-id/6948",
"payment_invoices_paid": "/api/suppliers/payments-ap/by-id/6948/invoices-paid"
}
},
{
"allocation": {
"line_id": 35591,
"unique_code": "54350"
},
"allocation_date": "2026-06-01",
"amount_applied": 231.72,
"discount_applied": 0,
"amount_total": 231.72,
"payment": {
"id": 7151,
"number": "9005374",
"payment_type": {
"id": 1,
"code": "check",
"label": "Chèque"
},
"payment_date": "2026-06-01",
"is_archived": false
},
"is_current_day": false,
"_links": {
"payment_detail": "/api/suppliers/payments/by-id/7151",
"payment_invoices_paid": "/api/suppliers/payments-ap/by-id/7151/invoices-paid"
}
}
],
"metadata": {
"organisation_id": "construction_demo",
"extracted_at": "2026-10-07T14:06:16-04:00",
"sdk_indexes_used": {
"payment_ap_line": 1,
"payment_ap": "get_card",
"invoice_ap": "get_card"
},
"scope": "non_archived_only"
},
"cache": {
"status": "miss",
"key_hash": "sha1:5d0c2a7e91f4b3c86a1e0d7f2b9c4e1a3f6d8b20",
"cached_at": "2026-10-07T14:06:16-04:00",
"expires_at": "2026-10-07T18:06:16-04:00",
"age_seconds": 0,
"ttl_remaining_seconds": 14400,
"ttl_policy": "current_period_4h",
"force_refreshed": false
},
"_links": {
"self": "/api/suppliers/invoice-ap/by-id/34269/payment-allocations?include_archived=false",
"invoice_detail": "/api/suppliers/invoices-ap/by-id/34269",
"supplier_overview": "/api/suppliers/by-id/416/overview",
"supplier_unpaid_invoices": "/api/suppliers/by-id/416/unpaid-invoices"
}
}