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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The 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 created extra product-price record.
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.
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.
Error messages that apply to the request as a whole rather than to a specific field.
The list of error messages for the field named by the key.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
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?

