Reduce usage charge when an order is cancelled

19 1 4

Our App is charging the merchant a percentage of the amount on the paid order.

We listen to "orders/paid" webhook and then call the AppUsageCharge Graphql API to charge the merchant. But if and when the order is canceled, we also want to revert the charge we did earlier when the order is paid. 

Is there a possibility to reduce the usage charge with API(GraphQL/API)? If not, any ideas on how to work around this?

Thanks in advance!