Hi everyone, I am developing a sales channel app using the checkoutCreate mutation of the storefront API. (API ver. 2022-10)
mutation {
checkoutCreate(input: {
lineItems: [
{
variantId: "gid://shopify/ProductVariant/00000000000000",
quantity: 1
}
]
shippingAddress: {
zip: "00000",
country: "France",
province: "example",
city: "example",
address1: "example",
firstName: "example",
lastName: "example"
}
}) {
checkout {
id
webUrl
availableShippingRates {
shippingRates {
handle
price {
amount
}
title
}
}
}
checkoutUserErrors {
field
message
}
}
}
Sometimes are succeed, but other times are failed with the following error, even though the same variantId and quantity.
{
"data": {
"checkoutCreate": {
"checkout": null,
"checkoutUserErrors": [
{
"field": [
"input",
"lineItems",
"0",
"variantId"
],
"message": "Variant is invalid"
}
]
}
}
}
Do you have any idea of solutions or a cause of the problem?