Hello @CB3PO , Thanks for using Microsoft Q&A Platform.
I have reproduced the same (prebuilt-receipt REST API) on my end and it worked well with no issues.
As mentioned in the documentation you can create a Analyze document request. I have added query field label name as "QuarterlyPeriodDate".
Here is the sample code for your reference:
POST https://{endpoint}.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-receipt:analyze?api-version=2024-02-29-preview&features=queryFields&queryFields=QuarterlyPeriodDate
Content-Type: application/json
Ocp-Apim-Subscription-Key:
{ "urlSource": "add document" }
After this you can analyze result using the request ID:
GET https://{endpoint}.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-receipt/analyzeResults/{requestID}?api-version=2024-02-29-preview
Ocp-Apim-Subscription-Key:
Here is the REST API documentation: https://learn.microsoft.com/en-us/rest/api/aiservices/document-models/get-analyze-result?view=rest-aiservices-v4.0%20(2024-02-29-preview)&tabs=HTTP
Ensure that you include the subscription key and endpoint details.
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.