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

# GET /attachments

`GET /attachments`

## Request

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

Gets all invoice & bill attachments for a business.

## Query parameters

- `businessName` string, required
- `serviceName` 'freshbooks' | 'quickbooks' | 'xero' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'zohoBooks', required
- `offset` number
- `limit` number
- `orderBy` string
- `id` string

## Response `200`

- GetAttachmentResponseV1Dto
  - `count` number, required
  - `data` GetAttachmentData[], required
    - `id` string, required
    - `url` string, uri, required
    - `fileName` string
    - `contentType` string
    - `uploadDate` string
    - `fileSize` number, float
    - `sourceModifiedDate` string
    - `link` AttachmentLink
      - `type` 'bill' | 'invoice' | 'customer' | 'vendor' | 'deposit' | 'journalEntry' | 'billPayment' | 'invoicePayment' | 'expense' | 'inventory' | 'purchaseOrder' | 'invoiceCreditNote' | 'billCreditNote' | 'bankTransaction' | 'bankTransfer' | 'account'
      - `id` string

## Other responses

- `202`: Data in pending state
- `204`: No data available
- `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`: 11 breaking, 28 warning, 1 info
  - removed the enum value `myob` from the `query` request parameter `serviceName`
  - removed the enum value `oracleNetsuite` from the `query` request parameter `serviceName`
  - removed the enum value `plaid` from the `query` request parameter `serviceName`
  - removed the enum value `quickbooksDesktop` from the `query` request parameter `serviceName`
  - …36 more

[Operation history](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/changes/attachments/get.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)
