Skip to content

Remove draw rate

Request

This endpoint is used for removing a single interest or promo rate. The deletion of an interest rate cannot lead to a gap in the loan where there is no reference rate.

Rates where setAtActivation is true can only be deleted with a special force permission.

Security
oauth2(Required scopes: rates:delete) or bearerAuth or apiKeyHeader
Path
personIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

A Borrower's unique identifier, tied to a person or a business. Can be Peach or a lender's external identifier.

loanIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

The unique identifier of the Loan we wish to retrieve. Can be Peach or lender's external identifier.

drawIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

The draw identifier.

rateIdstringrequired

Unique identifier of an interest or promo rate.

Query
caseIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-only

Filter by case's object unique identifier. Can be Peach or lender's external identifier.

DELETE
/people/{personId}/loans/{loanId}/draws/{drawId}/rates/{rateId}
curl -i -X DELETE \
  'https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/draws/{drawId}/rates/{rateId}?caseId=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success