createProduct method
Future
createProduct(
- dynamic merchantId,
- dynamic sku,
- dynamic name,
- dynamic price,
- dynamic description,
- dynamic quantity,
- dynamic includeFeesTax,
- dynamic type,
- dynamic tax,
- dynamic shippingFee,
- dynamic assetIds,
- dynamic meta,
createProduct
Implementation
Future createProduct(merchantId,sku,name,price,description,quantity,includeFeesTax,type,tax,shippingFee,assetIds,meta) async {
var data = {
'merchant_id': merchantId,
'sku': sku,
"name":name,
"price":price,
"description":description,
"quantity":quantity,
"include_fees_tax":includeFeesTax,
"type":type,
"tax":tax,
"shipping_fee":shippingFee,
"asset_ids":assetIds,
"meta":meta
};
var apiResponse = await post("/merchant/products/create", data);
return apiResponse;
}