Ledger Attachments

Upload a file to attach to a ledger entry. The maximum allowed file size is 100MB. Note that this will not upload a file into the DMS (GED).

‼️ This endpoint is DEPRECATED As an alternative, please use the File Attachments: Upload a file endpoint.

ℹ️ This endpoint requires the following scope: ledger

post/api/external/v2/ledger_attachments

Request

  • Base URL
    https://app.pennylane.com
  • URL
    https://app.pennylane.com/api/external/v2/ledger_attachments
  • Auth
    OAuth 2
    Authorization code: https://app.pennylane.com/oauth/authorize
    Token URL: https://app.pennylane.com/oauth/oauth/token scopes: ledger

Headers

X-Company-Idstring
Example:12345

Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.

Request body multipart/form-data

filestring binary required

The file you want to upload. Allowed content types:

  • image/png
  • image/jpeg
  • image/tiff
  • image/bmp
  • image/gif
  • application/pdf
filenamestring

Name of the file. If not provided, the default value will be the uploaded file name.

Example request

{
  "filename": "Invoice42.pdf"
}

Response

Returns the created attachment

urlstring required
idinteger required
filenamestring required

Changes