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

Create an extra product price

Creates a price record for a product in a price list.

product, price, tax_rate, and price_list are required. currency_type defaults to try and must match the currency of price_list. A product may have only one price per price list; a duplicate (product, price_list) pair is rejected with a validation error.

After the price is saved, the service recomputes the representative price of any grouped product that contains this product, using the selector configured in GROUPED_PRODUCT_PRICE_SELECTOR. See Dynamic Settings & Environment Variables in the section description.

post
/extra_product_price/
Authorizations
AuthorizationstringRequired

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

Body

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

productintegerRequired

The identifier of the priced product. Required on create. On update it must match the record's current product.

pricestring · decimalRequired

The selling price, tax included. A 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 VAT rate applied to price, as a percentage. A decimal with up to 5 digits and 2 decimal places.

retail_pricestring · nullableOptional

The original or reference retail price. Optional.

price_listintegerRequired

The identifier of the price list this price belongs to.

extra_fieldobjectOptional

Free-form JSON for extra data. Optional.

Responses
400

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.

application/json

Returned when the request contains invalid or missing data. Errors are grouped by the field they apply to: each key is the name of a field from the request and its value is a list of one or more messages describing what is wrong with that field. Messages that do not belong to any single field are grouped under non_field_errors.

non_field_errorsstring[]Optional

Error messages that apply to the request as a whole rather than to a specific field.

Other propertiesstring[]Optional

The list of error messages for the field named by the key.

post/extra_product_price/
POST /api/v1/remote/1/extra_product_price/ 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
}
{
  "non_field_errors": [
    "Invalid input."
  ],
  "name": [
    "This field is required."
  ]
}

Last updated

Was this helpful?