Store a filing's return or payment confirmation document, as multipart/form-data with the document in the file part. artifactType picks the slot: RETURN or PAYMENT. Uploading to a slot that already holds a document replaces it. Returns 200 whether the slot was empty or full. A replace returns a new attachment id, so do not reuse the old id for download. Every upload adds an audit note to the filing, even when the file is identical to the stored one. Only a partner may upload, and only on a filing the partner files, not Kintsugi: the partner's portfolio key, or a partner user who can see the organization. The organization's own users and organization API keys cannot upload. Send an Organization-Id, Connection-Id or Entity-Id selector to say which organization the filing belongs to. The filing's status does not change. Download the stored document through GET /attachments/{id}/download.
The file must be a PDF, PNG or JPEG of at most 10 MB, and its extension must match its type. Returns 404 if the filing does not exist or belongs to an organization your credential cannot access, 403 if your portfolio does not file the return or your credential cannot upload for the partner, 409 if the filing is not in the FILING, SUBMITTED or FILED status, 413 if the file is too large, 422 if it is not an accepted type, and 400 if your session has no user id to attribute the upload to.
Release date, as YYYY-MM-DD. Defaults to 2026-07-21.
Target organization id (Organization-Id selector).
Target connection id; resolves to its organization.
Platform entity id; resolves to a connection's organization.
Optional source to disambiguate an Entity-Id.
The unique identifier of the filing.
Which confirmation document the upload fills.
RETURNPAYMENTKintsugi's unique identifier for the attachment.
Name the file was uploaded under.
Media type of the file.
Size of the file in bytes.
When the attachment was uploaded, as an RFC-3339 UTC timestamp.
Successful Response
The request was invalid.
Authentication failed or was missing.
The credential is not permitted for this request.
The requested resource was not found.
The request conflicts with existing state.
The request body is larger than this endpoint accepts.
The request failed validation.
A service this request depends on was unavailable. Retry the request.