Enrichment API
Account registration number issued by Qvalia
""Optional name of the file being uploaded, including extension (e.g., invoice.pdf).
invoice.pdfThe Base64 encoded content of the file.
UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==types of enrichment tasks to perform. Ex; "capture"
captureOptional parameters for enrichment processing
File accepted for processing.
Invalid file or request.
POST /enrichment/{accountRegNo}/invoice HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 119
{
"fileName": "invoice.pdf",
"fileContent": "UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",
"enrichmentTypes": "capture",
"parameters": {}
}{
"status": "text",
"data": {
"pollingId": "text"
}
}Account registration number issued by Qvalia
""Products list that needs to be categorised. id and product_name are required fields.
[{"id":1,"product_name":"fire alarm"}]types of enrichment tasks to perform. Ex; "unspsc"
unspscFile accepted for processing.
Invalid file or request.
POST /enrichment/{accountRegNo}/categorisation HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"products": [
{
"id": 1,
"product_name": "fire alarm"
}
],
"enrichmentTypes": "unspsc"
}{
"status": "text",
"data": {
"pollingId": "text"
}
}Account registration number issued by Qvalia
""The unique polling ID for the file
""Enrichment complete, result available.
Status of the request (e.g., success).
The enrichment process is still in progress. The client should retry after 30 seconds.
Invalid or expired polling ID.
Invalid or expired polling ID.
The client has exceeded the polling frequency limit. The request is rejected, and the client should wait before retrying.
GET /enrichment/{accountRegNo}/{pollingId} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
"status": "text",
"data": {
"capture": {
"result": {
"Invoice": {}
},
"errors": [
"text"
],
"warnings": [
"text"
]
},
"categorisation": {
"result": {},
"errors": [
"text"
]
}
}
}Account registration number issued by Qvalia
""The unique polling ID for the file
""The enrichment type sent on posting of the document
captureExample: capturePossible values: Enrichment complete, result available.
Status of the request (e.g., success).
The enrichment process is still in progress. The client should retry after 30 seconds.
Invalid or expired polling ID.
Invalid or expired polling ID.
The client has exceeded the polling frequency limit. The request is rejected, and the client should wait before retrying.
GET /enrichment/{accountRegNo}/{pollingId}/{enrichmentType} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
"status": "text",
"data": {
"result": {},
"errors": [],
"warnings": []
}
}Last updated
Was this helpful?

