Feature "invoice" not enabled for project

54 views
Skip to first unread message

Cloud Google

unread,
Jul 28, 2020, 8:08:33 AM7/28/20
to Google Cloud Developers
Hi,

we have a requirement to extract the invoice from pdf formats, we went through the documentation and able to extract the data,

but having an issue with the document type "invoice".

const request = {
        parent,
        inputConfig: {
            gcsSource: {
                uri: gcsInputUri,
            },
            mimeType: 'application/pdf',
        },
        documentType: "invoice"
    }

Error in node js code = "Feature "invoice" not enabled for project" 

We filled the document and sent for approval, 

Ideally how much time it will take to get an approval/review the request?

Is there any other issue while looking at error?.

If someone helps to understand the error it would be helpful.


George (Cloud Platform Support)

unread,
Jul 28, 2020, 8:50:02 AM7/28/20
to Google Cloud Developers
You have followed the right procedure, as this feature is in a pre-release state. There is no actual error, you just need to get approval, to use this feature. After you submit the form, the Document AI team will review your request to ensure you meet the criteria for access. If approved, you will receive an email with instructions on how to access and use the Invoice feature. It is difficult to estimate the total time taken for getting to approval, as many factors are involved. Your patience is appreciated. 

If there is an issue while looking at error, the approvals team would communicate with you directly. 

Constantine Vassilev

unread,
Oct 19, 2020, 9:08:32 AM10/19/20
to Google Cloud Developers
Hi George, I like Document AI. Could you please suggest what the pricing per document would look like?

Olu

unread,
Oct 19, 2020, 4:44:43 PM10/19/20
to Google Cloud Developers
Hello, 

I am not sure about pricing per document however, I think you can find some pricing details for Document AI on this documentation link[1]. Did you check that for the info you need?

[1]https://cloud.google.com/document-ai/pricing

Constantine Vassilev

unread,
Oct 19, 2020, 4:57:10 PM10/19/20
to Google Cloud Developers
Thank you, I found out the pricing.

I would want to know how to create Golang web server in GCP which to call Document AI functions.
For example sending base64 encoded document and returning back the response. Because there is not
Golang library I tried to use direct HTTPS POST REST request like this:

curl -X POST \

-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \

-H "Content-Type: application/json; charset=utf-8" \

-d @request.json \

https://LOCATION-documentai.googleapis.com/...

The problem is I cannot use gcloud auth application-default print-access-token on the server.

I tried to use it with ?key=... but it is unsupported. 

How to do that? 

Reply all
Reply to author
Forward
0 new messages