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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The identifier of the price list.
4The body of a price-list create or full update request.
The display name of the price list. Must be unique.
The machine-readable code of the price list. Must be unique when set.
An ISO 4217 currency code accepted by the product-price endpoints.
The updated price list.
A price list — a named, single-currency container for extra product prices.
The unique identifier of the price list.
The display name of the price list. Unique across price lists.
The machine-readable code of the price list. Unique across price lists when set.
An ISO 4217 currency code accepted by the product-price endpoints.
The request contains invalid or missing data — for example a name or code that is already used by another price list, an unknown currency, a currency change while the list contains extra product prices in another currency, or a missing required field. The response names the field the complaint belongs to.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested price list does not exist.
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?

