---
updatedAt: 2026-04-22T13:48:46.000Z
agentTools:
  projectIndex: https://docs.mercury.com/llms.txt
---

# List invoice attachments

Retrieve a list of all attachments for a specific invoice

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "ApiV1ArAttachmentResponseData": {
        "description": " The object representing a file attachment for an invoice.\n The file is not a part of this object itself but information\n for where to download it will be in this object.",
        "properties": {
          "fileName": {
            "description": " The filename for the file.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AttachmentId"
              },
              {
                "description": " The ID of the attachment object."
              }
            ]
          },
          "url": {
            "description": " The signed download URL for the file itself.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "fileName"
        ],
        "type": "object"
      },
      "ApiV1ArAttachmentsResponseData": {
        "description": " The response type for fetching attachments related to an AR Invoice.",
        "properties": {
          "attachments": {
            "description": " The list of attachments",
            "items": {
              "$ref": "#/components/schemas/ApiV1ArAttachmentResponseData"
            },
            "type": "array"
          }
        },
        "required": [
          "attachments"
        ],
        "type": "object"
      },
      "AttachmentId": {
        "description": "ID for the attachment.",
        "format": "uuid",
        "type": "string"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Streamline financial tasks with secure account management and transaction processing. Enables user registration, balance tracking, and payment handling.",
    "title": "Mercury API",
    "version": "1.0.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/ar/invoices/{invoiceId}/attachments": {
      "get": {
        "description": "Retrieve a list of all attachments for a specific invoice",
        "operationId": "listInvoiceAttachments",
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "required": true,
            "schema": {
              "description": "ID for the invoice.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV1ArAttachmentsResponseData"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`invoiceId` not found"
          }
        },
        "summary": "List invoice attachments",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "Mercury API URL",
      "url": "https://api.mercury.com/api/v1"
    }
  ],
  "tags": [
    {
      "description": "Manage invoices",
      "name": "Invoices",
      "x-business-only": true
    }
  ]
}
```