---
title: "Cancels a pending payment link."
method: PUT
path: "/finance/v1/folios/{folioId}/payments/{paymentId}/cancel"
tags: ["FolioPayments"]
---

# Cancels a pending payment link.

`PUT /finance/v1/folios/{folioId}/payments/{paymentId}/cancel`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/finance/v1/folios/{folioId}/payments/{paymentId}/cancel`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `folios.manage`, `admin`

Sets a pending payment with payment link to cancelled and triggers the cancellation.<br>You must have this scope: 'folios.manage'.<br>For fine-grained clients, you must have this permission: 'core.folio_payments.cancel'.

## Path parameters

- `folioId` string, required
- `paymentId` string, required

## Response `204`

Success

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-finance-api.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-finance-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-finance-api/revisions/6f1d524c1ea7?raw)
