I’m trying to get suggestedRefund for a multi-currency order.
The query used:
query SuggestedRefund($id: ID!, $refundLineItems: [RefundLineItemInput!], $suggestFullRefund: Boolean, $refundShipping: Boolean, $shippingAmount: Money) {
order(id: $id) {
id
suggestedRefund(refundLineItems: $refundLineItems, suggestFullRefund: $suggestFullRefund, refundShipping: $refundShipping, shippingAmount: $shippingAmount) {
suggestedTransactions {
amountSet {
presentmentMoney {
amount
currencyCode
}
shopMoney {
amount
currencyCode
}
}
maximumRefundableSet {
presentmentMoney {
amount
currencyCode
}
shopMoney {
amount
currencyCode
}
}
}
}
}
}
Variables:
{
"id": "gid://shopify/Order/6642027790622",
"refundLineItems": [],
"suggestFullRefund": false,
"refundShipping": false,
"shippingAmount": 100
}
And the error is: ““ShippingAmountV2 required for multi currency orders.””.
But there’s no ShippingAmountV2 field anywhere, this type cannot be used for shipping amount, documentation does not tell anything about ShippingAmountV2 too
Please advise how to fix the issue. The same calculation works fine in REST API.