createProduct method

Future createProduct(
  1. dynamic merchantId,
  2. dynamic sku,
  3. dynamic name,
  4. dynamic price,
  5. dynamic description,
  6. dynamic quantity,
  7. dynamic includeFeesTax,
  8. dynamic type,
  9. dynamic tax,
  10. dynamic shippingFee,
  11. dynamic assetIds,
  12. 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;
}