Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Price Lists

Administrative endpoints for price lists — named, single-currency containers that group extra product prices. A price list does not hold prices itself; the per-product prices that belong to it are managed through extra_product_price. Price lists are referenced by customer segments and data sources to decide which prices a shopper sees.

Core Capabilities

1. Listing & Filtering

  • Retrieve a paginated list of price lists.

  • Filter by exact name or code.

  • Order results with the sort parameter.

2. Full CRUD

  • Create a price list with a name, a code, and a currency.

  • Retrieve a single price list by its identifier.

  • Fully or partially update a price list.

  • Permanently delete a price list together with the records that depend on it (see Deleting a Price List).

Price List Fields

Field
Type
Description

pk

integer

The unique identifier of the price list. Read-only.

name

string

The display name of the price list. Up to 64 characters, unique across price lists. Required.

code

string or null

The machine-readable code of the price list. Up to 64 characters, unique across price lists when set. Required.

currency

string

The ISO 4217 currency code of every price in the list (see Currency Codes under Product Price). Required.

Currency Consistency

Every extra product price in a price list must use the price list's currency. The currency of an existing price list can only be changed when none of its extra product prices uses a different currency; otherwise the update is rejected with a 400 validation error on the currency field. Sending the current currency again is always accepted.

Deleting a Price List

DELETE /price_list/{id}/ is a hard delete. Removing a price list also permanently removes:

  • every extra product price in the list, and the basket items that use those prices;

  • every data source that uses the list, together with its basket items, conversations and messages, shipping options, and landing pages. Products of a removed data source are kept, and their data source is cleared.

The deletion is rejected with 406 and nothing is removed when:

  • a customer segment still uses the price list, or

  • an order item references one of the extra product prices or data sources that would be removed.

Reassign or remove the referencing segment first, then repeat the request. A price list whose prices or data sources have been ordered cannot be deleted.

Filtering & Ordering

Parameter
Match

name

The price list by its exact, case-sensitive name.

code

The price list by its exact, case-sensitive code.

Results can be ordered with the sort parameter; prefix a field with a hyphen for descending order.

Dynamic Settings & Environment Variables

Dynamic settings: No dynamic settings affect these endpoints.

Environment variables: No environment variables are read directly by these endpoints.

Last updated

Was this helpful?