It seems like you’re trying to extend the schema of the prebuilt invoice model to extract specific fields you need, which is supported by Azure’s Document Intelligence. Here are a few things you might want to check:
- API Version: Make sure you’re using the correct API version. As per your query, you’re using
2024-02-29-preview
, which should be fine.
Query Fields: You’re passing Terms
and PaymentDate
as query fields. If you want to extract VendorTRN
and TelephoneNumber
, you should include these in your query fields.
- Endpoint URL: Ensure that the endpoint URL is correct. The URL you provided seems to be in the correct format.
- Authentication: Make sure your API key is correctly set. The API key should be wrapped in the
AzureKeyCredential
class.
If you’ve checked all of these and the issue persists, it might be a service-related issue.