This POST method allows you to create a new product (catalog article).
Notes:
- ArticleNumber, NewName and CategoryName are mandatory fields
- You can set CategoryCreateIfMissing to true if you want the category to be created if it is not found.
- The request and response parameters are the same as the request parameters for the endpoint ‘UpdateProduct’. Please see the endpoint updateproduct for more details.
- Request
- Response
Parameters
SEE ENDPOINT UpdateProduct
String
Details
Alle request parameters allowed for the endpoint UpdateProduct are allowed for this endpoint as well. The additional parameters are listed below.
CURL Example
1 |
curl -X POST -H "Content-Type: application/json" -H "ApiKey: b7d343Bnhd436f3ec3bd3504582" -H "Username: john@doe.nl" "https://rest-api.silvasoft.nl/rest/addproduct/" |
Parameters
Response JSON Example
The response order can vary from the parameter order above
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
{ "Category":"Electronics", "EAN":"123456789120", "Description":"Product description", "StockQty":0, "Price":110, "ArticleNumber":"1204", "PurchasePrice":101.95, "VATPercentage":19, "Name":"BENQ Monitor 24 inch", "Unit":"Piece", "MinimalStockQty":"50", "SupplierArticleNumber":"Han16-AC", "CreatedOn":1598340866, "ChangedOn":1599849807, "ProductResponse_CustomField":[ { "DateTimeValue":null, "DecimalValue":"0.0", "BooleanValue":false, "Label":"Weight", "DataType":"Integer", "StringValue":null, "IntValue":25, "FieldType":"Integer" }, { "DateTimeValue":null, "DecimalValue":"0.0", "BooleanValue":false, "Label":"Description Spanish", "DataType":"String", "StringValue":"Buenos Dias", "IntValue":0, "FieldType":"TextSmall" } ] } |