Create a product price
Creates a price record for a product.
product and price are required. currency_type defaults to try when omitted. Because a product may have only one price record, a product that already has one 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 for details.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The body of a product-price create or full update request.
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.
The selling price. A positive decimal with up to 12 digits and 2 decimal places.
An ISO 4217 currency code accepted by the product-price endpoints.
The tax rate applied to the price. A decimal with up to 5 digits and 2 decimal places.
The original or reference retail price. Optional.
Free-form JSON for extra data. Optional.
The created product-price record.
A product-price record — the primary selling price of a single product.
The unique identifier of the record.
The identifier of the product this price belongs to. One record per product.
The selling price. A positive decimal with up to 12 digits and 2 decimal places.
An ISO 4217 currency code accepted by the product-price endpoints.
The tax rate applied to the price. A decimal with up to 5 digits and 2 decimal places.
The original or reference retail price. null when not set.
Free-form JSON for extra data.
The request contains invalid or missing data — for example a missing product, a product that does not exist or already has a price record, or an invalid price. 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.
POST /api/v1/remote/1/product_price/ 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?

