Closed patelgaurav4u closed 4 years ago
@dbart01 please look into this , this is facing in live application
this is api version related issue.
Hello @patelgaurav4u 👋 What is the actual error you are seeing when you call createCheckout? And can you confirm what version of the sdk you're using?
we got "__typename" in response even i have't pass in Query for DiscountApplicationQuery in SDK 3.3.2
This is not an issue.
yes , i realize this things , but please update your demo code according the features
I am getting
check this mutation for createcheckout
mutation{checkoutCreate(input:{lineItems:[{quantity:1,variantId:"Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8zMTgyMzg3OTIwOTAzMg=="},{quantity:1,variantId:"Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8zMTgyMzg3OTU2OTQ4MA=="}],allowPartialAddresses:true}){checkoutUserErrors{field,message},checkout{id,ready,requiresShipping,taxesIncluded,email,order{id,orderNumber,totalPrice},discountApplications(first:250){edges{node{__typename,... on DiscountCodeApplication{applicable,code},... on ManualDiscountApplication{title},... on ScriptDiscountApplication{description}}}},shippingDiscountAllocations{allocatedAmount{amount,currencyCode},discountApplication{__typename,... on DiscountCodeApplication{applicable,code},... on ManualDiscountApplication{title},... on ScriptDiscountApplication{description}}},shippingAddress{firstName,lastName,phone,address1,address2,city,country,countryCodeV2,province,provinceCode,zip},shippingLine{handle,title,price},note,lineItems(first:250){edges{cursor,node{variant{id,price},title,quantity,id,discountAllocations{allocatedAmount{amount,currencyCode},discountApplication{__typename,... on DiscountCodeApplication{applicable,code},... on ManualDiscountApplication{title},... on ScriptDiscountApplication{description}}}}}},webUrl,currencyCode,subtotalPrice,totalTax,totalPrice,paymentDue}}}