Set and read company-specific prices of products and variations: a fixed price without VAT, a discount percentage, or both, optionally for a set period.
List a company's prices
Returns the company's product and variation prices, sorted by product ID. A product's own price comes before its variations' prices.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
query Parameters
limitThe number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.
offsetThe number of items to skip. Must be a decimal integer; any other value returns 400.
List a company's prices › Responses
The company's prices.
Set a company's prices in bulk
Creates or updates the company's prices for the products and variations in the array. Each element names one product or one variation and sets at least one of fixed_price_no_vat and discount_percent. If several elements name the same product or variation, the last one wins.
Fields you omit keep their stored values; a new price gets 0 and no validity dates. An explicit null sets a price field to 0 and removes a date.
Elements whose product or variation is unknown or deleted are skipped and listed in not_found. If no element matches, the response is 404. A company price can't be deleted through the API; set both price fields to 0 to stop it from applying.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
Set a company's prices in bulk › Request Body
productThe ID of the product whose company price you set.
variationThe ID of the variation whose company price you set.
fixed_price_no_vatThe company's fixed price without VAT. 0 or null means no fixed price.
discount_percentThe company's discount percentage. Must be at least 0 and below 100 after rounding to two decimals, otherwise 400. 0 or null means no discount.
discount_valid_fromWhen the company price starts to apply, as an ISO 8601 date or date-time, read as the shop's local time (an offset is ignored). null removes the start date.
discount_valid_toWhen the company price stops applying, in the same format as discount_valid_from. null removes the end date.
Set a company's prices in bulk › Responses
The prices that were set.
hrefThe URL of the request.
The elements that matched no product or variation, by the identifier you sent. Only present when there are such elements.
Get a company's product price
Returns the company's price for the product. If the company has no price for it, items is empty.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
product-idThe product's ID. A value that is not a number returns 400; an unknown or deleted product returns 404.
Get a company's product price › Responses
The company price.
hrefThe URL of the request.
The company price. A GET returns no items if the company has no price for the product.
Update a company's product price
Works like POST on the same path: creates the company's price for the product if it doesn't exist, and otherwise updates the fields you send. The body must contain at least one of the fields below.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
product-idThe product's ID. A value that is not a number returns 400; an unknown or deleted product returns 404.
Update a company's product price › Request Body
fixed_price_no_vatThe company's fixed price without VAT. 0 or null means no fixed price.
discount_percentThe company's discount percentage. Must be at least 0 and below 100 after rounding to two decimals, otherwise 400. 0 or null means no discount.
discount_valid_fromWhen the company price starts to apply, as an ISO 8601 date or date-time, read as the shop's local time (an offset is ignored). null removes the start date.
discount_valid_toWhen the company price stops applying, in the same format as discount_valid_from. null removes the end date.
Update a company's product price › Responses
The company price.
hrefThe URL of the request.
The company price. A GET returns no items if the company has no price for the product.
Set a company's product price
Creates the company's price for the product, or updates it if it exists. Fields you omit keep their stored values; a new price gets 0 and no validity dates. An explicit null sets a price field to 0 and removes a date. PUT on the same path does the same.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
product-idThe product's ID. A value that is not a number returns 400; an unknown or deleted product returns 404.
Set a company's product price › Request Body
fixed_price_no_vatThe company's fixed price without VAT. 0 or null means no fixed price.
discount_percentThe company's discount percentage. Must be at least 0 and below 100 after rounding to two decimals, otherwise 400. 0 or null means no discount.
discount_valid_fromWhen the company price starts to apply, as an ISO 8601 date or date-time, read as the shop's local time (an offset is ignored). null removes the start date.
discount_valid_toWhen the company price stops applying, in the same format as discount_valid_from. null removes the end date.
Set a company's product price › Responses
The company price.
hrefThe URL of the request.
The company price. A GET returns no items if the company has no price for the product.
Get a company's variation price
Returns the company's price for the variation. If the company has no price for it, items is empty.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
variation-idThe variation's ID. A value that is not a number returns 400; an unknown or deleted variation returns 404.
Get a company's variation price › Responses
The company price.
hrefThe URL of the request.
The company price. A GET returns no items if the company has no price for the variation.
Update a company's variation price
Works like POST on the same path: creates the company's price for the variation if it doesn't exist, and otherwise updates the fields you send. The body must contain at least one of the fields below.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
variation-idThe variation's ID. A value that is not a number returns 400; an unknown or deleted variation returns 404.
Update a company's variation price › Request Body
fixed_price_no_vatThe company's fixed price without VAT. 0 or null means no fixed price.
discount_percentThe company's discount percentage. Must be at least 0 and below 100 after rounding to two decimals, otherwise 400. 0 or null means no discount.
discount_valid_fromWhen the company price starts to apply, as an ISO 8601 date or date-time, read as the shop's local time (an offset is ignored). null removes the start date.
discount_valid_toWhen the company price stops applying, in the same format as discount_valid_from. null removes the end date.
Update a company's variation price › Responses
The company price.
hrefThe URL of the request.
The company price. A GET returns no items if the company has no price for the variation.
Set a company's variation price
Creates the company's price for the variation, or updates it if it exists. Fields you omit keep their stored values; a new price gets 0 and no validity dates. An explicit null sets a price field to 0 and removes a date. PUT on the same path does the same.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
variation-idThe variation's ID. A value that is not a number returns 400; an unknown or deleted variation returns 404.
Set a company's variation price › Request Body
fixed_price_no_vatThe company's fixed price without VAT. 0 or null means no fixed price.
discount_percentThe company's discount percentage. Must be at least 0 and below 100 after rounding to two decimals, otherwise 400. 0 or null means no discount.
discount_valid_fromWhen the company price starts to apply, as an ISO 8601 date or date-time, read as the shop's local time (an offset is ignored). null removes the start date.
discount_valid_toWhen the company price stops applying, in the same format as discount_valid_from. null removes the end date.
Set a company's variation price › Responses
The company price.
hrefThe URL of the request.
The company price. A GET returns no items if the company has no price for the variation.