Skip to main content
GET
/
accounting
/
journalEntries
/
{journalEntryId}
/
Attachments
/
{attachmentId}
cURL
curl --request GET \
  --url https://api.maesn.dev/accounting/journalEntries/{journalEntryId}/Attachments/{attachmentId} \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": "file content"
}

Field support per integration

If you’re not using the Interactive Authentication Flow, make sure the query parameters environmentName and companyId are correctly populated. You can obtain these values by using the GET Environments and GET Companies endpoints available under the Authentication section.
Supported Response Fields: This endpoint returns the content of an attachment as raw binary data.
Supported Response Fields: This endpoint returns the content of an attachment as raw binary data.

Headers

X-API-KEY
string
required

API key

Example:

"example value"

X-ACCOUNT-KEY
string
required

Account key

Example:

"example value"

Path Parameters

journalEntryId
string
required
attachmentId
string
required

Query Parameters

companyId
string
environmentName
string

Response

200 - application/json
meta
object
data
object
Example:

"file content"

I