Integration between OIC and Coupa > Ability to send Attachment via REST API
Summary:
Integration between OIC and Coupa > Ability to send Attachment via REST API
Content (required):
Hello All,
I am trying to send file attachment from OIC to Coupa via REST API: I am getting this exception:
Unauthorized401<![CDATA[POST https://pgn-test2.coupahost.com/api/requisitions/23738/attachments/ returned a response status of 401 Unauthorized]]><![CDATA[.The 401 error message is usually returned by services that requires user credentials
Please find attached the configuration
The config performed in OIC is similar to what is provided in https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-adapter/implement-integration-which-base64-encoded-string-incoming-message-must-be-sent-external-rest-api-.html
I have performed another test: In the mapper, if I don't specify Attachment Properties > Content Type (=image/pgn) (refer to previous doc. attachment), I got the following exception: