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

# POST /attachments

`POST /attachments`

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

---

[API](https://skmtc.net/railz/apis/fis-accounting-data-as-a-service-api.md) · [All operations](https://skmtc.net/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/railz/fis-accounting-data-as-a-service-api/revisions/5cdfae3fa1fa/schema)
