Issue with collectionAddProducts in Shopify 2025-01 API

Issue with collectionAddProducts in Shopify 2025-01 API

xwCui
Shopify Partner
2 0 0

Hi everyone,

 

I'm facing an issue while using the Shopify 2025-01 API and would really appreciate any insights or assistance.

 

Issue Description:

I created a product via the API and tried to add it to a collection named "Home page" using the collectionAddProducts endpoint. However, the API call returned the following error:

Error adding gid://shopify/Product/{product_id} to collection

No additional details or specific error messages were provided.

 

Interestingly, when I tested the same API call with identical parameters in another store, it worked smoothly, and the product was successfully added to the collection. However, in the current store, the issue persists despite multiple attempts.

 

What I've Tried So Far

1. Verified that the product ID and collection ID are correct.

2. Checked API call parameters to ensure they match the successful request in the other store.

3. Confirmed that the API permissions and access tokens are valid.

 

Request for Help

Does anyone know what might be causing this issue? Could there be any store-specific settings or restrictions affecting this API call?

 

Additional Info:

Collection Name: "Home page" API Version: 2025-01

 

Any help would be greatly appreciated! Thanks in advance:)

Replies 0 (0)