# Retrieve tax notices, comments, and finance details

Source: https://developer.avalara.com/products/returns/integration-guides/managed-returns/tsw9166916462498/

Guide: Avalara Managed Returns API (U.S. and Canada)

# Retrieve tax notices, comments, and finance details

Learn how to retrieve tax notices, comments, and financial details for a company.

Retrieves all tax notices for a company, including associated comments and financial details.

To get the tax notices, comments, and finance details, use the `notices` query.

## View request

```
query Notices {
  notices(input: {companyId: 123456}) {
    recordsetCount
    value {
      comments {
        attachmentUploadRequest {
          accountId
          companyId
          content
          documentId
          length
          name
          username
        }
        comment
        commentLink
        commentType
        commentTypeId
        commentUserId
        commentUserName
        date
        documentId
        id
        modifiedDate
        modifiedUserId
        noticeId
        taxNoticeFileName
      }
      createdDate
      finances {
        attachmentUploadRequest {
          accountId
          companyId
          content
          documentId
          length
          name
          username
        }
        createdDate
        createdUserId
        credits
        cspFeeRefund
        customerInterest
        customerPenalty
        documentId
        dueDate
        fileName
        id
        interest
        modifiedDate
        modifiedUserId
        noticeDate
        noticeId
        noticeNumber
        paymentMethod
        penalty
        taxAbated
        taxDue
      }
      id
      modifiedDate
      region
      status
      taxFormCode
      taxPeriod
      filingFrequency
    }
  }
}
```

## View response

```
{
  "data": {
    "notices": {
      "recordsetCount": 1,
      "value": [
        {
          "comments": [
            {
              "attachmentUploadRequest": null,
              "comment": "Test comment",
              "commentLink": null,
              "commentType": "CUSTOMER",
              "commentTypeId": 2,
              "commentUserId": 0,
              "commentUserName": "richard.sheppard.admin",
              "date": "2025-04-16T20:47:21.983729",
              "documentId": 23593673,
              "id": 652449,
              "modifiedDate": "2025-04-16T20:47:23.060848",
              "modifiedUserId": null,
              "noticeId": 60134,
              "taxNoticeFileName": "TestFile.pdf"
            }
          ],
          "createdDate": "2025-04-16T20:45:23.132364",
          "finances": [
            {
              "attachmentUploadRequest": null,
              "createdDate": "2025-04-16T20:46:17.618795",
              "createdUserId": null,
              "credits": 85.98,
              "cspFeeRefund": null,
              "customerInterest": null,
              "customerPenalty": null,
              "documentId": 23593672,
              "dueDate": null,
              "fileName": "TestFile.pdf",
              "id": 171771,
              "interest": 88.98,
              "modifiedDate": null,
              "modifiedUserId": null,
              "noticeDate": "2025-04-16T18:08:59.668324",
              "noticeId": 60134,
              "noticeNumber": null,
              "paymentMethod": null,
              "penalty": 56.98,
              "taxAbated": null,
              "taxDue": 99.98
            }
          ],
          "id": 60134,
          "modifiedDate": "2025-04-16T20:47:23.100614",
          "region": "TX",
          "status": "New",
          "taxFormCode": "USTX0111401116",
          "taxPeriod": "202502",
          "filingFrequency": "MONTHLY"
        }
      ]
    }
  }
}
```