Partially update a product price
Updates one or more fields of a product-price record. Only the fields included in the request body are changed; everything left out keeps its current value.
The product cannot be changed: including a product that differs from the record's current one is rejected with 406 Not Acceptable.
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 partial update request. Only the fields included in the body are changed; every field is optional.
Including a product that differs from the record's current one is rejected. Omitting it keeps the current product.
The selling price.
An ISO 4217 currency code accepted by the product-price endpoints.
The tax rate applied to the price.
The original or reference retail price.
Free-form JSON for extra data.
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.
PATCH /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: 42
{
"price": "179.90",
"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?

