OverviewPlatformsAPI ReferenceResources
Commerce

Set fixed prices

PUThttps://zernio.com/api/v1/commerce/price-lists/{priceListId}/prices

Sets fixed prices for variants in the price list's currency, overriding the converted price in that market.

PlatformsShopify

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

priceListIdstringRequired

Platform-native id.

Body

application/json

What every request needs

accountIdstringRequired
pricesarray of objectRequired
variantIdstringRequired
pricestringRequired

Decimal in the price list currency.

Optional parameters1 field
prices[].compareAtPricestring or null

Responses

Success· the request worked

Errors· the request failed

PUT/v1/commerce/price-lists/{priceListId}/prices
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.setCommercePriceListPrices({  path: {    priceListId: 'pricelist_abc123',  },  body: {    accountId: 'account_abc123',    prices: [      {        variantId: 'variant_abc123',        price: 'string',      },    ],  },});console.log(data);
{  "priceListId": "string",  "updated": 0}
OpenAPI specification
Was this page helpful?