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

Bulk create or update product prices

Creates or updates many product-price records in a single request. The body is a JSON array of price objects; for each element, the record of the given product is updated if it exists and created otherwise.

Every element must carry a product. If individual fields within an element fail serializer validation, the request is rejected with 400 Bad Request. If the product key is missing entirely or the element is otherwise structurally malformed, the request is rejected with 406 Not Acceptable. In both cases no changes are applied.

On success the response is an empty object.

post
/product_price/bulk_upsert/
Authorizations
AuthorizationstringRequired

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

Bodyobject · ProductPriceRequest[]

A JSON array of price objects for the bulk upsert endpoint. For each element, the record of the given product is updated if it exists and created otherwise. Every element must carry a product.

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
200

The records were created or updated successfully. The response body is an empty object.

application/json
objectOptional
post/product_price/bulk_upsert/
POST /api/v1/remote/1/product_price/bulk_upsert/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 128

[
  {
    "product": 3391,
    "price": "199.90",
    "tax_rate": "18.00"
  },
  {
    "product": 3392,
    "price": "89.90",
    "currency_type": "try",
    "tax_rate": "18.00"
  }
]
{}

Last updated

Was this helpful?