On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-plans-intro/recur-bill-deactivating-a-plan.md)  
Filter  
FILTER BY TAG

Deactivating a Plan {#recur-bill-deactivating-a-plan}
=====================================================

You can deactivate a specific plan that has an active status.  
Follow these steps to deactivate a plan:

1. In the endpoint path, include the plan ID that you received when you retrieved a list of plans.
2. Send the request to the Recurring Billing endpoint:  
   Production: `POST https://api.cybersource.com/rbs/v1/plans/{id}/deactivate`  
   Test: `POST https://apitest.cybersource.test.com/rbs/v1/plans/{id}/deactivate`
3. Verify that the request was successful. A 200-level HTTP response code indicates success. For information about response codes, see [Transaction Response Codes](https://developer.cybersource.com/api/reference/response-codes.md "").{#recur-bill-deactivating-a-plan_d9e19}

REST Example: Deactivating a Plan {#recur-bill-deactivate-a-plan-examples}
==========================================================================

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "href": "/rbs/v1/plans/1619214189",
            "method": "GET"
        },
        "activate": {
            "href": "/rbs/v1/plans/1619214189/activate",
            "method": "POST"
        }
    },
    "id": "1619214189",
    "status": "COMPLETED",
    "planInformation": {
        "code": "1619214189",
        "status": "INACTIVE"
    }
}
```

Error Response

```
{
    "status": "INVALID_REQUEST",
    "reason": "INVALID_DATA",
    "message": "One or more fields in the request contains invalid data.",
    "details": [
        {
            "field": "planInformation.status",
            "reason": "INVALID_DATA"
        }
    ]
}
```

RELATED TO THIS PAGE

