draftOrderCreate graphQL mutation failing suddenly

Hi All, I am pretty new to the shopify development , So The Draftorder Api is returning the Null Pointer expection for the Graphql query we are sending to shopify, I need some help on this , PLease guide me.

Here is the graphgl query mutation we are sending

mutation {
  draftOrderCreate(draftOrder: {
    lineItems: [
         #foreach( $lineItem in $lineItems )
            {
                variantId: "$lineItem.id"
                quantity: $lineItem.quantity
            }
         #end
        ]
  }) {
    draftOrder {
      id
      invoiceUrl
    }
    userErrors {
      field
      message
    }
  }
}

And thats throwing an Null pointer when trying to checkout .