# Cancel a Subscription

## Cancel a Recurrent Payment by ID

<mark style="color:green;">`DELETE`</mark> `/v1/recurrent_payments/<recurrent_payment_id>?deleted_by=merchant`

**Headers**

| Name         | Value               |
| ------------ | ------------------- |
| x-api-key    | `<your api key>`    |
| x-api-secret | `<your api secret>` |

**Response**

{% tabs %}
{% tab title="204" %}

```json
No content
```

{% endtab %}

{% tab title="400 | 404 | 500" %}

```json
{
    "messages": [
        "error message"
    ],
    "code": "error code"
}
```

{% endtab %}
{% endtabs %}
