A captured transaction can be refunded by calling the POST /transactions/{transaction_id}/refunds API. Refunds can be full or partial.

If the transaction was not yet successfully captured, the operation will fail. Authorized transactions can be voided instead.