Update a product extra

Updates an existing product extra.

put/products/{product_id}/extras/{id}

Request

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

Path parameters

product_idinteger required

ID of the product which the extra is assigned to.

idinteger required

ID of the product extra to update.

Request body

namestring

The updated name of the product extra.

pricenumber float

The updated price for the product extra.

costPricenumber float

The updated cost price for the product extra. A value of -1 indicates it is not set.

skustring

The updated SKU for the product extra.

Response

Product extra updated successfully.

idinteger

Product extra ID.

namestring

Product extra name.

pricenumber float

Product extra price.

costPricenumber float

Product extra cost price. A value of -1 indicates it is not set.

skustring

Product extra SKU. Used to link to another product.

Changes

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