Creating a draft order with a company, location and company contact using draftOrderCreate mutation

Hello,

I am Creating a draft order with a company, location, and company contact. and following the draftOrderCreate (shopify.dev) documentation. but when I try it always returns me “invalid id” error. I am testing this on my dev store can you help me with this

Details:

mutation draftOrderCreate($input: DraftOrderInput!) {
draftOrderCreate (input: $input) {
draftOrder {
id
}
userErrors {
message
field
}
}
}

{
“input”:
{
“appliedDiscount”: null,
“billingAddress”: null,
“customAttributes”: ,
“email”: “namita@chiefss.com”,
“lineItems”: [
{
“appliedDiscount”: null,
“customAttributes”: null,
“quantity”: 1,
“sku”: “14”,
“title”: “”,
“variantId”: “gid://shopify/ProductVariant/14322100830484”,
“taxable”: false
}
],
“purchasingEntity”: {
“customerId”: “gid://shopify/Customer/6798440136980”,
“purchasingCompany”: {
“companyContactId”: “gid://shopify/Customer/6798440136980”,
“companyId”: “gid://shopify/Company/1895072020”,
“companyLocationId”: “gid://shopify/CompanyLocation/1918632212”
}
},
“metafields”: null,
“note”: “”,
“paymentTerms”: null,
“phone”: “”,
“poNumber”: null,
“shippingAddress”: null,
“shippingLine”: {
“price”: 0.0,
“title”: “”,
“shippingRateHandle”: “”
},
“tags”: [
“sales_rep_amruta979”
],
“useCustomerDefaultAddress”: false
}
}

Error Message:

“data”: {
“draftOrderCreate”: null
},
“errors”: [
{
“message”: “invalid id”,
“locations”: [
{
“line”: 2,
“column”: 4
}
],
“path”: [
“draftOrderCreate”
]
}
]

I did validated all my ids. and its all valid.