Update a product choice

Updates the custom price and/or cost price for a product choice.

put/products/{product_id}/choices/{id}

Request

  • Base URL
    https://api.ecommerceapi.uk/v1
  • URL
    https://api.ecommerceapi.uk/v1/products/{product_id}/choices/{id}
  • Auth
    HTTP basic

Path parameters

product_idinteger required

ID of the product.

idinteger required

ID of the product choice.

Request body

customPricenumber float

Custom price for this product choice.

costPricenumber float

Custom cost price for this product choice.

Response

Product choice updated successfully.

idinteger

Unique ID of the product choice.

customPricenumber float

Custom price for this product choice (overrides default).

costPricenumber float

Custom cost price for this product choice.

Changes

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