Get an Attachment File Associated with a Receipt
GET /expense-reports/{id}/attachments/{attachment_id}/download — Use this method to retrieve the file associated with the attachment record with the specified attachment ID associated with the receipt with the specified internal ID.
Parameters
Path parameters
|
Path parameter |
Required / Optional |
Description |
Type |
|---|---|---|---|
|
|
Required |
The internal ID of the receipt. |
integer |
|
|
Required |
The internal ID of the attachment. |
integer |
Query string parameter
|
Path parameter |
Required / Optional |
Description |
Type |
|---|---|---|---|
|
|
Optional |
The internal ID of the filter set to be applied.
|
integer |
Response definitions
A successful or failed request returns a JSON object with the following properties:
|
Property |
Description |
|---|---|
|
|
A string containing a brief message about the status of your request — for example, |
A successful request also returns the attachment file.
Sample request
GET receipts/2674/attachments/4985/download HTTP/1.1
Host: company-id.app.netsuitesuiteprojectspro.com
Authorization: Bearer <OAuth2_access_token>
In the example, <OAuth2_access_token> is the OAuth 2.0 access token obtained for the client application connecting to SuiteProjects Pro. See Authentication.
Sample response
The attachment file.