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
644 78 141

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
Highlighted
New Member
2 0 1

I had a similar problem. My client's refund calculation also returns an empty transaction array.

The order that I am trying to refund has a positive-value item and it is NOT refunded yet. Please help check why the transactions array is empty. The x-request-id is as below.

d6cb0845-6d12-4c78-91df-5a286417ae84

This is a real order in production (so I cannot post the order detail here). It is impacting Shopify customers who is using my app.

We are making this API call on behalf of our merchants. Please advise.

Thank you very much!

 

0 Likes