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

Create a price list

Creates a price list.

name, code, and currency are required. name and code must be unique across price lists.

post
/price_list/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The body of a price-list create or full update request.

namestring · max: 64Required

The display name of the price list. Must be unique.

codestring · max: 64 · nullableRequired

The machine-readable code of the price list. Must be unique when set.

currencystring · enumRequired

An ISO 4217 currency code accepted by the product-price endpoints.

Possible values:
Responses
201

The created price list.

application/json

A price list — a named, single-currency container for extra product prices.

pkintegerRead-onlyOptional

The unique identifier of the price list.

namestring · max: 64Optional

The display name of the price list. Unique across price lists.

codestring · max: 64 · nullableOptional

The machine-readable code of the price list. Unique across price lists when set.

currencystring · enumOptional

An ISO 4217 currency code accepted by the product-price endpoints.

Possible values:
post/price_list/
POST /api/v1/remote/1/price_list/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "name": "B2B Wholesale",
  "code": "b2b-wholesale",
  "currency": "try"
}
{
  "pk": 4,
  "name": "B2B Wholesale",
  "code": "b2b-wholesale",
  "currency": "try"
}

Last updated

Was this helpful?