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 | Description |
|---|---|---|
| file | Binary | Invoice file to upload as binary data. |
| azure_key | String | Azure key used for Azure Document Intelligence parsing. |
| azure_region | String | Azure region value. |
| azure_endpoint | String | Azure endpoint URL. |
| azure_account_id | String | Azure account identifier. |
| requested_service | ENUM | Which service to use for extraction. Allowed values: azure, apyhub. Default: apyhub. |
| azure_access_token | String | 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 | Description |
|---|---|---|
| data | Object | Container for extraction results. |
| data.azure | Object | Raw Azure Document Intelligence parsing output. |
| data.apyhub | Object | Structured ApyHub Invoice Extraction parsing output. |



