> For the complete documentation index, see [llms.txt](https://docs.mastersindia.co/masters-india-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mastersindia.co/masters-india-apis/invoice-ocr-api/ocr-qr-code-api.md).

# OCR QR Code API

### OCR Upload API&#x20;

Use this API to Extract data from the Invoice/Delivery order & Bill of Entry & E-invoice QR code

{% tabs %}
{% tab title="Data Ectraction API" %}
**Upload API**

<table><thead><tr><th width="130">Name</th><th width="592">Description</th></tr></thead><tbody><tr><td><strong>API</strong></td><td>Upload</td></tr><tr><td><strong>URL</strong></td><td><a href="https://api-platform.mastersindia.co/api/v1/ocr/upload/">https://api-platform.mastersindia.co/api/v2/ocr/upload</a></td></tr><tr><td><strong>Method Type</strong></td><td>POST</td></tr><tr><td><strong>Headers</strong></td><td></td></tr><tr><td><strong>Body</strong></td><td></td></tr><tr><td><strong>Action</strong> </td><td>Hit the Send button.</td></tr><tr><td><strong>Response</strong></td><td><p><strong>Note -</strong> Response may vary as per data available in the Invoice</p><pre class="language-json"><code class="lang-json">{
    "data": {
        "invoices": [
            {
                "field_data": {
                    "qr_supplier_gstin": [
                        "27AACCK1395D1ZO"
                    ],
                    "qr_buyer_gstin": [
                        "29AAEFM3749C1ZA"
                    ],
                    "qr_invoice_number": [
                        "6124000753"
                    ],
                    "qr_invoice_date": [
                        "06/04/2024"
                    ],
                    "qr_invoice_value": [
                        "29226.24"
                    ],
                    "qr_total_item": [
                        "1"
                    ],
                    "qr_hsn_code": [
                        "38190010"
                    ],
                    "qr_hash_code": [
                        "f0ab59b2d2b4b04876fd2451addfb16f5e109a7863b9b97be7cc0da6368c34a2"
                    ]
                },
                "table_data": [],
                "file_status": "invoice_ocr_completed for 596023238887389378",
                "file_name": "6124000753_0001040320_YF2.pdf",
                "qr_status": "QR Success"
            }
        ],
        "request_status": "completed"
    },
    "message": "Data Extracted Successfully",
    "status_code": 200,
    "success": true
}
</code></pre></td></tr></tbody></table>

| Key           | Values                    | Mandatory |
| ------------- | ------------------------- | --------- |
| Authorization | JWT {{token}}             | Yes       |
| subid         | Will be shared during POC | Yes       |
| productid     | arap                      | Yes       |
| mode          | Buyer                     | Yes       |

| form\_data     |                     |                                              |
| -------------- | ------------------- | -------------------------------------------- |
| file\_url      | file                | **Select file -** upload file - PDF/JPEG/PNG |
| document\_type | <p>qr\_data<br></p> | <p><br></p>                                  |
| {% endtab %}   |                     |                                              |
| {% endtabs %}  |                     |                                              |

You can use this JSON Response in your ERP or Software
