You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are refunding an order but the item being refunded has return shipping cost (a variable we use on our side), so we are subtracting that from the amount.
This is failing on a productive shop, but if we use test mode or bogus payment method the error wont appear and the refund will be created.
In the tests environments the refund is created with an order_adjustment. In the other hand when we try refunding in productive shops neither the refund nor the order_adjustment are created.
Hey @brannbot yes, we faced this issue with a plus merchant. It's weird if they're trying to do a full refund, that should'nt happen. If you execute the calculate that will return the amount to be refunded, and then when sneding the refund you could modify that. Not sure if I'm helping you. Maybe your best option is to contact Shopify Support for that plus merchant.
Issue summary
We are refunding an order but the item being refunded has return shipping cost (a variable we use on our side), so we are subtracting that from the amount.
This is failing on a productive shop, but if we use test mode or bogus payment method the error wont appear and the refund will be created.
In the tests environments the refund is created with an
order_adjustment
. In the other hand when we try refunding in productive shops neither the refund nor theorder_adjustment
are created.EXAMPLE:
shopify_api
version: 21.4.1Expected behavior
Shopify should create the adjustment to the order and refund the amount.
Actual behavior
The error message:
{"errors"=>{"base"=>["Arbitrary refund not allowed"]}}
Steps to reproduce the problem
order_id
andline_item_id
from an order with a real payment (not a test mode payment)/orders/#{order_id}/refunds/calculate
endpoint (POST)Sample payload:
amount - return_shipping_cost_cents
)Sample payload refunds endpoint:
orders/#{order_id}/refunds
:=> {"errors"=>{"base"=>["Arbitrary refund not allowed"]}}
The text was updated successfully, but these errors were encountered: