using ABBYY.DocumentAI;
using ABBYY.DocumentAI.Schemas.Components;
var sdk = new DocumentAI(apiKeyAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Models.PersonalEarningsStatement.GetExtractedFieldsAsync(documentId: "wh23anb5xjf0ntw5taase5qz");
// handle response
{
"meta": {
"id": "wh23anb5xjf0ntw5taase5qz",
"name": "document.jpg",
"createdAt": "2025-02-07T17:44:06.949Z",
"model": "personal-earnings-statement",
"status": "Processed",
"pageCount": 10,
"errors": [
{
"message": "Total is required"
}
]
},
"fields": {
"employeeName": "John A. Smith",
"employeeAddress": "456 Home Street, San Francisco, CA 94105",
"employerIdentificationNumber": "12-3456789",
"ssn": "123-45-6789",
"employerName": "ACME Corporation",
"employerAddress": "123 Business Ave, Suite 100, San Francisco, CA 94105",
"reportingPeriodStartDate": "2023-12-01",
"reportingPeriodEndDate": "2023-12-31",
"payDate": "2024-01-15",
"payRate": 75,
"currentPeriodGrossPay": 3000,
"yearToDateGrossPay": 90000,
"currentPeriodTotalDeductions": 500,
"currentPeriodTotalTaxes": 750,
"currentPeriodNetPay": 1750,
"yearToDateTotalDeductions": 15000,
"yearToDateTotalTaxes": 22500,
"yearToDateNetPay": 52500
}
}
This endpoint returns an object representing the extracted personal-earnings-statement model fields from a document.
using ABBYY.DocumentAI;
using ABBYY.DocumentAI.Schemas.Components;
var sdk = new DocumentAI(apiKeyAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Models.PersonalEarningsStatement.GetExtractedFieldsAsync(documentId: "wh23anb5xjf0ntw5taase5qz");
// handle response
{
"meta": {
"id": "wh23anb5xjf0ntw5taase5qz",
"name": "document.jpg",
"createdAt": "2025-02-07T17:44:06.949Z",
"model": "personal-earnings-statement",
"status": "Processed",
"pageCount": 10,
"errors": [
{
"message": "Total is required"
}
]
},
"fields": {
"employeeName": "John A. Smith",
"employeeAddress": "456 Home Street, San Francisco, CA 94105",
"employerIdentificationNumber": "12-3456789",
"ssn": "123-45-6789",
"employerName": "ACME Corporation",
"employerAddress": "123 Business Ave, Suite 100, San Francisco, CA 94105",
"reportingPeriodStartDate": "2023-12-01",
"reportingPeriodEndDate": "2023-12-31",
"payDate": "2024-01-15",
"payRate": 75,
"currentPeriodGrossPay": 3000,
"yearToDateGrossPay": 90000,
"currentPeriodTotalDeductions": 500,
"currentPeriodTotalTaxes": 750,
"currentPeriodNetPay": 1750,
"yearToDateTotalDeductions": 15000,
"yearToDateTotalTaxes": 22500,
"yearToDateNetPay": 52500
}
}
Our API offers authentication via API keys. You can obtain an API key from https://developer.abbyy.com
The id of the document
Extracted Personal Earnings Statement Data Response
Was this page helpful?