supplier-invoices
[Preview] Add a line item to a supplier invoice
Changed onAdds a line item to an existing supplier invoice. The supplier invoice must have an upload connected before line items can be added.
Scope: supplier-invoices:write
post/companies/{companyId}/supplier-invoices/{supplierInvoiceId}/line-items
Request
- Base URLhttps://api.bokio.se/v1
- URLhttps://api.bokio.se/v1/companies/{companyId}/supplier-invoices/{supplierInvoiceId}/line-items
- AuthHTTP bearer
Request body
Example request
{
"id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"description": "Consulting",
"quantity": 10,
"unitPrice": 1000,
"unitType": "hour",
"taxRate": 25,
"projectRef": {
"id": "4f8f6da6-4cbc-4bfc-8d23-67d5f6f2dd9b",
"projectName": "Website Redesign",
"projectNumber": "P-001"
},
"costCenterRef": {
"tagId": "7e5ee25f-1f5d-4e47-a26f-5d2d20fbef90",
"tagName": "Nord"
}
}Response
Line item added
Example response
{
"id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"description": "Consulting",
"quantity": 10,
"unitPrice": 1000,
"unitType": "hour",
"taxRate": 25,
"projectRef": {
"id": "4f8f6da6-4cbc-4bfc-8d23-67d5f6f2dd9b",
"projectName": "Website Redesign",
"projectNumber": "P-001"
},
"costCenterRef": {
"tagId": "7e5ee25f-1f5d-4e47-a26f-5d2d20fbef90",
"tagName": "Nord"
}
}Changes
- info
endpoint added
- info