Invoice JSON

To get the invoice data in JSON format, you need docId of the PDF. To get docId upload the PDF first.

The invoice result will not be saved as a Chat. To save your chat history use chat API

Invoice

Invoice JSON

POST https://pdf.ai/api/v1/invoice

Get desired JSON formatted responses from the invoice PDF using docId

Headers

NameTypeDescription

X-API-Key*

string

<API-key>

Request Body

NameTypeDescription

docId*

string

Document ID obtained after uploading PDF

message*

string

Your query or JSON format details

{
  "content": {
    "products": [
      {
        "name": "First product",
        "quantity": 30
      },
      {
        "name": "Second product",
        "quantity": 20
      }
    ]
  }
}

Last updated