{"info":{"_postman_id":"403a7d1e-ea85-4d64-a2ce-e7fd251fc87e","name":"Fiscal Lens API v1","description":"<html><head></head><body><p>This endpoint processes a document file for VAT-related information. It accepts a file upload and returns the extracted data related to VAT registration</p>\n<hr>\n<p><code>/</code></p>\n<p><code>/doc-processing</code></p>\n<h2 id=\"key-things-to-note\"><strong>Key things to note</strong></h2>\n<ul>\n<li><p>You must use a valid vat pdf document (that is not scanned) to send requests to the API endpoints.</p>\n</li>\n<li><p>The API has <a href=\"https://postman.postman.co/workspace/Collection-Templates~6311738d-2e70-441f-ae12-78caf078c5b7/collection/22517504-e9c28f47-1253-44af-a2f3-20dce4da1f18?ctx=documentation#rate-and-usage-limits\">rate and usage limits</a>.</p>\n</li>\n<li><p>The API only responds to HTTPS-secured communications. Any requests sent via HTTP return an HTTP 301 redirect to the corresponding HTTPS resources.</p>\n</li>\n<li><p>The API returns request responses in JSON format. When an API request returns an error, it is sent in the JSON response as an error key.</p>\n</li>\n</ul>\n<h2 id=\"authentication\">Authentication</h2>\n<p><code>YOu require a key which you can get from the Five team.</code></p>\n<h3 id=\"authentication-error-response\">Authentication error response</h3>\n<p>If an API key is missing, malformed, or invalid, you will receive an HTTP 401 Unauthorized response code.</p>\n<h2 id=\"rate-and-usage-limits\">Rate and usage limits</h2>\n<p>API access rate limits apply at a per-API key basis in unit time. The limit is 10 requests per minute. Also, depending on your plan, you may have usage limits. If you exceed either limit, your request will return an HTTP 429 Too Many Requests status code.</p>\n<p>Each API response returns the following set of headers to help you identify your use status:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>X-RateLimit-Limit</code></td>\n<td>The maximum number of requests that the consumer is permitted to make per minute.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Remaining</code></td>\n<td>The number of requests remaining in the current rate limit window.</td>\n</tr>\n<tr>\n<td><code>X-RateLimit-Reset</code></td>\n<td>The time at which the current rate limit window resets in UTC epoch seconds.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"500-response\">500 response</h3>\n<p>An HTTP <code>500</code> response from our servers indicates there is an unexpected spike in API access traffic. The server is usually operational within the next five minutes. If the outage persists or you receive any other form of an HTTP <code>5XX</code> error, <a href=\"https://support.postman.com/hc/en-us/requests/new/\">contact support</a>.</p>\n<h3 id=\"need-some-help\"><strong>Need some help?</strong></h3>\n<p><code>Feel free to reach out to the Five team/</code></p>\n<p>Cell : +263 778 115 084.</p>\n<p>Email: <a href=\"https://mailto:tmuranda1@gmail.com\">tmuranda1@gmail.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"31082195","collectionId":"403a7d1e-ea85-4d64-a2ce-e7fd251fc87e","publishedId":"2sB2x6jqzA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-06-25T12:46:06.000Z"},"item":[{"name":"process-document","event":[{"listen":"test","script":{"id":"e2f1e7d5-7e22-4a23-a2a2-8a0772a27c45","exec":["pm.test(\"Response status code is 400\", function () {","    pm.expect(pm.response.code).to.eql(400);","});","","","pm.test(\"Response contains a success boolean field\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('success').that.is.a('boolean');","});","","","pm.test(\"Error message should be a string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.error).to.be.a('string');","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Error field is present when status is 400\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.error).to.exist;","});"],"type":"text/javascript","packages":{}}}],"id":"6268d8d4-9892-4daa-aa9d-3cc39d5bab0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","uuid":"444825a1-c514-45f9-aa02-a03665bdd7b3","src":"/C:/Users/Ropafadzo Muridzi/Downloads/Triple Tee Safety VAT ReG Certificate.pdf"}]},"url":"https://vat-doc-processing-backend.vercel.app/api/v1/docprocessing","description":"<h3 id=\"api-endpoint-document-processing\">API Endpoint: Document Processing</h3>\n<p>This endpoint processes a document file for VAT-related information. It accepts a file upload and returns the extracted data related to VAT registration.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n<li><p><strong>URL</strong>: <code>https://vat-doc-processing-backend.vercel.app/api/v1/docprocessing</code></p>\n</li>\n<li><p><strong>Request Body</strong>: Form-data</p>\n<ul>\n<li><strong>file</strong> (type: file): The document file that needs to be processed.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><strong>Status Code</strong>: 200</p>\n</li>\n<li><p><strong>Content-Type</strong>: application/json</p>\n</li>\n<li><p>{ \"message\": \"\", \"success\": true, \"data\": { \"regOperator\": \"\", \"regTradeName\": \"\", \"tinNumber\": \"\", \"vatNumber\": \"\" }}</p>\n<ul>\n<li><p><strong>message</strong>: A string that may contain additional information about the processing result.</p>\n</li>\n<li><p><strong>success</strong>: A boolean indicating whether the processing was successful.</p>\n</li>\n<li><p><strong>data</strong>: An object containing the following fields:</p>\n<ul>\n<li><p><strong>regOperator</strong>: The registered operator's information.</p>\n</li>\n<li><p><strong>regTradeName</strong>: The registered trade name.</p>\n</li>\n<li><p><strong>tinNumber</strong>: The Tax Identification Number.</p>\n</li>\n<li><p><strong>vatNumber</strong>: The Value Added Tax number.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>This API is designed to facilitate the extraction of VAT-related information from uploaded documents, providing a structured response to the user.</p>\n","urlObject":{"protocol":"https","path":["api","v1","docprocessing"],"host":["vat-doc-processing-backend","vercel","app"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"b2070b9e-2529-4eab-93a4-c3b0e13e983f","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","uuid":"444825a1-c514-45f9-aa02-a03665bdd7b3","src":"/C:/Users/Ropafadzo Muridzi/Downloads/Triple Tee Safety VAT ReG Certificate.pdf"}]},"url":{"raw":"https://vat-doc-processing-backend.vercel.app/api/v1/docprocessing","protocol":"https","host":["vat-doc-processing-backend","vercel","app"],"path":["api","v1","docprocessing"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Content-Length","value":"194"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 12 Jun 2025 11:31:37 GMT"},{"key":"Etag","value":"W/\"c2-+Sts6qVsMS8gUAw66nKy2on/eqY\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"cpt1::iad1::lp66q-1749727892625-27f9e79c7a38"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Document processed successfully\",\n    \"success\": true,\n    \"data\": {\n        \"regOperator\": \"Nuvert Trading (Pvt) Ltd\",\n        \"regTradeName\": \"Triple Tee Safety\",\n        \"tinNumber\": \"2000505850\",\n        \"vatNumber\": \"220163920\"\n    }\n}"},{"id":"8aca1971-2bfe-4f9a-b8ad-c611d977776e","name":"Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","uuid":"444825a1-c514-45f9-aa02-a03665bdd7b3","src":"/C:/Users/Ropafadzo Muridzi/Downloads/enernet zwg invoice.pdf"}]},"url":{"raw":"https://vat-doc-processing-backend.vercel.app/api/v1/docprocessing","protocol":"https","host":["vat-doc-processing-backend","vercel","app"],"path":["api","v1","docprocessing"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Content-Length","value":"45"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 25 Jun 2025 14:35:25 GMT"},{"key":"Etag","value":"W/\"2d-iXb5U1GvXV6X99C/FQb2kx2EtHo\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"cpt1::iad1::pgbfz-1750862117788-f4bb66081707"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"error\": \"INVALID DOCUMENT.\"\n}"}],"_postman_id":"6268d8d4-9892-4daa-aa9d-3cc39d5bab0a"},{"name":"Welcome","event":[{"listen":"test","script":{"id":"b47bfe54-5d56-45f4-8a73-d7d21a2106d3","exec":[""],"type":"text/javascript","packages":{}}}],"id":"ac13d27f-031f-44c9-b341-170869249193","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://vat-doc-processing-backend.vercel.app/","description":"<h1 id=\"get-request-to-the-application-root\">GET Request to the Application Root</h1>\n<p>This endpoint serves as the entry point to the application. When a GET request is made to <code>https://vat-doc-processing-backend.vercel.app/</code>, the server responds with a welcome message indicating successful access to the application.</p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<ul>\n<li><strong>None</strong>: This endpoint does not require any request parameters.</li>\n</ul>\n<h2 id=\"expected-response\">Expected Response</h2>\n<ul>\n<li><p><strong>Status Code</strong>: <code>200 OK</code></p>\n</li>\n<li><p><strong>Content-Type</strong>: <code>text/html</code></p>\n</li>\n<li><p><strong>Response Body</strong>: A simple HTML message welcoming the user to the application.</p>\n</li>\n</ul>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li>This endpoint is primarily used to verify that the application is up and running. It does not perform any data processing or retrieval.</li>\n</ul>\n","urlObject":{"protocol":"https","path":[""],"host":["vat-doc-processing-backend","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"32cadb20-bd7d-4dd3-936b-81b7c4242568","name":"Welcome","originalRequest":{"method":"GET","header":[],"url":"https://vat-doc-processing-backend.vercel.app/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Content-Length","value":"31"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Date","value":"Thu, 12 Jun 2025 11:32:29 GMT"},{"key":"Etag","value":"W/\"1f-xR69TudzMlCkzlz1ibnLgzUR3uc\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"cpt1::iad1::gd5kq-1749727949851-a3171c120826"}],"cookie":[],"responseTime":null,"body":"Welcome here to the application"}],"_postman_id":"ac13d27f-031f-44c9-b341-170869249193"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"id":"bd323cb7-0de1-4fc3-b7ba-42491e1cd82d","key":"baseUrl","value":"https://farming-simulator.pstmn.io"}]}