# Release Blocked Funds (Cancel Pending Transaction)
source: https://developer.mastercard.com/mastercard-processing-core/documentation/use-cases/transactions-and-fees-management/release-blocked-funds/index.md

## Overview {#overview}

The use case describes how you cancel a pending transaction to release blocked funds.

## Sequence diagram {#sequence-diagram}

Diagram release-blocked-funds

### Explanation {#explanation}

1. The server sends a `PUT` request to the `/contracts/{contract_id}/transactions/{transaction_id}/releasing-blocked-funds` endpoint.
2. The API returns the HTTP status `200` with the `cancelHoldResult` field with any of the following values:
   * `RELEASE_FUNDS_PERFORMED` when blocked funds were released
   * `RELEASE_FUNDS_FAILURE` when blocked funds were not released

Refer to [Sandbox testing](https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/transactions-and-fees-management/release-blocked-funds/index.md) for information on how to execute the use case in the Sandbox environment.

## Endpoint {#endpoint}


API Reference: `PUT /contracts/{contract_id}/transactions/{transaction_id}/releasing-blocked-funds`

