While checkout creation via StorefrontAPI it returns INTERNAL_SERVER_ERROR:
Solved! Go to the solution
This is an accepted solution.
Hey @Genadzi ,
Looking through our platform logs, it appears this error was thrown because you provided an invalid ID as an input argument to your checkoutCreate mutation.
It appears for the input argument of `lineitems.variantID` you used Product ID instead of a Product Variant ID. Fixing this so you use a Product Variant ID instead should resolve your issue.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Thanks a lot for your help, but I think you agree that error message is not very informative and a little bit confusing, because when I tried to enter not existing ID it returned: "Invalid global ID" or smth. like that, so I thought that my ID is valid.