Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Refund calculate

Solved

Refund calculate

john_watson_1
Visitor
2 0 0

Hello, everyone. Can someone help me with figuring out whether Shopfy API has an alternative for refunds/calculate.json endpoint (link below) in GraphQL. 
https://shopify.dev/api/admin-rest/2022-04/resources/refund#post-orders-order-id-refunds-calculate

Accepted Solution (1)

JamesG
Shopify Staff
42 10 11

This is an accepted solution.

Hey @john_watson_1 

 

The GraphQL admin API doesn't require a refund to be "calculated" in a separate call like with REST, it uses the refundCreate mutation instead. 

 

Hope that helps.

JamesG | API 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

View solution in original post

Replies 2 (2)

JamesG
Shopify Staff
42 10 11

This is an accepted solution.

Hey @john_watson_1 

 

The GraphQL admin API doesn't require a refund to be "calculated" in a separate call like with REST, it uses the refundCreate mutation instead. 

 

Hope that helps.

JamesG | API 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

Elrendio
Shopify Partner
14 0 6

Order.suggestedRefund seems to be what you're looking for.