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

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.

post
/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 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
201

The created 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.

post/product_price/
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?