Get all Invoices
Changed onThis endpoint retrieves multiple paginated invoices along with meta and pagination information.
Request
- Base URLhttps://street.co.uk/open-api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Optional related entities to include in the results.
Filter whether the invoice is paid or not
Filter whether the invoice is voided or not
Optional filter to filter between sales and lettings invoices.
Set the number of results per page.
Set the page number.
Response
Get all Invoices.
Example response
{
"data": [
{
"attributes": {
"total_amount": 425000,
"total_amount_vat": 42500
},
"relationships": {
"property": {
"data": {
"id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
}
},
"owner": {
"data": {
"id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
}
},
"line_items": {
"data": [
{
"id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
}
]
}
}
}
],
"included": [
{
"attributes": {
"address": {
"single_line": "19 Lansdowne Road, Monton, Manchester",
"anon_single_line": "Lansdowne Road, Monton, Manchester",
"building_number": "19",
"line_1": "19 Lansdowne Road",
"line_2": "Monton",
"line_3": "Manchester",
"town": "Manchester",
"country": "United Kingdom",
"postcode": "M30 9PA",
"udprn": "28327204",
"geo": {
"lat": 0.2365698,
"lng": 53.023654
}
},
"material_information": {
"council_tax_band": "D"
}
},
"relationships": {
"branch": {
"data": {
"id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
}
}
}
}
],
"meta": {
"pagination": {
"total": 226,
"count": 10,
"per_page": 10,
"current_page": 1,
"total_pages": 23
}
}
}Changes
- info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status
- info
- info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status
- info