POST
/
v1-preview
/
models
/
commercial-invoice
using ABBYY.DocumentAI;
using ABBYY.DocumentAI.Schemas.Components;

var sdk = new DocumentAI(apiKeyAuth: "<YOUR_BEARER_TOKEN_HERE>");

BeginCommercialInvoiceFieldExtractionRequestBody req = new BeginCommercialInvoiceFieldExtractionRequestBody() {
    InputSource = InputSource.CreateUrlInputSource(
        new UrlInputSource() {
            Url = "https://example.com/documents/invoice.png",
        }
    ),
};

var res = await sdk.Models.CommercialInvoice.BeginFieldExtractionAsync(req);

// handle response
[
  {
    "id": "wh23anb5xjf0ntw5taase5qz",
    "name": "document.jpg",
    "createdAt": "2025-02-07T17:44:06.949Z",
    "model": "image-to-text",
    "status": "Processed",
    "pageCount": 10,
    "errors": [
      {
        "message": "Total is required"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Our API offers authentication via API keys. You can obtain an API key from https://developer.abbyy.com

Body

application/json

Request to process a document using the commercial-invoice model

Response

201
application/json

A list containing the document(s) sent for processing