Refund duties with the GraphQL Admin API

API versions 2020-04 and higher

This guide explains how to use the GraphQL Admin API to preview and refund duties. To manage duties, you need to have a development store with the Shopify Markets developer preview enabled.

Duties are calculated per line item, and can be viewed as a field of the LineItem object in the Admin API. Before refunding duties with the refundCreate mutation, you can preview the refund with the suggestedRefund query.

Refer to the GraphQL Admin API reference for more information on objects and mutations related to orders and refunds.