Calculate Refund API is returning empty Transactions array

Highlighted
Tourist
4 0 1

We are calling the calculate refund API

https://shopify.dev/docs/admin-api/rest/reference/orders/refund?api[version]=2020-01#calculate-2020-...

before calling the create refund API

https://shopify.dev/docs/admin-api/rest/reference/orders/refund?api[version]=2020-01#create-2020-01

 

Calculate endpoint returns "transactions"=>[]

Line items have prices and also order itself has non-zero transactions 

0 Likes
Highlighted
Tourist
4 0 1

Can someone please help me with it?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
464 57 91

Hey @Ulan_Dj,

Can you kindly provide the body of the call you're making (with any sensitive data removed), as well as the order_id?

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Tourist
4 0 1

Hey!

I noticed that the orders with such issue have "gateway => sage_pay". Could this be the reason of returning an empty transactions array? https://community.shopify.com/c/Payments-Shipping-Fulfillment/SagePay-and-refunds/td-p/428233

How can we create refunds if it is the case?

 

We send requests according to the https://shopify.dev/docs/admin-api/rest/reference/orders/refund?api[version]=2020-01#calculate-2020-... :

{
  "refund": {
    "currency": "GBP",
    "shipping": {
      "full_refund": false,
"amount": 0 }, "refund_line_items": [ { "line_item_id": XXXXXX, "quantity": 1, "restock_type": "no_restock",
"location_id": YYYYYYY } ] } }

 

0 Likes