About this endpoint
What it does
Uploads an invoice file and returns parsed invoice data in a JSON object. The response includes data, which may contain azure and/or apyhub objects with the extraction output.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Invoice file to upload as binary data. |
| azure_key | String | No | Azure key used for Azure Document Intelligence parsing. |
| azure_region | String | No | Azure region value. |
| azure_endpoint | String | No | Azure endpoint URL. |
| azure_account_id | String | No | Azure account identifier. |
| requested_service | ENUM | No | Which service to use for extraction. Allowed values: azure, apyhub. Default: apyhub. |
| azure_access_token | String | No | Azure access token. |
Response
Returns a JSON object with a data object field. The data object may contain azure and apyhub object fields with the corresponding invoice extraction output.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Container for extraction results. |
| data.azure | Object | No | Raw Azure Document Intelligence parsing output. |
| data.apyhub | Object | No | Structured ApyHub Invoice Extraction parsing output. |