How to Create Partial Delivery and refund via REST API

I am some issue with unable to create partial delivery and refund.