---
title: "POST /attachments"
method: POST
path: "/attachments"
tags: ["Attachment", "Attachments"]
---

# POST /attachments

`POST /attachments`

## Request

- Base URL: `https://api.railz.ai`
- URL: `https://api.railz.ai/attachments`
- Auth: HTTP bearer

Posts an individual invoice or bill attachment to a business.

## Request body

- PushAttachmentV1Dto
  - `connection` PushAttachmentConnection, required
    - `businessName` string, required
    - `serviceName` 'freshbooks' | 'quickbooks' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'zohoBooks', required: Name of accounting platform service.
  - `file` string, binary, required
  - `data` PushAttachmentV1, required
    - `link` PushAttachmentLink, required
      - `type` 'bill' | 'invoice' | 'customer' | 'vendor' | 'deposit' | 'journalEntry' | 'billPayment' | 'invoicePayment' | 'expense' | 'inventory' | 'purchaseOrder' | 'invoiceCreditNote' | 'billCreditNote' | 'bankTransaction' | 'bankTransfer' | 'account', required
      - `id` string, required

## Response `200`

- PushAttachmentResponseV1Dto
  - `pushCommunicationId` string, required
  - `requestedOn` string, date-time, required
  - `status` 'success' | 'failed' | 'pending', required
  - `businessName` string, required
  - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'myob' | 'zohoBooks' | 'byod', required
  - `data` PushAttachmentV1, required
    - `link` PushAttachmentLink, required
      - `type` 'bill' | 'invoice' | 'customer' | 'vendor' | 'deposit' | 'journalEntry' | 'billPayment' | 'invoicePayment' | 'expense' | 'inventory' | 'purchaseOrder' | 'invoiceCreditNote' | 'billCreditNote' | 'bankTransaction' | 'bankTransfer' | 'account', required
      - `id` string, required

## Other responses

- `400`: Bad Request Error - Thrown if fields sent via query does not follow specifications
- `401`: Unauthorized - Not logged in or log in expired
- `403`: Forbidden - Not enough permission
- `500`: Server Error

## Changes

- **2026-09-03** `1383b9a47ac9`: 1 info
  - api tag `Attachment` added
- **2026-08-10** `5cdfae3fa1fa`: 1 breaking, 13 warning, 44 info
  - the `businessName` response's property format changed from `uuid` to no format for status `200`
  - added the new `byod` enum value to the `serviceName` response property for the response status `200`
  - added the new `dynamics365Finance` enum value to the `serviceName` response property for the response status `200`
  - added the new `dynamicsBusinessCentral` enum value to the `serviceName` response property for the response status `200`
  - …54 more

[Operation history](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/changes/attachments/post.md)

---

[API](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api.md) - [All operations](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/revisions/1383b9a47ac9?raw)
