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

Update a price list

Fully updates a price list.

name, code, and currency are required. Changing currency is rejected while the list contains an extra product price with a different currency — see Currency Consistency in the section description.

put
/price_list/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The identifier of the price list.

Example: 4
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
200

The updated 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:
put/price_list/{id}/
PUT /api/v1/remote/1/price_list/{id}/ 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?