Get invoices
Changed onGet all invoices for the company. Use the query parameters to filter and navigate through the results.
Tax reduction: Personal numbers in taxReduction.deductionPeople have the last 4 digits masked when the invoice was created by a different integration. Masked values are returned as YYYYMMDD-XXXX.
Scope: invoices:read
Request
- Base URLhttps://api.bokio.se/v1
- URLhttps://api.bokio.se/v1/companies/{companyId}/invoices
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /authorizeClient credentialsToken URL: /token scopes: invoices:read
Query parameters
Page number
Number of items per page
Return only invoices with at least one line item assigned to this project. When combined with query, both filters must match the invoice.
Optional query to filter the data set with supported fields listed below and available operations. View documentation for filtering on metadata here.
| Field | Type |
|---|---|
| type | string |
| customerRef.id | uuid |
| customerRef.customerNumber | string |
| orderNumberReference | string |
| projectReference | string |
| buyerReference | string |
| contractReference | string |
| currency | string |
| totalAmount | number |
| status | string |
| invoiceDate | date |
| dueDate | date |
| metadata | string |
Response
Invoices found
Example response
{
"totalItems": 1,
"totalPages": 1,
"currentPage": 1,
"items": [
{
"customerRef": {
"id": "d4e5f6a7-b8c9-0123-def1-234567890123",
"name": "Acme AB",
"customerNumber": "CUST-001"
},
"lineItems": [
{
"id": 1,
"itemRef": {
"id": "55c899c5-82b2-47fa-9c51-e35fc9b26443",
"description": "Installation work"
},
"description": "Installation work",
"itemType": "salesItem",
"productType": "services",
"unitType": "custom",
"customUnitType": "session",
"quantity": 10,
"unitPrice": 500,
"taxRate": 25,
"bookkeepingAccountNumber": 3389,
"discount": {
"type": "percentage",
"value": 10
},
"reverseChargeType": "construction",
"projectRef": {
"id": "4f8f6da6-4cbc-4bfc-8d23-67d5f6f2dd9b",
"projectName": "Website Redesign",
"projectNumber": "P-001"
},
"costCenterRef": {
"tagId": "7e5ee25f-1f5d-4e47-a26f-5d2d20fbef90",
"tagName": "Nord"
}
}
],
"billingAddress": {
"line1": "10 Downing Street",
"line2": null,
"city": "London",
"postalCode": "SW1A 2AA",
"country": "GB",
"countrySubdivision": "ENG"
},
"deliveryAddress": {
"line1": "Älvsborgsvägen 10",
"line2": null,
"city": "Göteborg",
"postalCode": "123 45",
"country": "SE"
},
"taxReduction": {
"type": "rot",
"description": "Bathroom renovation",
"propertyType": "housingDesignation",
"tenantOrgNumber": "7164009068",
"apartmentNumber": "1001",
"deductionAmount": 1500,
"status": "draft",
"deductionPeople": [
{
"personalNumber": "19850101-1234",
"deductionAmount": 1500
}
]
},
"metadata": {
"project": "Website Redesign",
"department": "IT",
"externalId": "EXT-INV-2024-001"
}
}
]
}Changes
- warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
added the new
customenum value to the///////response property for the response status - info
added the new optional
queryrequest parameterprojectId - 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
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
added to the
///response propertyallOflist for the response status
- warning