Patel
Patel

Reputation: 621

Permission_Denied [google cloud platform]: This API method requires billing to be enabled

I am using Google Cloud platform's vision API to request the API. I am using the API key provided by them authentication documentation in this link. I am authenticating using the API key when I POST URL along with the API Key the following response arrived.

{
    "error": {
    "code": 403,
    "message": "This API method requires billing to be enabled. Please 
                 enable billing on project santram-194814 by visiting 
                 https://console.developers.google.com/billing/enable?
                 project=[my-project-name] then retry. If you enabled 
                 billing for this project recently, wait a few minutes for 
                 the action to propagate to our systems and retry.",
    "status": "PERMISSION_DENIED",
    "details": [
          {
          "@type": "type.googleapis.com/google.rpc.Help",
          "links": [
                 {
                  "description": "Google developers console billing",
                  "url": 
                 "https://console.developers.google.com/billing/enableproject=[my-project-name]"
      }
    ]
  }
]
  }
}

I cross checked my Console's Billing panel and it shows me:

Your payment information could not be processed. Visit the payment overview page to make sure your payment information is up to date and to pay any outstanding charges.

I am using the same sample application in my home machine It works fine

but I got this error in setting up another machine

Upvotes: 4

Views: 14006

Answers (1)

Serhii
Serhii

Reputation: 4461

Have a look at the documentation 90-day, $300 Free Trial:

The 90-day, $300 Free Trial period starts automatically when you complete your signup.

To complete your Free Trial signup, you must provide a credit card or other payment method to set up a Cloud Billing account and verify your identity.

Also, have a look at the error message:

Your payment information could not be processed. Visit the payment overview page to make sure your payment information is up to date and to pay any outstanding charges.

To solve you issue you should update your payment information, as it was suggested by @Shibboleet in the comment section.

Furthermore, 90-day, $300 Free Trial have some limitations that described in Program coverage.

Upvotes: 2

Related Questions