16 January 2026
CartsGraphQL
We have introduced Cart locking to enable your customer support agents to view and edit Carts without the risk of conflicting edits. Unlike Cart freezing, which prevents price-affecting changes but allows other updates, locking prevents all updates to a Cart.
You can lock and unlock Carts using the new
lockCart and unlockCart update actions. While a Cart is locked, the lock field records when and which API Client locked the Cart. Only API Clients with the manage_locked_carts:{projectKey} OAuth scope can lock, unlock, or update a locked Cart.Changes:
- [API] Added the CartLock type.
- [API] Added
lockCartandunlockCartupdate actions. - [API] Added the
lockfield to the Cart object. - [API] Added the
manage_locked_carts:{projectKey}OAuth scope. - [GraphQL API] Added
CartLock,LockCart, andUnlockCarttypes. - [GraphQL API] Updated the
CartUpdateActioninput to includelockCartandunlockCart. - [GraphQL API] Added the
lockfield to theCarttype.
The following changes were introduced in terms of GraphQL SDL:
extend type Cart {
lock: CartLock
}
extend input CartUpdateAction {
lockCart: LockCart
unlockCart: UnlockCart
}
"Prevents edits on a Cart unless the caller has the `manage_locked_carts` OAuth scope."
type CartLock {
createdAt: DateTime!
clientId: String!
}
input LockCart {
dummy: String
}
input UnlockCart {
dummy: String
}