Hi All,
I’m getting an invalid ID error that I cant really make heads or tails of.
I have an order that I am getting the suggested refund to return an item. The order exists and the result appears correct.
{
"orderId": "gid://shopify/Order/6207980994765",
"refundLineItems": [
{
"lineItemId": "gid://shopify/LineItem/15546619199693",
"quantity": 1,
"restockType": "NO_RESTOCK"
}
]
}
"data": {
"order": {
"suggestedRefund": {
"suggestedTransactions": [
{
"gateway": "manual",
"parentTransaction": {
"id": "gid://shopify/OrderTransaction/7478517301453"
},
"amountSet": {
"presentmentMoney": {
"amount": "48.0",
"currencyCode": "CHF"
}
}
}
]
}
}
},
However, when trying to use the returned suggested transaction in the refundCreate I get an error.
{
"input": {
"orderId": "gid://shopify/Order/6207980994765",
"refundLineItems": [
{
"lineItemId": "gid://shopify/LineItem/15546619199693",
"restockType": "NO_RESTOCK",
"quantity": 1
}
],
"transactions": [
{
"orderId": "gid://shopify/order/6207980994765",
"kind": "REFUND",
"gateway": "manual",
"amount": 48.00
}
]
}
}
"errors": [
{
"message": "invalid id",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"refundCreate"
]
}
],
Not sure how any of the ids can be invalid. Unfortunately line 2, column 3 also doesnt really help me figure it out. The orderId is definitely correct, since its the once i used to generate the suggested refund in the first place.
anyone run into something similar or have an idea what the issue is?
Cheers,
Gary