Update a product price
Fully updates a product-price record.
The product cannot be changed: sending a product that differs from the record's current one is rejected with 406 Not Acceptable. After the update, grouped product prices and (when applicable) the product's listable status are recomputed as described for Create.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product-price record.
The body of a product-price create or full update request.
The identifier of the product this price belongs to. Required on create. On update it must match the record's current product — a different value is rejected.
The selling price. A positive decimal with up to 12 digits and 2 decimal places.
An ISO 4217 currency code accepted by the product-price endpoints.
The tax rate applied to the price. A decimal with up to 5 digits and 2 decimal places.
The original or reference retail price. Optional.
Free-form JSON for extra data. Optional.
The updated product-price record.
A product-price record — the primary selling price of a single product.
The unique identifier of the record.
The identifier of the product this price belongs to. One record per product.
The selling price. A positive decimal with up to 12 digits and 2 decimal places.
An ISO 4217 currency code accepted by the product-price endpoints.
The tax rate applied to the price. A decimal with up to 5 digits and 2 decimal places.
The original or reference retail price. null when not set.
Free-form JSON for extra data.
The request contains invalid or missing data — for example a missing product, a product that does not exist or already has a price record, or an invalid price. 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.
No product-price record exists with the given identifier.
The request is well-formed but violates a business rule of the price service — the product of an existing record was changed, or a bulk upsert element was missing product or was otherwise malformed.
PUT /api/v1/remote/1/product_price/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"product": 3391,
"price": "199.90",
"currency_type": "try",
"tax_rate": "18.00",
"retail_price": "249.90"
}{
"pk": 1024,
"product": 3391,
"price": "199.90",
"currency_type": "try",
"tax_rate": "18.00",
"retail_price": "249.90",
"extra_field": {}
}Last updated
Was this helpful?

