Creating a checkout through Shopify’s Checkout API returned variant_id is invalid even though the variant ID appeared correct. The initial suspicion was that the product was not published to the custom sales channel, because unpublished products cannot be used in checkout creation.
Key findings:
The app had been created as a sales channel and installed on a development store, but the product could not be added to that channel.
A screenshot was used to show the app appearing under Sales Channels while product publishing options were missing.
There was also uncertainty about whether the app had been installed correctly from the Partner Dashboard.
Most important update:
The original issue was ultimately traced to app scopes, not the variant ID itself.
After requesting additional unauthenticated scopes and reinstalling the app, checkout creation worked.
Scopes reported as working:
write_checkouts
read_product_listings
unauthenticated_read_product_listings
unauthenticated_write_checkouts
unauthenticated_write_customers
unauthenticated_read_customer_tags
Current status:
The original poster resolved it.
Later replies say the same error still occurs for others, so the broader issue remains partly open.
How is it that you got the Sales Channel installed on your shop? Was this with the ‘Install on development shop/store’ (sorry, forgot the exact wording) button from the Partner Dashboard?
I think that’s worth a shot for sure - something seems off about your installation but it’s difficult to put a finger on exactly what that might be. I have a test Sales Channel and every time I install that it appears in the ‘Apps’ section of my shop admin, whereas yours does not.
Can you try the ‘Install on development store’ option from the Partner Dashboard? If you log into your Partner account and find your app, the option will be under the ‘App actions’ drop-down menu near the top of the page.
Sorry for the delay here - I’ve still been unable to replicate this, it’s a tricky one. Would it be safe to assume you’re still having the same problem?
If you can confirm that this hasn’t been resolved yet, I’ll report it to our engineering team so they can investigate further.