Duplicate products created when using the products API request

Duplicate products created when using the Shopify API. Is there a solution for this? I’ve tried both via the Shopify API implementation using the API class and also using cUrl. Both times creates the submitted product twice. Hope there’s an update.