{
"invoice": {
"id": 0,
"number": "string",
"type": {
"id": 0,
"code": "string",
"label": "string"
},
"supplier": {
"id": 0,
"code": "string",
"name": "string"
}
},
"invoice_date": "2019-08-24",
"due_date": "2019-08-24",
"amount_invoiced": 0,
"filter": {
"include_archived": true
},
"summary": {
"allocations_count": 0,
"total_allocated": 0,
"total_discount": 0,
"amount_invoiced": 0,
"is_fully_allocated": true,
"remaining_to_allocate": 0,
"first_allocation_date": "2019-08-24",
"last_allocation_date": "2019-08-24",
"currency": "CAD"
},
"items": [
{
"allocation": {
"line_id": 0,
"unique_code": "string"
},
"allocation_date": "2019-08-24",
"amount_applied": 0,
"discount_applied": 0,
"amount_total": 0,
"payment": {
"id": 0,
"number": "string",
"payment_type": {
"id": 0,
"code": "string",
"label": "string"
},
"payment_date": "2019-08-24",
"reference": "string",
"is_archived": false
},
"is_current_day": true,
"_links": {}
}
],
"metadata": {
"organisation_id": "string",
"extracted_at": "2019-08-24T14:15:22.123Z",
"sdk_indexes_used": {},
"scope": "string"
},
"cache": {
"status": "string",
"key_hash": "string",
"cached_at": "2019-08-24T14:15:22.123Z",
"expires_at": "2019-08-24T14:15:22.123Z",
"age_seconds": 0,
"ttl_remaining_seconds": 0,
"ttl_policy": "string",
"force_refreshed": true
},
"_links": {}
}