# Cancel transaction

Endpoint: POST /people/{personId}/loans/{loanId}/transactions/{transactionId}/cancel
Version: 2025-03-26
Security: oauth2, bearerAuth, apiKeyHeader

## Path parameters:

  - `personId` (string, required)
    A Borrower's unique identifier, tied to a person or a business. Can be Peach or a lender's external identifier.

  - `loanId` (string, required)
    The unique identifier of the Loan we wish to retrieve. Can be
Peach or lender's external identifier.

  - `transactionId` (string, required)
    Transaction ID. Can be Peach or lender's external identifier.

## Query parameters:

  - `cancelReason` (string)

  - `clearExternalId` (boolean)
    If `true`, will clear the external ID for the object.

