---
updatedAt: 2026-06-29T20:33:19.000Z
agentTools:
  projectIndex: https://developer.bill.com/llms.txt
---

# Get audit trail details for a vendor

Get audit trail details about changes made to a vendor object. The audit trail lists records for each create and edit operation.

See [Get audit trail details](https://developer.bill.com/docs/getting-audit-trail-details) in the Guides section for more information, sample requests, and responses.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BILL v3 API",
    "description": "BILL is a cloud-based financial operations platform for an organization's accounts payable (AP), accounts receivable (AR), and spend & expense (S&E) automation.\n\nThe BILL v3 API gives you access to the same infrastructure that powers the AP, AR, and S&E products. In addition, you can receive real-time event notifications with webhooks.\n\nThe BILL Developer Documentation is available at [developer.bill.com](https://developer.bill.com/docs/home).\n\n## Quickstart\nSign-up and generate a developer key for working with the BILL v3 API. With this key, you can build with the AP, AR, BILL network, and webhook workflows. See [Sandbox API sign up](https://developer.bill.com/docs/api-sandbox-sign-up) for more information.\n\n### Spend & Expense API\nAn API token is required for working with the Spend & Expense API. See [Authentication with Spend & Expense API token](https://developer.bill.com/docs/authentication-with-api-token) for more information.\n\n### BILL v3 API in Postman\nWith this collection, you have access to the BILL v3 API in Postman. When you save your sandbox API credentials as environment variables in Postman, you can simply refer to the variables when you are testing with the BILL v3 API. See [BILL v3 API in Postman](https://developer.bill.com/docs/bill-v3-api-in-postman) for more information.",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://gateway.stage.bill.com/connect",
      "description": "sandbox"
    }
  ],
  "paths": {
    "/v3/reports/audit-trail/vendor/{vendorId}": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "Get audit trail details for a vendor",
        "description": "Get audit trail details about changes made to a vendor object. The audit trail lists records for each create and edit operation.\n\nSee [Get audit trail details](https://developer.bill.com/docs/getting-audit-trail-details) in the Guides section for more information, sample requests, and responses.",
        "operationId": "getVendorAuditTrail",
        "parameters": [
          {
            "name": "sessionId",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "API session ID generated with `/v3/login`",
              "nullable": true,
              "example": "{{session_id}}"
            }
          },
          {
            "name": "devKey",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "Developer key generated with your BILL developer account",
              "nullable": true,
              "example": "{{developer_key}}"
            }
          },
          {
            "name": "vendorId",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "type": "string",
              "description": "BILL-generated ID of the vendor. The value begins with `009`.",
              "example": "{{vendor_id}}"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "schema": {
              "type": "boolean",
              "description": "Set as `true` to include all archived audit trail records in the response",
              "nullable": true
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "Index of the first result",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "max",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "Maximum number of results",
              "format": "int32",
              "nullable": true,
              "example": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get audit trail details response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditTrailEntry"
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AuditTrailEntry": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Set as `API` when the create or edit operation is completed with the API"
          },
          "type": {
            "type": "string",
            "description": "Operation type (`CREATE` or `EDIT`)"
          },
          "createdTime": {
            "type": "string",
            "description": "Created date and time of the audit trail record"
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuditTrailUser"
              },
              {
                "description": "User information"
              }
            ]
          },
          "field": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuditTrailField"
              },
              {
                "description": "Information about the field that is created or edited"
              }
            ]
          }
        },
        "description": "Audit trail details response."
      },
      "AuditTrailField": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Field name"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuditTrailFieldValue"
              },
              {
                "description": "Field value"
              }
            ]
          }
        },
        "description": "Field whose change was captured in Audit Trail Entry."
      },
      "AuditTrailFieldValue": {
        "type": "object",
        "properties": {
          "previous": {
            "type": "string",
            "description": "Previous value"
          },
          "current": {
            "type": "string",
            "description": "Current value"
          }
        },
        "description": "Previous and current values of the field as captured in Audit Trail Entry."
      },
      "AuditTrailUser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "BILL-generated ID of the user. The value begins with `006`."
          },
          "name": {
            "type": "string",
            "description": "Name of the user"
          }
        },
        "description": "User whose action created Audit Trail Entry."
      },
      "BdcError": {
        "required": [
          "category",
          "code",
          "severity",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "code": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "message": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Param"
            }
          },
          "detail": {
            "type": "string"
          },
          "help": {
            "type": "string"
          }
        }
      },
      "Category": {
        "type": "string",
        "enum": [
          "REQUEST",
          "APPLICATION",
          "SERVER",
          "DOWNSTREAM"
        ]
      },
      "Param": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "additional": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          }
        }
      },
      "Severity": {
        "type": "string",
        "enum": [
          "ERROR",
          "WARNING",
          "INFORMATION"
        ]
      }
    }
  }
}
```