API Error 402: Payment Required

An HTTP 402: Payment Required error occurs when your account is past due and you try to make a request to the API. Bonsai only provides API access to accounts which are up to date on payments.

If you are receiving an HTTP 402: Payment Required error, then there is a balance due on your account. You can update your billing information in your account profile. If you run into any issues, there is documentation available here.


A call to the API which results in an HTTP 402: Payment Required error may look something like this:

  "errors": [
    "Your account has been suspended due to non-payment. Please update your billing information or contact support@bonsai.io."
  "status": 402

The "status": 402 key indicates the HTTP 402: Payment Required error.


The first thing to do is navigate to your billing profile and make sure your account is up to date. You can update your credit card if needed, and review any recent invoices. Additionally, you should check your inbox and spam folders for any billing-related notices from Bonsai.

If everything seems correct with your account, you can always contact support and we will be glad to assist.