Invoice Items API

The Invoice Items API allows you to create, update, and manage individual items within an invoice.

Contents

Base URL

https://api.billover.com/v1/invoices/{invoice_uid}/items/

Note

Replace {invoice_uid} with the actual UUID of the parent invoice.

Field Definitions

Common Fields

FieldTypeDescriptionRequired
uidUUIDUnique identifier for the itemRead-only
namestringName of the itemNo
descriptionstringDescription of the itemNo
quantitydecimal(10,3)Quantity of the itemNo
unitstringUnit of measurement (k: Kilogram, p: Piece, m: Meter, l: Liter)No
total_pricedecimal(10,2)Total price of the item (including VAT)No
vat_ratedecimal(5,2)VAT rate percentageNo

Unit Values

ValueDescription
kKilogram
pPiece
mMeter
lLiter

Create Invoice Item

Create a new item for a specific invoice.

POST /v1/invoices/{invoice_uid}/items/

Request Body

{
    "name": "Product A",
    "description": "Premium quality product",
    "quantity": "2.000",
    "unit": "p",
    "total_price": "100.00",
    "vat_rate": "18.00"
}

Response

{
    "uid": "67df8b92-ed61-4796-b5c2-9505bf9d4b6a",
    "name": "Product A",
    "description": "Premium quality product",
    "quantity": "2.000",
    "unit": "p",
    "total_price": "100.00",
    "vat_rate": "18.00"
}

Update Invoice Item

Update an existing item of a specific invoice.

PUT /v1/invoices/{invoice_uid}/items/{item_uid}

Request Body

{
    "name": "Updated Product A",
    "quantity": "3.000",
    "unit": "k",
    "total_price": "150.00"
}

Response

{
    "uid": "67df8b92-ed61-4796-b5c2-9505bf9d4b6a",
    "name": "Updated Product A",
    "description": "Premium quality product",
    "quantity": "3.000",
    "unit": "k",
    "total_price": "150.00",
    "vat_rate": "18.00"
}

Delete Invoice Item

Delete an existing item from a specific invoice.

DELETE /v1/invoices/{invoice_uid}/items/{item_uid}

Response

HTTP/1.1 204 No Content

Example Usage

Create an Invoice Item

curl -X POST \
  https://api.billover.com/v1/invoices/a1b2c3d4-e5f6-g7h8-i9j0/items/ \
  -H 'Api-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Product A",
    "description": "Premium quality product",
    "quantity": "2.000",
    "unit": "p",
    "total_price": "100.00",
    "vat_rate": "18.00"
}'

Update an Invoice Item

curl -X PUT \
  https://api.billover.com/v1/invoices/a1b2c3d4-e5f6-g7h8-i9j0/items/67df8b92-ed61-4796-b5c2-9505bf9d4b6a \
  -H 'Api-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Updated Product A",
    "quantity": "3.000",
    "unit": "k",
    "total_price": "150.00"
}'

Delete an Invoice Item

curl -X DELETE \
  https://api.billover.com/v1/invoices/a1b2c3d4-e5f6-g7h8-i9j0/items/67df8b92-ed61-4796-b5c2-9505bf9d4b6a \
  -H 'Api-Key: YOUR_API_KEY'