On This Page

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

Activating a Plan {#recur-bill-activating-a-plan}
=================================================

You can activate a plan that has a draft or inactive status and that has never been assigned to any subscriptions.  
Follow these steps to activate 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}/activate`  
   Test: `POST https://apitest.cybersource.test.com/rbs/v1/plans/{id}/activate`
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-activating-a-plan_d9e19}

REST Example: Activating a Plan {#recur-bill-activate-a-plan-examples}
======================================================================

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "href": "/rbs/v1/plans/1619214189",
            "method": "GET"
        },
        "update": {
            "href": "/rbs/v1/plans/1619214189",
            "method": "PATCH"
        },
        "deactivate": {
            "href": "/rbs/v1/plans/1619214189/deactivate",
            "method": "POST"
        }
    },
    "id": "1619214189",
    "status": "COMPLETED",
    "planInformation": {
        "code": "1619214189",
        "status": "ACTIVE"
    }
}
```

Error Response

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

RELATED TO THIS PAGE

