I am using App Home Intents API: Intents API docs . i tried to edit a collection from my embedded app following the doc like this: shopify.intents.invoke("edit:shopify/Collection", { value: "gid://shopify/Collection/386027159734", });
but i am getting error: { "code": "error", "message": "The intent was resolved with an invalid payload" }
another error is
Hey @Md_Miraj - thanks for flagging this. Your invocation looks right from what I can tell, so this does seem weird.
Does the editor open successfully and only error after saving? If so, do the changes persist, and is this a manual or automated collection? If you’re able to share a timestamp/timezone and the shop URL where an example happened, that would be helpful too.
Happy to look into this for sure, hope to hear from you soon.
Hey @Md_Miraj - thanks, that helps. Since the collection is successfully updated, this appears to be failing when the Admin returns the intent’s completion data. The error indicates that the required collection ID is missing from that response, but like we chatted about before, your invocation does look like it should work.
Could you share the approximate save time and timezone, the shop URL, and whether this is a manual or automated collection? If possible, if you’re also able to confirm whether it reproduces with a second collection that would be super helpful
For now, I’d avoid automatically retrying when this specific error occurs, since the original edit may already have been applied. You should be able to re-fetch the original collection GID through the Admin API to verify the update. I’ll use the additional details to take this forward on our end once I hear back from you.