Gallery Platform API
Reference

Update an invoice line item

Edits a line's description, quantity, price, discount, or tax.

PATCH
/gallery/invoices/{id}/line-items/{lineId}

Edits a line's description, quantity, price, discount, or tax.

Authorization

bearerAuth sales:update
AuthorizationBearer <token>

A gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).

In: header

Scope: sales:update

Path Parameters

id*string
lineId*string

Header Parameters

Idempotency-Key?string

Optional. Send a unique key per logical operation to make retries safe: a retry with the same key replays the stored success for 14 days instead of re-running the write. Reusing a key with a different body returns 400.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Patch an invoice line item.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "id": "string",  "invoice_id": "string",  "artwork_id": "string",  "format_id": "string",  "publication_id": "string",  "ticket_type_id": "string",  "description": "string",  "quantity": -9007199254740991,  "unit_price_cents": -9007199254740991,  "discount_cents": -9007199254740991,  "discount_bps": -9007199254740991,  "tax_cents": -9007199254740991,  "line_total_cents": -9007199254740991,  "exclude_from_total": true,  "position": -9007199254740991,  "metadata": {    "property1": "string",    "property2": "string"  },  "created_at": "string",  "updated_at": "string"}