on ‎2024 Feb 03 2:55 AM
HI Team,
I have tried exploring the Document extraction services(premium) from postman to build some apis to upload the document to extract some information. All get calls related to document extraction services are working in postman and code. But upload functionality not working in postman and code. In the postman input, in form am passing file and client id which are required params. But am getting following error
Request clarification before answering.
Hi! @Samruddhi @vijaygn1990 @SukirtiMaskey
I just removed the global Content-Type = "multipart/form-data" in the header section and now it works!. In my case, for some reason when importing this collection from SAP Business Accelerator Hub (API link), the header <Content-Type> is repeted, be sure to keep only the value "multipart/form-data; boundary=<calculated when request is sent>"
Posting the fix here in case it helps others
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
For the upload of document through postman, in Body select form-data option. Create a key 'file' of type 'file' and upload the file. Then create another key 'option' of type 'text' and in value put the following:-
{"schemaId": "cf8cc8a9-1eee-42d9-9a3e-507a61baac23",
"clientId": "c_00",
"documentType": "invoice",
"receivedDate": "2020-02-17"}
Do not add schemaId, cliendId and documentType in the parameters.
This solution worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.