checkout not able to add line item in check out

Highlighted
New Member
1 0 0
{
    "errors": [
        {
            "message""Variable $input of type CheckoutCreateInput! was provided invalid value for lineItems.0.variantId (Invalid global id `35408080076965`)",
            "locations": [
                {
                    "line"1,
                    "column"25
                }
            ],
            "extensions": {
                "value": {
                    "lineItems": [
                        {
                            "quantity"1,
                            "variantId"35408080076965
                        }
                    ],
                    "shippingAddress": {
                        "firstName""STS",
                        "lastName""kjhkj",
                        "city""Boston",
                        "company""Xyz",
                        "country""CA",
                        "phone""09876543211",
                        "address1""Demo Sys jke",
                        "address2""Deni  sys"
                    },
                    "note""dskljfdsdlkjflksdf"
                },
                "problems": [
                    {
                        "path": [
                            "lineItems",
                            0,
                            "variantId"
                        ],
                        "explanation""Invalid global id `35408080076965`",
                        "message""Invalid global id `35408080076965`"
                    }
                ]
            }
        }
    ]
}
0 Likes
Highlighted
Shopify Partner
520 38 109

If we are talking about GraphQL API endpoints, don't the global ID's start out like gid://shopify/LineItem/{line_item_id} ? 

0 Likes