Additional Parameters
GET A LIST OF INVOICES WITH OPTIONAL FIELDS
This is an invoice filter for the Get invoice list which will retrieve a list of invoices with the specified fields within the organisation.
| Optional parameters |
Type |
Description |
| invoice fields |
String |
The following invoice fields can be used
- invoiceId
- invoiceNumber
- clientId
- generatedAt
- amountOwing
|
| Line item fields |
string |
The following line item fields can be used
- lineItems.lineItemId
- lineItems.productId
- lineItems.description
- lineItems.itemNumber
- lineItems.unitAmount
- lineItems.taxAmount
- lineItems.lineAmount
- lineItems.quantity
|
| Example request |
URL: https://sandbox.coreplus.com.au/API/Core/v2/invoice/?Field=invoiceNumber&Field=lineItems.itemNumber |
| Example response |
{
"invoices":[
{
"invoiceId":"0c1f5bab-da0f-4423-ac10-6bc2836956cc",
"invoiceNumber":"171214-1",
"lineItems":[
{
"lineItemId":"13dc9e61-85d1-41a1-b473-3d704128b167",
"itemNumber":"123"
}
]
},
{
"invoiceId":"c383872b-3841-4af0-9295-c2312cb910de",
"invoiceNumber":"171213-1",
"lineItems":[
{
"lineItemId":"fb34e43c-58ba-48cb-bf1b-d158765376a0",
"itemNumber":"756298"
}
]
}
],
"paging":{
"totalRows":2,
"pageNumber":1,
"pageSize":50
},
"statusMessages":[
]
}
|
Get A List of Invoices Updated After Date
This is an invoice update filter for the Get invoice list which will retrieve a list of invoices within the organisation only where the invoice details have been updated after a specified date and time. The filter parameter is part of the URL on the invoice get call.
| URL |
https://<server domain name>/api/core/<version>/invoice/?updatedSince=<Url encoded date time stamp with timezone> |
| Description |
Retrieve all invoices that have had iinvoice details updated since the specified date time stamp |
| Example request |
URL: https://sandbox.coreplus.com.au/API/Core/v2/invoice/?updatedSince=2017-06-30%2014:18:00%2B1000
The date time stamp is url encoded so in the above example
?updatedSince=2017-06-30%2014:18:00%2B1000 translates to
?updatedSince=2017-06-30 14:18:00+1000
See http://www.url-encode-decode.com/ for an encoding decoding example
The returned result will be the same as a normal invoice Get call except it will be filtered by the requested date time stamp |