Dreaft order api

sivainguva
New Member
11 0 0

So we updated our draftorder api just but the shipping method doesnot show up at all it says your cart has been updated and your product was unable to ship.So here is my observation

mutation {
draftOrderCreate(input: {
customerId: "$userId",
customAttributes: [
#if( $quoteId )
{
key: "Quote ID",
value: "$quoteId"
}
#end
#if( $poNumber )
{
key: "PO Number",
value: "$poNumber"
}
#end
]
#if( $note )
note: "$note"
#end
#if ( $tags )
tags: "$tags"
#end
lineItems: [
#foreach( $lineItem in $lineItems )
{
variantId: "$lineItem.id"
quantity: $lineItem.quantity
}
#end



 so if i pass the query like this i am able to move forward from checkout but if i add the 

requiresShipping: $lineItem.shipping.required

  I am not able to checkout as well. PLease help

0 Likes