Discussing APIs and development related to customers, discounts, and order management.
Hello,
i'm trying to ..
The currency has "INR" value
But it returns the error message expected String to be a Id
Hi,
if i am not wrong then your POST body is not right.
please change it:
you must have to provide the shipping price inside so that shopify endpoint can calculate the refunds with shipping price.
please follow this Data structure:
{"refund":{"currency":"USD","shipping":{"amount":2.0}}}
i hope this will solve your issue.
Thanks
Hello Muhammadsalmank,
Thank you for you time. The problem was with the 'responseType: "json"' key-value pair. After removing it, the process worked successfully.