Skip to main content

quoteAuditLogs

Requires permission sales:quote:read.

Audit trail for one quote: every recorded change with who made it and when. Scoped to the caller's customer visibility.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query QuoteAuditLogs($quoteId: ID!) {
quoteAuditLogs(quoteId: $quoteId) {
id
createdAt
action
changes
deletedBy
enteredBy
user {
id
firstName
lastName
email
}
}
}

Variables:

{
"quoteId": "id"
}

Response:

{
"data": {
"quoteAuditLogs": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"action": "string",
"changes": {},
"deletedBy": "string",
"enteredBy": "string",
"user": {
"id": "id",
"firstName": "string",
"lastName": "string",
"email": "string"
}
}
]
}
}
quoteAuditLogs(
quoteId: ID!
): [AuditLog!]!

Arguments​

quoteAuditLogs.quoteId ● ID! non-null scalar​

The ID of the quote.

Type​

AuditLog object​

One entry in the audit log.