I am trying to insert products in clover using create inventory item api.When I am create multiple products using for loop in my script sometimes in get response blank instead of getting product details of created product.For example : I am trying to create 50 products through for loop. So for each product created api returns me data as follows :
(
[data] => Array
(
[id] => 06CKBXEKDEDQ6
[hidden] =>
[name] => ROMANA BLACK SAMBUCA 750ML
[code] => 08676722106
[sku] => 9000479
[price] => 3299
[priceType] => FIXED
[defaultTaxRates] => 1
[cost] => 2307
[isRevenue] => 1
[modifiedTime] => 1620754724000
);
)
But sometimes it returns me blank as:
(
[data] =>
)
If I check for that product where it returns me empty data ,it is created in clover but I get response empty.Can you say me reason for such case?