Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

put
/product_price/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the product-price record.

Body

The body of a product-price create or full update request.

productintegerRequired

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.

pricestring · decimalRequired

The selling price. A positive decimal with up to 12 digits and 2 decimal places.

currency_typestring · enumOptional

An ISO 4217 currency code accepted by the product-price endpoints.

Possible values:
tax_ratestring · decimalRequired

The tax rate applied to the price. A decimal with up to 5 digits and 2 decimal places.

retail_pricestring · nullableOptional

The original or reference retail price. Optional.

extra_fieldobjectOptional

Free-form JSON for extra data. Optional.

Responses
200

The updated product-price record.

application/json

A product-price record — the primary selling price of a single product.

pkintegerRead-onlyOptional

The unique identifier of the record.

productintegerOptional

The identifier of the product this price belongs to. One record per product.

pricestring · decimalOptional

The selling price. A positive decimal with up to 12 digits and 2 decimal places.

currency_typestring · enumOptional

An ISO 4217 currency code accepted by the product-price endpoints.

Possible values:
tax_ratestring · decimalOptional

The tax rate applied to the price. A decimal with up to 5 digits and 2 decimal places.

retail_pricestring · nullableOptional

The original or reference retail price. null when not set.

extra_fieldobject · nullableOptional

Free-form JSON for extra data.

put/product_price/{id}/
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?