Skip to main content

Overview

The Pricing API enables sophisticated pricing strategies including price lists, customer group pricing, region-specific pricing, and currency management. Base Path: /admin/price-lists Source: packages/medusa/src/api/admin/price-lists/route.ts

Price Lists

Price lists allow you to define custom prices for products based on customer groups, regions, or specific conditions.

List Price Lists

Retrieve all price lists with filtering and pagination.

Query Parameters

string
Comma-separated list of fields to include.
number
default:"15"
Maximum number of price lists to return.
number
default:"0"
Number of price lists to skip.
string
Search query for price list name or description.
string[]
Filter by status: active or draft.
string[]
Filter by type: sale or override.

Request

Response

PriceList[]
Array of price list objects.
string
Price list type:
  • sale: Reduces prices during promotions
  • override: Replaces default prices for specific groups/regions
string
Price list status:
  • active: Currently in effect
  • draft: Not yet active
Source: packages/medusa/src/api/admin/price-lists/route.ts:13

Create Price List

Create a new price list.

Request Body

string
required
The price list’s name.
string
Description of the price list.
string
required
Price list type: sale or override.
string
default:"draft"
Status: active or draft.
string
ISO 8601 datetime when the price list becomes active.
string
ISO 8601 datetime when the price list expires.
object[]
Rules that determine when this price list applies.
object[]
Price overrides for variants.

Request

Response

Source: packages/medusa/src/api/admin/price-lists/route.ts:38

Get Price List

Retrieve a single price list by ID.

Path Parameters

string
required
The price list’s ID.

Update Price List

Update a price list.

Request Body

Accepts the same fields as Create Price List, all optional.

Request

Delete Price List

Delete a price list.

Request

Response

Price List Prices

Add Prices to Price List

Add variant prices to an existing price list.

Request Body

object[]
Prices to add.
object[]
Existing prices to update.
string[]
Array of price IDs to remove.

Remove Prices from Price List

Remove specific prices from a price list.

Price Preferences

List Price Preferences

Retrieve pricing preferences configuration.
Source: packages/medusa/src/api/admin/price-preferences/route.ts

Update Price Preferences

Configure global pricing preferences.

Variant Pricing

Update Variant Prices

Update prices for a specific product variant.

Request Body

object[]
required
Array of prices to set.

Request

Currencies

List Currencies

Retrieve available currencies.

Response

Source: packages/medusa/src/api/admin/currencies/route.ts

Update Currency

Enable or disable a currency.

Request Body

boolean
Set as the default currency.
Source: packages/medusa/src/api/admin/currencies/[code]/route.ts

Pricing Examples

Quantity-Based Pricing

Set up volume discounts:

Customer Group Pricing

Create a price list for wholesale customers:

Region-Specific Pricing

Set different prices per region:

Next Steps

Products

Manage product pricing

Promotions

Create promotional discounts