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

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.

patch
/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 partial update request. Only the fields included in the body are changed; every field is optional.

productintegerOptional

Including a product that differs from the record's current one is rejected. Omitting it keeps the current product.

pricestring · decimalOptional

The selling price.

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.

retail_pricestring · nullableOptional

The original or reference retail price.

extra_fieldobjectOptional

Free-form JSON for extra data.

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.

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