Hi!
I have sales channel app, which has feature or creating checkouts.
We doing this via GraphQL mutation and it’s ok :
mutation {
checkoutCreate(input: {
lineItems: [{variantId: "BASE64_VARIANT_ID", quantity: 1},]
}) {
checkout {
id
webUrl
}
checkoutUserErrors {
code
field
message
}
}
}
But it seems that sometimes it working strange - on some shops we receive error
[{'code': 'INVALID', 'field': ['input', 'lineItems', '0', 'variantId'], 'message': 'Variant is invalid'}]
And it’s okay, but when I try to put this items in the cart and make checkout via shopify website - everything is going good.
The product has “Continue selling when out of stock” enabled, and variant is exists in the dashboard.
What can cause this problem ?