---
title: "Accessing a shop from rules or pipeline blocks"
slug: "accessing-a-shop-from-rules-or-pipeline-blocks"
abstract: ""
---
# Accessing a shop from rules or pipeline blocks

You might want to leverage information provided by a shop entity during the execution of business functionality. In this case, the shop is validated and loaded into the objects collection during the `ValidateContextPipeline`, which is run on every call into Sitecore XC.

Sitecore XC validates that the storefront passed in as a header is valid and that the requested currency is valid. The shop can then be referenced as a cached object in any pipeline block or by rules in the rules engine.