Discovering document types
Read the registry at build time instead of hardcoding type names.
Before you start
Step 1 — List the document types
curl -s "https://api-docai-uat.uptiq.ai/listSupportedDocuments"{
"status": "success",
"documents": [
{
"type": "BalanceSheet",
"name": "Balance Sheet",
"category": "Financial Report",
"description": "Statement of assets, liabilities and equity at a point in time"
}
],
"taxForms": {
"Business": [ ],
"BusinessTaxForms": [ ],
"IndividualTaxForms": [ ]
}
}Field
Use
Step 2 — Build a lookup
Step 3 — Check accepted file formats
A caveat on counts
Why bother
Hardcoding
Reading the registry
Related pages
Last updated

