Downloads an attachment.
Attachment Open
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | expenselines.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=attachmentfile | |
| Identifier | Yes | Expense line ID or UUID | expenseline=3404 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=attachmentfile&expenseline=3404
Example request (legacy username/password):
http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=attachmentfile&expenseline=3404&user=<username>&password=<password>
Example response:
This call downloads a file.
