Skip to main content
PATCH
/
invoices
/
{id}
/
line-items
/
{line_item_id}
Update an invoice line item
curl --request PATCH \
  --url https://api.alguna.io/invoices/{id}/line-items/{line_item_id} \
  --header 'Alguna-Version: <alguna-version>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>"
}
'
{
  "description": "<string>",
  "id": "<string>",
  "is_editable": true,
  "quantity": "1",
  "total_price": "100.00",
  "unit_price": "100.00",
  "billing_period_end": "2023-11-07T05:31:56Z",
  "billing_period_start": "2023-11-07T05:31:56Z",
  "product_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://alguna.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Headers

Alguna-Version
enum<string>
required
Available options:
2026-04-01
Idempotency-Key
string

A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.

Maximum string length: 255
Example:

"ik_a1b2c3d4e5f6"

Path Parameters

id
string
required

Unique identifier for the invoice

line_item_id
string
required

Unique identifier for the line-item

Body

application/json
description
string | null

Description of the line item

Response

Success

description
string
required

Description of the line item

id
string
required

Unique identifier for the line item

is_editable
boolean
required

Whether this line item can be manually edited

quantity
string
required

Quantity of the line item

Example:

"1"

total_price
string
required

Total price before tax (quantity x unit price)

Example:

"100.00"

unit_price
string
required

Unit price of the line item

Example:

"100.00"

billing_period_end
string<date-time> | null

End of the billing period for this line item

billing_period_start
string<date-time> | null

Start of the billing period for this line item

product_id
string | null

Associated product identifier