Create a bulk price for a product

Creates a new bulk price for a specific product. Triggers a product update event upon creation.

post/products/{id}/bulk-prices

Request

  • Base URL
    https://api.ecommerceapi.uk/v1
  • URL
    https://api.ecommerceapi.uk/v1/products/{id}/bulk-prices
  • Auth
    HTTP basic

Path parameters

idinteger required

ID of the product which the bulk prices will be assigned to.

Request body

variationIdinteger

ID of the variation.

fromQuantityinteger required

Minimum quantity for the bulk price.

toQuantityinteger required

Maximum quantity for the bulk price (0 for unlimited).

pricenumber float required

Price for the specified quantity range.

Response

Bulk price created successfully.

idinteger

Unique identifier for the bulk price.

variationIdinteger

ID of the variation (0 if the bulk price is not for a variation).

fromQuantityinteger

Minimum quantity for the bulk price.

toQuantityinteger

Maximum quantity for the bulk price (0 for unlimited).

pricenumber float

Price for the specified quantity range.

Changes

No recorded changes to this operation across all 1 revision of this API.