---
title: "Get audit data for specified location and audit type without template information"
method: GET
path: "/subscribers/current/locations/auditinfo"
tags: ["SiteAudit"]
---

# Get audit data for specified location and audit type without template information

`GET /subscribers/current/locations/auditinfo`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/subscribers/current/locations/auditinfo`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/subscribers/current/locations/auditinfo/get.ts> (a function with typed inputs; its response is checked against the schema)

Setup data for areas-checklist-checklistItems relationship data are not provided in this method.

## Query parameters

- `locationId` integer, required
- `templateId` integer, required

## Response `200`

The audit info for the requested location is provided in the response.

- ServiceChannelServicesMessagingSiteAuditGetAuditInfo
  - `Id` integer
  - `StartDate` string, date-time
  - `Emails` string
  - `Areas` ServiceChannelServicesMessagingSiteAuditAuditAreaExternal[]
    - `Id` integer
    - `Name` string
    - `SortOrder` integer
    - `CheckLists` ServiceChannelServicesMessagingSiteAuditCheckListExternal[]
      - `Name` string
      - `Unlisted` boolean
      - `SortOrder` integer
      - `CheckListItems` ServiceChannelServicesMessagingSiteAuditCheckListItemExternal[]
        - `Name` string
        - `Description` string
        - `Score` integer
        - `System` 'PassFail' | 'Numeric' | 'Weighted' | 'Percentage'
        - `Date` string, date-time
        - `Unlisted` boolean
        - `Issues` ServiceChannelServicesMessagingSiteAuditAuditIssueExternal[]
          - `Id` integer
          - `Description` string
          - `Date` string, date-time
          - `Attachments` ServiceChannelServicesMessagingSiteAuditIssueAttachmentExternal[]
            - `Id` integer
            - `RemoteName` string
            - `RemoteNameResized` string
            - `FileName` string
            - `ContentUrl` string
            - `ContentUrlResized` string
            - `ContentType` string
          - `Persistent` boolean
          - `UserName` string
        - `Quantity` ServiceChannelServicesMessagingSiteAuditQuantityExternal
          - `Value` integer
          - `Type` 'Dollar' | 'Quantity'
          - `Unit` string
        - `CheckListItemImpact` string
        - `PassThreshold` integer
        - `Range` integer[]
        - `StatisticItems` ServiceChannelServicesMessagingSiteAuditCheckListItemStatisticWeightedExternal[]
          - `CheckListItemId` integer
          - `Date` string, date-time
          - `Score` integer
          - `System` integer
          - `Range` integer[]
          - `PassThreshold` integer
          - `WorkOrdersCount` integer
          - `CommentsCount` integer
          - `AttachmentsCount` integer
          - `QuantityCount` integer

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 1010 - Invalid site audit parameters
- `401`: The request is not authorized. <br/>Error codes: 504 - Missing or incorrect authentication credentials
- `500`: The server was unable to complete the request due to an internal error. <br/>Error codes: 501 - Unspecified internal server error occurred

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
