Refund API - Getting a Refund Badge + Remove refund button from order

I’m using the Refund REST API to mark an order as refunded, but instead of returning the actual money at this call, we issue store credit to the customer.

After calling the refund API, the order’s timeline shows that the order has been refunded. However, I don’t see the “Refunded” badge, and the Shopify “native” refund button is still visible (see attached image).

Is there a way to display the refund badge and remove the refund button from the order page after such refund call?