I am trying to use cartCreate API through Postman, but not getting success result
here I am sharing my request body
QUERY
mutation cartCreate($input: CartInput!) {
cartCreate(input: $input) {
cart {
id
}
userErrors {
field
message
}
}
}
GRAPHQL VARIABLES
{
“input”: {
“lines”: [
{
“quantity”: 5,
“merchandiseId”: “gid://shopify/ProductVariant/XXXXXXXX386”
},
{
“quantity”: 2,
“merchandiseId”: “gid://shopify/ProductVariant/XXXXXXXX034”
}
]
}
}
RESPONSE
{
“errors”: [
{
“message”: “CartInput isn’t a defined input type (on $input)”,
“locations”: [
{
“line”: 1,
“column”: 21
}
],
“path”: [
“mutation cartCreate”
],
“extensions”: {
“code”: “variableRequiresValidType”,
“typeName”: “CartInput”,
“variableName”: “input”
}
},
{
“message”: “Field ‘cartCreate’ doesn’t exist on type ‘Mutation’”,
“locations”: [
{
“line”: 3,
“column”: 3
}
],
“path”: [
“mutation cartCreate”,
“cartCreate”
],
“extensions”: {
“code”: “undefinedField”,
“typeName”: “Mutation”,
“fieldName”: “cartCreate”
}
},
{
“message”: “Variable $input is declared by cartCreate but not used”,
“locations”: [
{
“line”: 1,
“column”: 1
}
],
“path”: [
“mutation cartCreate”
],
“extensions”: {
“code”: “variableNotUsed”,
“variableName”: “input”
}
}
]
}
Please help me out. Thanks