Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to get order's CalculatedLineItem when using orderEditAddLineItemDiscount

How to get order's CalculatedLineItem when using orderEditAddLineItemDiscount

AL33
Shopify Partner
43 0 3

Hi,

 

I am using the orderEditAddLineItemDiscount function, I can get the CalculatedOrder by follow code:

mutation beginEdit{
orderEditBegin(id: "gid://shopify/Order/1234"){
calculatedOrder{
id
}
}
}

 

But how can I get the CalculatedLineItem id when using orderEditAddLineItemDiscount ?

 

Another question, does the line item of the order have an updatable reference field?

Replies 0 (0)