---
title: "Invalidate a specific Link"
method: POST
path: "/api/v1/links/{referenceId}/invalidate"
tags: ["Links"]
---

# Invalidate a specific Link

`POST /api/v1/links/{referenceId}/invalidate`

Cancel an unpaid payment link. Once invalidated, customers cannot make payments using this link.

## Path parameters

- `referenceId` string, required

## Response `201`

Link invalidated successfully

- object
  - `data` object
    - `referenceId` string
    - `id` string
    - `total` string
    - `currency` string
    - `paymentMethod` string
    - `status` string
    - `completedAt` string, nullable
    - `createdAt` string
    - `updatedAt` string
    - `url` string
    - `webhookUrl` string
    - `redirectionUrl` string
    - `linkExpiresIn` string — Duration until the payment link expires
  - `message` string

---

[API](https://skmtc.dev/thewayl/apis/wayl-api.md) · [All operations](https://skmtc.dev/thewayl/apis/wayl-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thewayl/wayl-api/revisions/ee660efc8daf/schema)
