Transactions

Upload a transaction attachment

Upload a file attachment to a transaction. The file is uploaded via multipart/form-data. Supported file types include PDF, images (PNG, JPG, GIF), and common document formats.

post/transaction/{transactionId}/attachments

Request

  • Base URL
    https://api.mercury.com/api/v1
  • URL
    https://api.mercury.com/api/v1/transaction/{transactionId}/attachments
  • Auth
    • HTTP bearer
    • or HTTP basic

Path parameters

transactionIdstring uuid required

ID of the transaction to attach the file to

Request body multipart/form-data

attachmentType'receipt' | 'bill' | 'other'

Type of attachment: 'receipt', 'bill', or 'other'. Defaults to 'other'.

filestring binary required

The file to upload

Response

Successfully uploaded attachment. Returns attachmentId and downloadUrl.

Changes

No recorded changes to this operation across all 46 revisions of this API.