Refund calculate

Solved
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
Shopify Staff
42 10 9

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
Shopify Staff
42 10 9

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 5

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