---
id: abort-paylink
title: Abort paylink
hide_title: true
description: "Abort a Pay Link"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Ingress from '../../../src/components/ingress/ingress.react';

<Ingress title="Abort a Pay Link">
    After a Pay Link is sent, it is possible to abort it via an api call.
    Once it is done, that checkout session is aborted and cannot be reused.
    A <a href="/docs/checkout/notificationcallback">notification callback</a> will be sent, and when <a href="/docs/checkout/getcheckoutinformation">fetching the checkout</a>, the status will be Aborted.
</Ingress>

:::info Important
You cannot abort a Pay Link when the user is [committed](/docs/checkout/getcheckoutinformation#datastatus) to a purchase, or if the purchase has already been completed. You will get HTTP error code 409 if committed, or custom error code 900 if already completed.
:::

## Abort Pay Link examples

<Tabs defaultValue="req" values={[
{ label: 'Request', value: 'req' },
{ label: 'Response', value: 'res' }
]}>

<TabItem value="req">

```http
DELETE /checkouts/1eec44b5-66d3-4058-a31f-3444229fb727 HTTP/1.1
Host: api.uat.walleydev.com
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...
```

</TabItem>

<TabItem value="res">

```http
HTTP/1.1 200 OK
Content-Type: application/json

{
  "id": "f5f4e86d-95b1-4c1a-8ad0-1d5907236bd7",
  "data": null,
  "error": null
}
```

</TabItem>

</Tabs>

## Request properties

**Request headers**

| Header            | Required | Explanation                                                                                                       |
| ----------------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
| **Authorization** | Yes      | See [how to generate the authorization header value](/docs/checkout/authorization).                               |
