Gallery Platform API
Reference

Add a sale line item

Adds a work to a sale, snapshotting its consignment split. Header totals refresh automatically.

POST
/gallery/sales/{id}/items

Adds a work to a sale, snapshotting its consignment split. Header totals refresh automatically.

Authorization

bearerAuth sales:create
AuthorizationBearer <token>

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

In: header

Scope: sales:create

Path Parameters

id*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.

A sale line to add (consignment split is snapshotted server-side).

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "id": "string",  "artwork_id": "string",  "list_price_cents": -9007199254740991,  "discount_cents": -9007199254740991,  "sold_price_cents": -9007199254740991,  "consignor_share_bps": 0,  "consignee_share_bps": 0,  "third_party_share_bps": 0,  "consignor_net_price_cents": 0,  "metadata": {    "property1": "string",    "property2": "string"  },  "created_at": "string"}