Hi Guys, anyone encountered the problem when you deleted an item from the Square Dashboard, but as you fetch the CatalogAPI, all the historic items came up, even those I deleted years ago. I tried using different filter to get rid of those old items it still didn’t work. Code below didn’t work also… Cheers
const catalogItems = await apiClient.fetchAllPages(
‘/catalog/list’,
‘objects’,
{
types: ‘ITEM’,
include_deleted_objects: false
}
);
3 posts - 2 participants