supplier-invoices

[Preview] Add a line item to a supplier invoice

Changed on

Adds 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 URL
    https://api.bokio.se/v1
  • URL
    https://api.bokio.se/v1/companies/{companyId}/supplier-invoices/{supplierInvoiceId}/line-items
  • Auth
    HTTP bearer

Request body

idstring uuid

Server-generated identifier. On update, include id to match an existing line item; omit it to add a new line item.

descriptionstring required
quantitynumber double
unitPricenumber double required
unitTypestring
taxRatenumber double nullable

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

idstring uuid

Server-generated identifier. On update, include id to match an existing line item; omit it to add a new line item.

descriptionstring required
quantitynumber double
unitPricenumber double required
unitTypestring
taxRatenumber double nullable

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