> For the complete documentation index, see [llms.txt](https://help.pickyassist.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickyassist.com/api-documentation-v2/project-management-api/change-billing-plan.md).

# 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="/pages/-LlMOaMoytoRH2cy9J06">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"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.pickyassist.com/api-documentation-v2/project-management-api/change-billing-plan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
