using ABBYY.DocumentAI;
using ABBYY.DocumentAI.Schemas.Components;
var sdk = new DocumentAI(apiKeyAuth: "<YOUR_BEARER_TOKEN_HERE>");
var res = await sdk.Models.HotelInvoice.GetExtractedFieldsAsync(documentId: "wh23anb5xjf0ntw5taase5qz");
// handle response
{
"meta": {
"id": "wh23anb5xjf0ntw5taase5qz",
"name": "document.jpg",
"createdAt": "2025-02-07T17:44:06.949Z",
"model": "hotel-invoice",
"status": "Processed",
"pageCount": 10,
"errors": [
{
"message": "Total is required"
}
]
},
"fields": {
"date": "2024-03-15",
"checkInDate": "2024-03-10",
"checkOutDate": "2024-03-15",
"nights": 5,
"hotelName": "Grand Hotel",
"address": "123 Main Street",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "USA",
"phone": "+1-123-456-7890",
"currency": "USD",
"total": 1250,
"taxTotal": 125,
"taxes": [
{
"taxRate": 10,
"taxAmount": 125
}
],
"paymentMethod": "Card",
"cardType": "VISA",
"creditOrDebit": "Credit",
"cardNumber": "XXXX-XXXX-XXXX-1234",
"lineItems": [
{
"sku": "ROOM-101",
"description": "Deluxe Room",
"quantity": 5,
"price": 200,
"amount": 1000
},
{
"sku": "PARK-001",
"description": "Parking",
"quantity": 5,
"price": 50,
"amount": 250
}
]
}
}
This endpoint returns an object representing the extracted hotel-invoice 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.HotelInvoice.GetExtractedFieldsAsync(documentId: "wh23anb5xjf0ntw5taase5qz");
// handle response
{
"meta": {
"id": "wh23anb5xjf0ntw5taase5qz",
"name": "document.jpg",
"createdAt": "2025-02-07T17:44:06.949Z",
"model": "hotel-invoice",
"status": "Processed",
"pageCount": 10,
"errors": [
{
"message": "Total is required"
}
]
},
"fields": {
"date": "2024-03-15",
"checkInDate": "2024-03-10",
"checkOutDate": "2024-03-15",
"nights": 5,
"hotelName": "Grand Hotel",
"address": "123 Main Street",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"country": "USA",
"phone": "+1-123-456-7890",
"currency": "USD",
"total": 1250,
"taxTotal": 125,
"taxes": [
{
"taxRate": 10,
"taxAmount": 125
}
],
"paymentMethod": "Card",
"cardType": "VISA",
"creditOrDebit": "Credit",
"cardNumber": "XXXX-XXXX-XXXX-1234",
"lineItems": [
{
"sku": "ROOM-101",
"description": "Deluxe Room",
"quantity": 5,
"price": 200,
"amount": 1000
},
{
"sku": "PARK-001",
"description": "Parking",
"quantity": 5,
"price": 50,
"amount": 250
}
]
}
}
Our API offers authentication via API keys. You can obtain an API key from https://developer.abbyy.com
The id of the document
Extracted Hotel Invoice Data Response
Was this page helpful?