# Change Billing Plan

{% hint style="danger" %}

## Project Management API is disabled from Feb 1st, 2023 onwards, so any request made to this en point will fail

{% endhint %}

This API allows you to change the billing plan of a project&#x20;

{% hint style="danger" %}
**Please note your account should have enough balance (Wallet credit) to upgrade a plan from Pay As You Go.**
{% endhint %}

## &#x20;Change Billing Plan

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/pm/change-billing`

This API allows you to change the billing plan of a project&#x20;

#### Request Body

| Name        | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token       | string | Your Master API Token for authentication                                                                                                                                                                                                                                                                                                                                                              |
| project\_id | string | Project Name for you reference maximum 20 characters allowed                                                                                                                                                                                                                                                                                                                                          |
| service     | number | <p>Specify the service for which the billing plan need to be changed<br><br>1 = Phone Automation<br>2 = WhatsApp Official</p>                                                                                                                                                                                                                                                                         |
| plan\_id    | number | <p>Pass the plan id to which the billing plan needs to be updated<br><br>1= Pay As You Go<br><br>2= Phone Automation Small<br>3= Phone Automation Medium<br>4 =Phone Automation Large<br>5= Phone Automation Unlimited<br>6 = Phone Automation Yearly Unlimited<br><br>7 = Medium WhatsApp Official Account<br>8 = Large WhatsApp Official Account<br>9 = Unlimited WhatsAp Official Account <br></p> |

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

```
{
   "status":100,
   "message":"Success",
   "old_billing_plan":"1",
   "new_billing_plan":2,
   "amount_debited":"5",
   "next_billing_date":"2020-07-16T23:59:59+00:00"
}
```

{% endtab %}
{% endtabs %}

## Response Variables&#x20;

| Variable            | Type    | Description                                                                                                                                                                                                                                                                                                                             |
| ------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| status              | numeric | <p>Status of the Request </p><p></p><p>100 = Sucess</p><p></p><p>Refer <a href="../references/status-and-error-codes">Error Codes</a> for complete Status Codes</p>                                                                                                                                                                     |
| message             | string  | Error or detailed response Message details                                                                                                                                                                                                                                                                                              |
| project\_id         | numeric | Project Id                                                                                                                                                                                                                                                                                                                              |
| old\_billing\_plan  | string  | <p>1= Pay As You Go<br></p><p>2= Phone Automation Small <br>3= Phone Automation Medium <br>4 =Phone Automation Large <br>5= Phone Automation Unlimited <br>6 = Phone Automation Yearly Unlimited<br></p><p>7 = Medium WhatsApp Official Account <br>8 = Large WhatsApp Official Account <br>9 = Unlimited WhatsApp Official Account</p> |
| new\_billing\_plan  | string  | <p>1= Pay As You Go<br></p><p>2= Phone Automation Small <br>3= Phone Automation Medium <br>4 =Phone Automation Large <br>5= Phone Automation Unlimited <br>6 = Phone Automation Yearly Unlimited<br></p><p>7 = Medium WhatsApp Official Account <br>8 = Large WhatsApp Official Account <br>9 = Unlimited WhatsApp Official Account</p> |
| amount\_debited     | numeric | Amount debited towards the activation of the plan in USD, not applicable for pay as you go plan                                                                                                                                                                                                                                         |
| next\_billing\_date | date    | next billing date and time in ISO Standard format                                                                                                                                                                                                                                                                                       |

## Sample Request Body JSON

```javascript
{
   "token":"132321343dsfsdf",
   "project_id":5786,
   "service":1,
   "plan_id":2
}
```

## Sample Response

```javascript
{
   "status":100,
   "message":"Success",
   "old_billing_plan":"1",
   "new_billing_plan":2,
   "amount_debited":"5",
   "next_billing_date":"2020-07-16T23:59:59+00:00"
}
```
