I am going to refund full order amount.
So i wanted to get total amount by calling Refund->calculator api.
Here's the parameter that i used.
"currency" => "USD", "shipping" => [ "full_refund" => true ]
But this returns "refund - Required parameter missing or invalid".
What should be included in parameters?
Solved! Go to the solution
Yes, it works.
I have one more question.
I got calculated data and tried to use that for creating a refund.
But i get this error. "base - either refund line items or transactions must be present".
"refund" => [ "currency" => "USD", "shipping" => [ "full_refund" => true ], "refund_line_items" => $line_items, "transactions" => $transactions, ]$line_items are same as when I post calculate api.