All Release Notes

Audit Log now identifies changes linked to a specific Business Unit for Orders, Quote Requests, and Quotes.

13 September 2023
Composable Commerce
HTTP API
Enhancement
B2BAudit LogQuotesOrdersGraphQL

We have extended the capabilities of Audit Log to help you identify changes made to individual Business Units.

To help you filter Records, we've added the businessUnit query parameter to the Query Records endpoint. This allows you to filter Records by key for three specific resource types: orders, quote-requests, and quotes.

Changes:

  • [API] Added query parameter businessUnit to the Query Records endpoint.
  • [API] Added businessUnit field to Record.
  • [GraphQL API] Added KeyReference type.
  • [GraphQL API] Changed the ChangeHistory type:
    • Added businessUnit field to ChangeHistory.
  • [GraphQL API] Added businessUnit query parameter for orders, order, quotes, quote, quoteRequests, quoteRequest queries.

The following change was introduced in terms of GraphQL SDL:

type KeyReference {
key: String!
typeId: String!
}
type ChangeHistory {
...
businessUnit: KeyReference
}
extend type Query {
orders(
businessUnit: String
): ChangeHistoryQueryResults!
order(
businessUnit: String
): ChangeHistoryQueryResults!
quotes(
businessUnit: String
): ChangeHistoryQueryResults!
quote(
businessUnit: String
): ChangeHistoryQueryResults!
quoteRequests(
businessUnit: String
): ChangeHistoryQueryResults!
quoteRequest(
businessUnit: String
): ChangeHistoryQueryResults!
}