Hiya,
So this is an interesting one.. when performing a cancel call on an order, it is left with ‘payment_pending’ as the Financial Status, but an overall status of cancelled.
I’ve followed this up with a refund in the same call, but the same happens.
When trying to call a refund on it’s own I get “Required parameter missing or invalid”
Here is my json:
{
"refund": {
"note": "Customer made a mistake",
"currency": "GBP",
"shipping": {
"full_refund": true
},
"refund_line_items": [
{
"line_item_id": 6071127310489,
"quantity": 1,
"restock_type": "cancel",
"location_id": 55286497433
}
],
"transactions": [
{
"parent_id": 3437206929561,
"amount": "1000.01",
"kind": "void",
"gateway": "Finance"
}
]
}
}
The only thing I can think of is the parent_id on the transaction. When looking this value up, it actually returns null. (These Orders are done either by a Manual Payment Method via the Checkout, or alternatively created initially via the Drafts Order API, in both cases I get the same problem).
Here is the result of me retrieving the transactions:
{
"transactions": [
{
"id": 3437206929561,
"order_id": 2802937725081,
"kind": "sale",
"gateway": "Hitachi Finance",
"status": "pending",
"message": "Pending the Hitachi Finance payment from the buyer",
"created_at": "2020-10-07T19:36:47+01:00",
"test": false,
"authorization": null,
"location_id": null,
"user_id": null,
"parent_id": null,
"processed_at": "2020-10-07T19:36:47+01:00",
"device_id": null,
"receipt": {},
"error_code": null,
"source_name": "580111",
"amount": "1000.01",
"currency": "GBP",
"admin_graphql_api_id": "gid:\/\/shopify\/OrderTransaction\/3437206929561"
}
]
}
Any ideas?
Thanks in Advance,
Ceri.
