Description: Return a list of invoices
Example: https://api.totalsynergy.com/api/v2/Organisation/testOrg/Invoices
Optional Parameters:
OrganisationId |
long value - id of organisation to filter invoices |
ProjectId |
long value - id of project to filter invoices |
ContactId |
long value - fitler invoices to a contact's id |
ContactEmail |
string value - filter invoices to a contact's email |
Response:
{
"totalItems": 1,
"items": [
{
"id": 105,
"organisationId": 470,
"projectId": 1358,
"projectNumber": "SYD000020",
"projectName": "Zen Town Houses - Sydney Rd Queenscliff",
"status": "CANCELLED",
"statusDisplay": "CANCELLED",
"invoiceNumber": null,
"invoiceNumberDisplay": "DRAFT",
"numberingId": 699,
"prefix": "I",
"number": 0,
"numberFormatted": "0000000",
"invoiceType": "I",
"text": null,
"totalExTax": 0,
"totalExTaxDisplay": null,
"totalTax": 0,
"totalTaxDisplay": null,
"totalIncTax": 0,
"totalIncTaxDisplay": null,
"date": "2016-03-07T00:00:00",
"dateDisplay": null,
"from": "2016-03-01T00:00:00",
"fromDisplay": null,
"to": "2016-03-31T00:00:00",
"toDisplay": null,
"dueDate": "2016-04-06T00:00:00",
"dueDateDisplay": null,
"invoiceTermId": 716,
"invoiceTerm": "30 Days",
"invoiceStages": [],
"invoiceContacts": [
{
"id": 0,
"contactId": 35881,
"contact": "Springfield Council",
"contactUniqueId": "SPCL",
"attentionContactId": 35881,
"attentionContact": "Springfield Council",
"attentionContactUniqueId": "SPCL",
"addressId": 8189,
"address": null,
"address1": null,
"address2": null,
"town": null,
"state": null,
"zipCode": null,
"country": null,
"invoicePercent": 100
}
],
"finalize": false
}
]
}