Additional Parameters
GET A LIST OF INVOICES WITH ADDITIONAL FIELDS
This will retrieve a list of invoices with the additional fields within the organisation.
Optional parameters |
Type |
Description |
getPractitionerId |
Boolean |
Returns Practitioner Id of the invoice |
getLocationId |
Boolean |
Returns Location Id of the invoice |
getClientgroupId |
Boolean |
Returns the Client Group Id for the given client on the invoice |
getAppointmentId |
Boolean |
Returns the Appointment Id associated with the invoice |
getLockStatus |
Boolean |
Returns the lock status of the invoice |
Example request |
URL: https://sandbox.coreplus.com.au/API/Core/v2/invoice/?getPractitionerId=true&getLocationId=true&getClientgroupId=true&getAppointmentId=true&getLockstatus=true |
Example response |
{
"invoices":[
{
"invoiceId":"27625db9-416f-4e39-96a7-b0a1daa09dc1",
"invoiceNumber":"210202-9",
"clientId":"de2f18ac-6f23-4133-a2bb-4297220cf257",
"generatedAt":"2021-02-02",
"lineItems":[ ],
"practitionerId":"198f2d42-953b-441f-835e-0e4e15422824",
"locationId":"2231d106-3703-4e55-b61e-a3c281171f5f",
"clientGroupId":"d30993cd-74ab-e611-952f-005056a3005d",
"appointmentId": "a3a5540b-89c6-4d5c-a495-4b5c4bbe199f",
"locked":true
},
{
"invoiceId":"cb6a645e-5b94-4587-9a48-7171019f4eb6",
"invoiceNumber":"210202-69",
"clientId":"de2f18ac-6f23-4133-a2bb-4297220cf257",
"generatedAt":"2021-02-02",
"lineItems":[ ],
"practitionerId":"198f2d42-953b-441f-835e-0e4e15422824",
"locationId":"9ff2c4e0-0143-4a43-ba4d-882d362c424d",
"clientGroupId":"d50993cd-74ab-e611-952f-005056a3005d",
"appointmentId": "93c708f9-e4b5-41eb-9d1f-8fa630c4593c",
"locked":false
}
],
"paging":{
"totalRows":2,
"pageNumber":1,
"pageSize":50
},
"statusMessages":[ ]
}
|
GET A LIST OF INVOICES WITH SPECIFIED FIELDS
This 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
- locked
For below fields – they need to be used along with the respective get param
- practitionerId
- locationId
- clientGroupId
- appointmentId
(Ex: invoice/?Field=practitionerId&getPractitionerId=true ) |
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 |