Sales items or services being sold.
Products usually belong to product hierarchy which allows one to drill down from top of hierarchy to lower levels in the Zoined Analytics Portal. There are two ways of defining the product hierarchy:
- Use FlatHierarchies endpoint with one of the product hierarchy keys
entity_idhaving sameproduct_idvalue. - Upload product hierarchy using ProductHierarchy endpoint, and add
category_idfield pointing to correct hierarchy level.
POST https://api.zoined.com/products?dryRun=false&separator=%3B&encoding=utf-8
Security
bearerAuth
Any of:
Default purchase price for product. Used if sales transaction doesn't have purchase price set.
Example:10
- Mock serverhttps://zapi-api.zoined.com/_mock/products
- https://api.zoined.comhttps://api.zoined.com/products
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/products?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"product_id": "XYZ",
"product_name": "Widget XYZ",
"product_description": "Best performance XYZ on the market",
"category_id": "23",
"average_price": 8,
"purchase_price": 10,
"sales_price": 20,
"sales_price_wo_vat": 16,
"vat_rate": 24,
"unit_of_measure": "PCS",
"product_size": "XS",
"product_width": "5\"",
"product_height": "10\"",
"product_color": "Dark Blue",
"product_type": "Type A",
"product_brand": "Nike",
"product_season": "Spring",
"model": "XYZ B40",
"model_number": "X311",
"country_of_origin": "Moldovia",
"freight": 5,
"duty": 0.24,
"supplier_id": "221",
"fabric": "Felt",
"buyer": "Lena Shields",
"ean": "Ean code",
"parent_product_id": "XY",
"image_url": "http://example.com?product=XYZ",
"custom_field_1": "EU only",
"custom_field_2": "EU only",
"custom_field_3": "EU only",
"custom_field_4": "EU only",
"custom_field_5": "EU only",
"custom_field_6": "EU only",
"custom_field_7": "EU only",
"custom_field_8": "EU only",
"custom_field_9": "EU only",
"custom_field_10": "EU only",
"custom_field_11": "EU only",
"custom_field_12": "EU only",
"custom_field_13": "EU only",
"custom_field_14": "EU only",
"custom_field_15": "EU only",
"custom_field_16": "EU only",
"custom_field_17": "EU only",
"custom_field_18": "EU only",
"custom_field_19": "EU only",
"custom_field_20": "EU only",
"custom_field_21": "EU only",
"custom_field_22": "EU only",
"custom_field_23": "EU only",
"custom_field_24": "EU only",
"custom_field_25": "EU only",
"custom_field_26": "EU only",
"custom_field_27": "EU only",
"custom_field_28": "EU only",
"custom_field_29": "EU only",
"custom_field_30": "EU only",
"custom_field_31": "EU only",
"custom_field_32": "EU only",
"custom_field_33": "EU only",
"custom_field_34": "EU only",
"custom_field_35": "EU only",
"custom_field_36": "EU only",
"custom_field_37": "EU only",
"custom_field_38": "EU only",
"custom_field_39": "EU only",
"custom_field_40": "EU only",
"custom_field_41": "EU only",
"custom_field_42": "EU only",
"custom_field_43": "EU only",
"custom_field_44": "EU only",
"custom_field_45": "EU only",
"custom_field_46": "EU only",
"custom_field_47": "EU only",
"custom_field_48": "EU only",
"custom_field_49": "EU only",
"custom_field_50": "EU only",
"custom_metric_1": 1,
"custom_metric_2": 100,
"custom_metric_3": 2.2,
"custom_metric_4": 1.05,
"custom_metric_5": 10000,
"custom_metric_6": 150,
"custom_metric_7": 1000,
"custom_metric_8": 2.52,
"custom_metric_9": 1.5,
"custom_metric_10": 2000,
"source_system": "ABCDEF"
}'Response
{ "status": "OK", "msg": "1 entity added" }