URL Query Parameters
name | Required | |
code | Required | |
man_code | Required | |
upc_code | Required | |
ean_code | Optional | |
weight | In grams | |
tax_rate_id | Interger for tax rate id (See API » Tax Rates to fetch rates) | |
short_description | ||
description | ||
external_reviews | ||
brand_id | ||
dept_pricing | 1 or 0 | Set to 1 to set this product to use Department / Category Pricing |
image_one | Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over. | |
image_two | Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over. | |
image_three | Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over. | |
image_four | Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over. | |
price_is_percentage | Price is percentage or not. If set to 1 | 5.98 below becomes 5.98% markup on the cost price of 5.66 |
price_ex_tax | Price as float | ie 5.98 |
is_active | 1 or 0 | |
price_was | RRP price as float | ie 6.00 |
cost | cost as float | ie 5.66 |
stock_location | Stock location bin number (Optional) | |
stock | Stock Quantity | |
stock_due | Stock due label | ie 2-3 Days |
qty_min | Minimum quantity allowed in basket | |
qty_max | Maximum quantity allowed in basket | |
warranty | Warranty in Days | |
categories_id | Categories Id | |
is_dropship | Optional interger | |
is_special | 1 or 0 | |
group_id | Optional integer | |
is_bundle | 1 or 0 | |
is_free_delivery | 1 or 0 |
- name - Required
- code - Required
- man_code - Required
- upc_code - Required
- ean_code - Optional
- weight - In grams
- tax_rate_id - Interger for tax rate id (See API » Tax Rates to fetch rates)
- short_description
- description
- external_reviews
- brand_id
- dept_pricing - 1 or 0, Set to 1 to set this product to use Department / Category Pricing
- image_one - Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over.
- image_two - Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over.
- image_three - Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over.
- image_four - Image location ie www.myserver.co.uk/tempBrandImage. This will be copied over.
- price_is_percentage - Price is percentage or not. If set to 1, 5.98 below becomes 5.98% markup on the cost price of 5.66
- price_ex_tax - Price as float, ie 5.98
- is_active - 1 or 0
- price_was - RRP price as float, ie 6.00
- cost - cost as float, ie 5.66
- stock_location - Stock location bin number (Optional)
- stock - Stock Quantity
- stock_due - Stock due label, ie 2-3 Days
- qty_min - Minimum quantity allowed in basket
- qty_max - Maximum quantity allowed in basket
- warranty - Warranty in Days
- categories_id - Categories Id
- is_dropship - Optional interger
- is_special - 1 or 0
- group_id - Optional integer
- is_bundle - 1 or 0
- is_free_delivery - 1 or 0
Call
PUT /rest/products/{id}.json
Update a Product Status to Active
This call activates a product so it appears on a users online store.
Call
PUT /rest/products/{product_id}/activate.json
Update a Product Status to Un-active
This call deactivates a product so it doesn't show on a users online store.
Call
PUT /rest/products/{product_id}/deactivate.json
Set Product As a Special Offer
This call sets the product as a Special offer. You can also pass an optional "price_was" variable to set the RRP price. Instantcart will then work out the price difference and percentage saving. You can also pass a "price_ex_tax" parameter in the format "5.00" or as a percentage markup, ie "10%".
Call
PUT /rest/products/{product_id}/offer.json
Unset a Special Offer
This call removes the special offer for a product, returning it back to its original state. You can also pass an optional "price_was" variable to re-set the RRP price. You can also pass a "price_ex_tax" parameter in the format "5.00" or as a percentage markup, ie "10%".
Call
PUT /rest/products/{product_id}/nooffer.json
Comments
0 comments
Please sign in to leave a comment.