Update an extra product price
Fully updates an extra product-price record.
The product cannot be changed: sending a product that differs from the record's current one is rejected. The effective currency_type must match the currency of the effective price_list. After the update, grouped product prices 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 identifier of the extra product-price record. Either the numeric pk, or the combined {price_list_code}-{pk} form (split on the last hyphen).
42The body of an extra product-price create or full update request.
The identifier of the priced product. Required on create. On update it must match the record's current product.
The selling price, tax included. A decimal with up to 12 digits and 2 decimal places.
An ISO 4217 currency code accepted by the product-price endpoints.
The VAT rate applied to price, as a percentage. A decimal with up to 5 digits and 2 decimal places.
The original or reference retail price. Optional.
The identifier of the price list this price belongs to.
Free-form JSON for extra data. Optional.
The updated extra product-price record.
An extra product-price record — a price for a product in a price list other than the primary one, typically a seller-specific or channel-specific price.
The unique identifier of the record.
The identifier of the priced product.
The selling price, tax included.
ISO 4217 currency code the order item's price is expressed in.
tryPossible values: The VAT rate applied to price, as a percentage.
The recommended retail price, used to show a strike-through price.
The identifier of the price list this price belongs to.
Free-form data carried on the price record. Snapshotted into the order item's extra_field as price_extra_field at creation.
The request contains invalid or missing data — for example a currency_type that does not match the price list's currency, a duplicate (product, price_list) pair, 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 extra product-price record does not exist.
PUT /api/v1/remote/1/extra_product_price/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"product": 3391,
"price": "179.90",
"currency_type": "try",
"tax_rate": "18.00",
"price_list": 4
}{
"pk": 1,
"product": 1,
"price": "text",
"currency_type": "try",
"tax_rate": "text",
"retail_price": null,
"price_list": 1,
"price_list_detailed": {
"pk": 1,
"name": "text",
"code": null,
"currency": "try"
},
"extra_field": null
}Last updated
Was this helpful?

