Follow the below steps to automatically delete/archive the duplicate products created by Imprintnext in your Shopify store :
- The endpoint URL for accessing the clean-up of abandoned products functionality is:
/api/v1/duplicate-products?status=delete&days=7
2. The parameters mentioned in the above endpoint stand for,
status: Indicates the action to be performed on duplicate products. Accepted values are "delete" or "archive"
days: Specifies the threshold for product abandonment in days. Products created before this threshold will be considered abandoned.
3. Respective parameter values can be modified as per requirements for example
Status | Days | endpoint |
delete | 7 | /api/v1/duplicate-products?status=delete&days=7 |
archive | 30 | /api/v1/duplicate-products?status=archive&days=30 |
4. Configure the below CronJob on your server to execute the endpoint with the desired parameters periodically, which can be done every midnight at 12 am
https://design.yourwebsite.com/designer/api/v1/duplicate-products?status=delete&days=7
Determine the appropriate frequency based on your store's needs