---
title: "Upload Transaction Attachment"
method: POST
path: "/business/v2/transactions/{transactionId}/attachments"
tags: ["Transaction Attachments"]
---

# Upload Transaction Attachment

`POST /business/v2/transactions/{transactionId}/attachments`

Endpoint to upload a `TransactionAttachment` to a `Transaction`.
The first step is to get a temporary URL where to upload the attachment file.

## Path parameters

- `transactionId` string, required — The `Transaction` ID.

## Response `200`

The returned resource is a single `TransactionAttachment`.

- TransactionAttachment
  - `attachment_id` string — The `TransactionAttachment` ID.
  - `transaction_id` string — The `Transaction` ID the file is attached to.
  - `file_name` string — The file name of the attachment.
  - `file_extension` string — The file extension of the attachment.
  - `file_size` integer — The file size in bytes.
  - `url` string — The url of the attachment.
  - `file_url` string — The Base64 string of the File URL encrypted by DES in ECB mode, Pkcs7 padding scheme and using Token for key. Deprecated, use `url` instead.
  - `url_type` 'DOWNLOAD_URL' | 'UPLOAD_URL' | 'UPLOAD_COMPLETED' | 'DELETE' | 'THUMBNAILS_DOWNLOAD_URL' | 'UPDATE_METADATA'
  - `attachment_type` 'RECEIPT' | 'INVOICE' | 'MAIL' | 'OTHER' | 'PURCHASE_REQUEST' | 'POP_AUTH' | 'POP_SETTLEMENT'
  - `read_only` boolean — It determines whether the attachment can be removed or updated.
  - `content_type` string — The type of the `TransactionAttachment` content (default: 'binary/octet-stream').
  - `upload_time` string — The date of upload.
  - `attachment_user_id` string — The ID of the `User` that uploaded the attachment.
  - `upload_user_channel` 'WEB' | 'MOBILE' | 'BO_USER' | 'business' | 'BAPI' | 'PAPI' | 'OTHER'
  - `compressed_file` TransactionAttachmentCompressedFile
    - `file_name` string — The file name of the compressed attachment.
    - `file_extension` string — The file extension of the compressed attachment.
    - `file_size` integer — The file size of the compressed attachment in bytes.
    - `file_url` string — The Base64 string of the Compressed File URL encrypted by DES in ECB mode, Pkcs7 padding scheme and using Token for key. Deprecated, use `url` instead.
    - `url` string — The fileUrl of the compressed attachment.
    - `url_type` 'DOWNLOAD_URL' | 'UPLOAD_URL' | 'UPLOAD_COMPLETED' | 'DELETE' | 'THUMBNAILS_DOWNLOAD_URL' | 'UPDATE_METADATA'
  - `metadata` object — The metadata of the attachment.
  - `last_update_time` string — The date and time when the `TransactionAttachment` was last updated.

## Other responses

- `400` — Your request has missing arguments or is malformed.
- `404` — One or more resource requested does not exist.

---

[API](https://skmtc.net/soldo/apis/soldo-business-api-v2-0.md) · [All operations](https://skmtc.net/soldo/apis/soldo-business-api-v2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/soldo/soldo-business-api-v2-0/revisions/7be21448a2b3/schema)
