QIMA Logo

Audit Reports Search Guide

Latest Update Time: 2026-07-01 00:00:00

Use the audit reports search API to retrieve a paginated list of audit reports for a client account.

See the Audit Introduction for base URL, authentication, and required headers.

Endpoint

GET https://ppapi.qima.com/user/{userId}/audit-reports

Prerequisites

In addition to the required headers and authentication setup:

  • Permission to view audit reports for the target client

Path Parameters

ParameterRequiredDescription
userIdYesQIMA client user login ID.

Query Parameters

ParameterRequiredDescription
startNoFilter start date for the audit date range, in YYYY-MM-DD format (e.g., 2016-12-01).
endNoFilter end date for the audit date range, in YYYY-MM-DD format (e.g., 2016-12-01).
keywordNoKeyword to search against the audit order number or related references.
pageNoPage number to show.
page-sizeNoPage size in search results.
allNoSend true to fetch all sub-master account results under a super-master account.
sortFieldNoField name to sort by. Should be one of the returned column names.
sortTypeNoDESC or ASC.
startSendDateNoFilter start date for the report send/resend date range, in YYYY-MM-DD format.
endSendDateNoFilter end date for the report send/resend date range, in YYYY-MM-DD format.

Request Example

curl --location --request GET 'https://ppapi.qima.com/user/<qima-user-id>/audit-reports' \
  --header 'Ai-Api-Access-Token: {your api access token}' \
  --header 'Ai-User-Id: {your user ID}' \
  --header 'Authorization: Bearer {your token}' \
  --header 'Referer: https://preprodmy.qima.com/'

This capture does not use any optional query parameters (start, end, keyword, etc.). ⚠️ TODO (Step 2): if useful, add a second example that uses filters.

Successful Response

HTTP 200 OK means the search completed successfully. The response wraps the paginated report list in a generic page structure.

{
    "message": null,
    "content": {
        "pageNo": 1,
        "totalPageNum": 11,
        "totalSize": 214,
        "pageItems": [
            {
                "orderId": "35E6D48021774ED1999C34C78C0543BE",
                "auditDate": "27-Mar-2023",
                "orderNumber": "R-Cloud-PP-23002497",
                "status": "30",
                "auditType": "EA",
                "divisions": "",
                "showDivision": "No",
                "auditProgram": "Big Lots",
                "generalComments": "",
                "serviceType": "9",
                "sicName": "Sam Wang",
                "manDay": "1",
                "isKeyAccount": "No",
                "isReInspection": "YES",
                "clientName": "AuditApp-Automation",
                "dateConfirmed": "Yes",
                "inspectorsNamesList": ["Sam Wang"],
                "numberOfWorkers": "1",
                "factoryName": "FactoryTest40087",
                "factoryId": "17DC5E895B9B46D684A014E078548019",
                "factoryProvince": "Guangdong",
                "countryName": "China",
                "charge": 681.45,
                "supplierName": "SupplierTest64309",
                "supplierProvince": "Zhejiang",
                "supplierCity": "12685402",
                "bookingDate": "2023-03-14",
                "updateTime": "2023-03-14 02:03:47",
                "clientReference": "",
                "orderPlacer": "SP1126",
                "aiOffice": "Shenzhen office",
                "reportCoverOverAllScore": 8.3,
                "riskIndicator": "Green",
                "factoryAddress": "Address test",
                "factoryCity": "Shenzhen",
                "lockStatus": 0,
                "read": false,
                "poNumber": "",
                "validityDate": "2024-03-20",
                "supervisor": "Sam Wang",
                "sendReportTime": 1678775496577,
                "sendReportTimeFormat": "14-Mar-2023 14:31:36"
            },
            {
                "orderId": "36D19E11D53D4B6EBBEC91E13C88CEE0",
                "auditDate": "23-Mar-2023",
                "orderNumber": "R-Cloud-PP-23003511",
                "status": "30",
                "auditType": "EA",
                "divisions": "",
                "showDivision": "No",
                "auditProgram": "Big Lots",
                "generalComments": "",
                "serviceType": "9",
                "sicName": "Sam Wang",
                "manDay": "1",
                "isKeyAccount": "No",
                "isReInspection": "NO",
                "clientName": "AuditApp-Automation",
                "dateConfirmed": "Yes",
                "inspectorsNamesList": ["Sam Wang"],
                "numberOfWorkers": "1",
                "factoryName": "FactoryTest40489",
                "factoryId": "17DC5E895B9B46D684A014E078548019",
                "factoryProvince": "Guangdong",
                "countryName": "China",
                "charge": 681.45,
                "supplierName": "SupplierTest65240",
                "supplierProvince": "Zhejiang",
                "supplierCity": "12685402",
                "bookingDate": "2023-03-20",
                "updateTime": "2023-03-20 11:03:36",
                "clientReference": "EA Internal Ref No 1",
                "orderPlacer": "SP1126",
                "aiOffice": "Nanjing Office",
                "reportCoverOverAllScore": 8.3,
                "riskIndicator": "Green",
                "factoryAddress": "Address test",
                "factoryCity": "Shenzhen",
                "lockStatus": 0,
                "read": false,
                "poNumber": "EA PO No 1",
                "validityDate": "2025-03-16",
                "supervisor": "Sam Wang",
                "sendReportTime": 1679282077987,
                "sendReportTimeFormat": "20-Mar-2023 11:14:37"
            }
        ],
        "countByFields": null
    }
}

The real capture returns 214 items across 11 pages; the array above is trimmed to 2 representative items. A few fields in the raw capture (generalComments, clientReference, poNumber) contained Jira ticket URLs on some records — those look like leftover test data rather than the intended field format, so they were blanked out or replaced with a cleaner record above where available.

Response Field Notes

FieldNotes
pageNoCurrent page number in the search results.
totalPageNumTotal number of pages available for the current query.
totalSizeTotal number of matching audit reports across all pages.
pageItems[].orderIdInternal audit order ID. Pass this as reportId to Get Audit Report Details.
pageItems[].orderNumberClient-facing QIMA order number, for example R-Cloud-PP-23002497.
pageItems[].statusNumeric order status code, for example 30.
pageItems[].auditType / serviceTypeText and numeric audit type, for example EA / 9 (Ethical Audit).
pageItems[].riskIndicatorRisk rating derived from the audit result, for example Green.
pageItems[].reportCoverOverAllScoreOverall audit score shown on the report cover.
pageItems[].manDayNumber of person-days spent on the audit.
pageItems[].clientReference / poNumberClient's own reference number / PO number for this order, if provided.
pageItems[].sendReportTime / sendReportTimeFormatUnix timestamp (ms) and formatted date/time the report was sent to the client.
pageItems[].validityDateDate the audit report remains valid until, if applicable.
countByFieldsAggregate counts, if requested; null when not used. Exact grouping is not documented in the OpenAPI schema.

Common Errors

See common authentication errors for 401 and 403 responses.

Next Steps

  • Use a report ID from the results to retrieve full audit report details.