Extract Invoice attachment with Rest API Fusion ERP Cloud
Summary
usingContent
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 21cCode 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":
Tagged:
0