Create a product extra

Creates a new product extra.

post/products/{product_id}/extras

Request

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

Path parameters

product_idinteger required

ID of the product which the extra will be assigned to.

Request body

namestring required

The name of the product extra.

pricenumber float required

The price for the product extra.

costPricenumber float

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

skustring required

Used to link a product extra to another product.

Response

Product extra created 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.