All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello everyone, I am currently having trouble calling the Remove product from collect/collection. I noticed that there is a missing property product id.
Is there a way to call the API differently ?
Thanks in advance.
The collect is actually the relationship specifically between the product and the custom collection. So by the time you have a collect_id, you already have within that the specific product_id in question.
What you probably need to do is get the collect_id by querying the list of collects for the given product_id and collection_id:
https://shopify.dev/docs/api/admin-rest/2023-04/resources/collect#get-collects
Thanks.