---
page_title: Cancel a subscription
product: LotusPay
platform: Web
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/cancel-a-subscription
openapi: https://juspay.io/in/docs/api/swagger?document=https%3A%2F%2Fjuspay.io%2Fin%2Fdocs%2Flotuspay%2Fweb%2Fcore-resources%2Fcancel-a-subscription
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/lotuspay/llms.txt
---

## API Version: default


# **Cancel a subscription** 



Cancels an existing subscription object. Supply the unique subscription identifier. Has no effect on the status of the mandate.

**ARGUMENTS** 


| Argument | Description |
|---|---|
| subscription REQUIRED	 | The identifier of the subscription to be cancelled. |


**Returns**  Returns a cancelled subscription object if a valid identifier was provided.## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/subscriptions/{ID}/cancel

- Production: https://api-test.lotuspay.com/v1/subscriptions/{ID}/cancel

## Request Type: 
POST

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value:  sk_test_XjIHowXWSI23uvjepz2X82
## Sample Code Snippets:
### Sample Request and Response:

#### Request:
```Shell
$ curl https://api-test.lotuspay.com/v1/subscriptions/SB0044GG221AA/cancel \
   -u sk_test_XjIHowXWSI23uvjepz2X82: \
   -X POST \
```

#### Response:
```json
{
    "id": "SB004433221AA",
    "object": "subscription",
    "created": 1530224170,
    "livemode": false,
    "metadata": {
    },
    "amount": 10000,
    "count": 2,
    "day_of_month": 23,
    "interval": "month",
    "interval_count": 2,
    "month": null,
    "name": "Order 123",
    "start_date": "2018-12-02",
    "status": "cancelled",
    "customer": "CU0012345ABCDE",
    "mandate": "MD0011DD22RR33",
    "plan": null
  }
  
```

## API Responses:


---

## See Also

- [Update a subscription](https://juspay.io/in/docs/lotuspay/web/core-resources/update-a-subscription)
- [List all subscriptions](https://juspay.io/in/docs/lotuspay/web/core-resources/list-all-subscriptions)
