We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Extract Invoice attachment with Rest API Fusion ERP Cloud

Received Response
4
Views
1
Comments
edited Sep 7, 2021 10:10PM in Reporting and Analytics for ERP 1 comment

Summary

using

Content

The following help page documents how to use the Get an attachment for an invoice Rest API.

Running the codes gives me a similar response as per the documentation, however what I am missing is the last step as to how to download the actual file for viewing.

I am fairly new to JSON so might be missing something obvious.    Any help appreciated, thanks

 

Version

Fusion Financial 21c

Code Snippet

A hash key of InvoiceId and AttachedDocumentId identifies an attachment.

Here's the cURL command that uses the hash key in the self URI to retrieve the attachment:

curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X GET https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/invoices/300100177565180/child/attachments/00020000000EACED00057708000110F0847B15FE0000000EACED00057708000110F0847B15FD
Example Response Body

The following example shows the contents of the response body in JSON format:

{
    "items": [
        {
            "AttachedDocumentId": 300100177565182,
            "LastUpdateDate": "2018-09-05T09:19:33.411+00:00",
            "LastUpdatedBy":

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!