Partially update a price list
Updates one or more fields of a price list. Only the fields included in the request body are changed; everything left out keeps its current value.
When currency is included and differs from the current one, the list must not contain an extra product price with a different currency.
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 partial update request. Only the fields included in the body are changed; every field is optional.
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.
PATCH /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: 27
{
"name": "B2B Wholesale EU"
}{
"pk": 4,
"name": "B2B Wholesale",
"code": "b2b-wholesale",
"currency": "try"
}Last updated
Was this helpful?

