POST product/add

It will add a product to the database based on category_code If invalid category_code is provided the prouct will not be added To get the list of category_codes go to : /category/getall You will need to pass all the fields. For mandatory you cannot pass blank fields.

Request Information

Parameters

NameDescriptionAdditional information
product
1) Name: Mandatory
            2) Code: Need to be unique
            3) Price: The price of the product, must have a price or pricerangeid
            4) PriceRangeId: Price range, to get list of price bands call product/getpricebands, must have a price or pricerangeid
            5) PrimaryCategoryCode: Mandatory
            6) Visible: Default to false
            7) FriendlyUrl: If not provided will be set to Name + Code If the url of the particular product page is: http//www.xyz.com/test
                            Then the friendly url should be: test
                            It should be in lower cases. 
            8) VatRate
            9) WebpageTitle: Recommended for SEO purposes
            10) MetaDescription: Recommended for SEO purposes
            11) RRP
            12) PublishDate: Date
            13) DateStamp: Date

Define this parameter in the request body.

Request body formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.