How to Identify refund created against a return vs miscellenous refund

pooja_zakhariya
Tourist
11 0 2

Hello,

I am integrating Shopify with ERP system using REST API.

Is there a way to identify whether a refund created is against a return of product or is it a miscellaneous refund like Customer Loyalty, Late delivery or any other refund etc from API data.

Based on refund type we need to generate accounting entries. If refund is for return of any item we need to generate separate entries and if it any kind of discount or something entries will be different.

Any help is appreciated.

 

Thanks,

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
213 27 39

Hey @pooja_zakhariya 

Under the refund endpoint we do provide a "kind" and "reason" field which should give you the information you are requesting. See here for details. 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes