---
title: "Cancel link"
method: DELETE
path: "/api/payments/{paymentId}"
tags: ["Generate or cancel"]
---

# Cancel link

`DELETE /api/payments/{paymentId}`

Cancel a previously-generated link by supplying the unique paymentId which is returned to you in the payment response.

For more information, see the [documentation](https://developer.peachpayments.com/docs/cancel-link).

## Path parameters

- `paymentId` string, required

## Response `200`

OK.

- MessageResponse
  - `message` string, required

## Other responses

- `401` — Request lacks valid authentication.
- `404` — The specified resource was not found.

---

[API](https://skmtc.net/peachpayments/apis/checkout.md) · [All operations](https://skmtc.net/peachpayments/apis/checkout/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peachpayments/checkout/revisions/3a98165665f8/schema)
