Hi,
I found out from a question posted by someone else that there is a relationship between returnLineItem
and fulfillmentLineItem
, allowing us to determine which fulfillmentLineItem
corresponds to a given returnLineItem
.
However, it seems that there is no such relationship between refundLineItem
and fulfillmentLineItem
.
Below is the query I used. If there is a way to determine which fulfillmentLineItem
corresponds to a given refundLineItem
, please let me know.
Additionally, In refund > order > fulfillments > fulfillmentLineItems
, all the fulfillmentLineItems
for the order associated with the refund are included, so it cannot be used to link refundLineItem
with a specific fulfillmentLineItem
.
query refund($id: ID!, $first: Int = 250) {
refund(id: $id) {
id
createdAt
updatedAt
return {
id
}
order {
fulfillments(first: $first) {
fulfillmentLineItems(first: $first) {
nodes {
id
quantity
lineItem {
id
}
}
}
}
}
refundLineItems(first: $first) {
nodes {
quantity
lineItem {
id
}
}
}
}
}