# Cancel Subscription

**Description**

Cancel a subscription by uuid. Only SEND and ONGOING subscription can be cancelled

<table border="1" id="bkmrk-endpoint-%3A-https%3A%2F%2Fd" style="border-collapse: collapse; width: 100%; height: 178.781px;"><colgroup><col style="width: 22.1261%;"></col><col style="width: 2.73345%;"></col><col style="width: 75.1405%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Endpoint**</td><td style="height: 29.7969px;">**:**</td><td style="height: 29.7969px;">[https://demo-api.frontpayment.no/api/v1/connect/subscriptions/cancel/](https://demo-api.frontpayment.no/api/v1/connect/subscriptions/list/){subscriptionUuid}</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Method**</td><td style="height: 29.7969px;">**:**</td><td style="height: 29.7969px;">POST</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Authorization**</td><td style="height: 29.7969px;">**:**</td><td style="height: 29.7969px;">Bearer</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Request Payload**</td><td style="height: 29.7969px;">**:**</td><td style="height: 29.7969px;">```json
{
    "note": "String"
}
```

  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Response Structure**</td><td style="height: 29.7969px;">**:**</td><td style="height: 29.7969px;"> ```json
{
    "status_code": 201,
    "status_message": "OK",
    "message": "successfullyCancelledSubscription",
    "is_data": true,
    "data": "Array"
}
```

</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Example Response**</td><td style="height: 29.7969px;">**:**</td><td style="height: 29.7969px;">```json
{
    "status_code": 201,
    "status_message": "OK",
    "message": "successfullyCancelledSubscription",
    "is_data": true,
    "data": []
}
```

```json
{
    "status_code": 400,
    "status_message": "Conflict of Business Logic ",
    "message": "cannotCancelSubscription",
    "is_error": true,
    "errors": []
}
```

</td></tr></tbody></table>