Declarations
Upload a receipt to analyze
Activity name : <a href="https://developer.loket.nl/Activities/PostAnalyzeReceiptByEmploymentId" target="_blank">PostAnalyzeReceiptByEmploymentId</a>
Post a receipt for OCR.
post/v2/providers/employers/employees/employments/{employmentId}/declarations/analyze/receipt
Request
- Base URLhttps://api.loket.nl
- URLhttps://api.loket.nl/v2/providers/employers/employees/employments/{employmentId}/declarations/analyze/receipt
- Authnone required
Path parameters
employmentIdstring uuid required
The unique identifier of the employment
Headers
Authorizationstring required
Example:Bearer <TOKEN>
A valid Bearer token for authorizing the request.
Acceptstring required
Example:application/json;version=2018-01-01
The accept header is used to influence what type of output is returned and in most cases the version of the output
Request body multipart/form-data
string binary required
Response
OK
Example response
{
"totalSize": 650,
"pageSize": 250,
"totalPages": 3,
"currentPage": 2,
"version": {
"resourceVersion": "2018-12-31"
},
"messages": [
{
"type": "Warning",
"description": "<some warning>",
"id": "904d6856-6034-4624-bcbc-886188c115c5",
"code": 12
}
],
"_embedded": [
{
"confidence": 0.51,
"boundingRegion": [
{
"x": 1,
"y": 456
}
],
"merchantName": {
"confidence": 0.73,
"boundingRegion": [
{
"x": 1,
"y": 456
}
]
},
"total": {
"value": 21.99,
"confidence": 0.73,
"boundingRegion": [
{
"x": 1,
"y": 456
}
]
},
"subTotal": {
"value": 19.54,
"confidence": 0.73,
"boundingRegion": [
{
"x": 1,
"y": 456
}
]
},
"totalTax": {
"value": 1.58,
"confidence": 0.73,
"boundingRegion": [
{
"x": 1,
"y": 456
}
]
},
"transactionDate": {
"value": "2024-01-01",
"confidence": 0.73,
"boundingRegion": [
{
"x": 1,
"y": 456
}
]
},
"transactionTime": {
"value": "16:49:02",
"confidence": 0.73,
"boundingRegion": [
{
"x": 1,
"y": 456
}
]
},
"payrollComponent": {
"componentId": 1,
"name": "Uren gewerkt",
"deviatingDescription": "Uren tijd voor tijd 130%"
}
}
]
}Changes
No recorded changes to this operation across all 6 revisions of this API.