---
description: To Cancel a particular smart send payment link.
---

# Cancel Smart Send

{% tabs %}
{% tab title="Production" %}
[https://payout.payumoney.com/payout/v2/smartSend/cancel/{smartSendId}](https://payout.payumoney.com/payout/v2/smartSend/cancel/%7BsmartSendId%7D)
{% endtab %}

{% tab title="Testing" %}
https://test.payumoney.com/payout/v2/smartSend/cancel/{smartSendId}
{% endtab %}
{% endtabs %}

## Request Headers

| Key           | **Description**                                   | Data Type | Mandatory | Possible Value          |
| ------------- | ------------------------------------------------- | --------- | --------- | ----------------------- |
| Authorization | Access token generated earlier.                   | String    | Yes       |  Bearer {access\_token} |
| pid           | This is the merchant id provided while onboarding | String    | Yes       |                         |

**Example**

Content-Type : application/json

Method: POST

**Curl:**

```
curl --location --request PUT 'https://payumoney.com/payout/v2/smartSend/cancel/28901' \
--header 'authorization: Bearer b6c0782b9eb08b43681776bad60ca1894a8421539e7c96c9aa32c0805994046d' \
--header 'pid: 1111312' \
--header 'Cookie: ApplicationGatewayAffinity=1dc65bfbfb8a3c29019e96ae8070c323; ApplicationGatewayAffinityCORS=1dc65bfbfb8a3c29019e96ae8070c323'
```

**Response:**&#x20;

```
{
	"status": 0,
	"msg": "Smart send link cancelled",
	"code": null,
	"data": null
}
```

## Cancel Link

<mark style="color:orange;">`PUT`</mark> `https://payout.payumoney.com/payout/v2/smartSend/cancel/12121`

This endpoint allows you to get free cakes.

#### Path Parameters

| Name        | Type   | Description   |
| ----------- | ------ | ------------- |
| smartSendId | string | Smart Send Id |

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| pid            | string | Payout Merchant Id   |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 " %}
{% tabs %}
{% tab title="Successfully Cancelled" %}
```
{
	"status": 0,
	"msg": "Smart send link cancelled",
	"code": null,
	"data": null
}
```
{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

