# Shared Orders

Here you can find an overview of the company shared orders concept, along with its features and benefits.

{% hint style="info" %}

* Looking for code tutorials? Check out the [Order Service](/api-references/api-guides/orders/order/order.md).
* Looking for API reference? Check out the [Order Service](/api-references/api-guides/orders/order.md) in the Emporix API Reference.
  {% endhint %}

## Purpose

Frequently in B2B scenarios, companies have a few or multiple customer representatives that make purchases at your online store. Therefore, there is a need for viewing orders made by other customers from the same organization. With the relevant scopes, you can grant access to a certain group of customers so that they can track and manage the shared orders. This feature brings transparency and efficiency to order management on the customers side, improving their workflows.

## Features

The Emporix orders functionality combines a set of features:

| Feature                              | Description                                                                                                                                                                                                                     |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Company shared orders visibility** | With the right scopes, the end customers can see not only their own orders but also by other customers from the same organization. It improves the expenses transparency and better collaboration for the end users.            |
| **Enhanced security and privacy**    | Sensitive order information remains accessible to relevant users/user groups only, reducing data exposure as the visibility of the company related orders is possible only with the relevant scope granted to a customer group. |
| **Frontend readiness**               | Maximize the efficiency of your storefront launch. Take advantage of pre-designed functionality and streamline implementation processes.                                                                                        |

## Overview

To enable the shared orders visibility for a certain group of customers, grant the access by setting the `read for legal entity` scope for a customer group.

The diagram visualizes how the orders can be shared among different customers:\\

<figure><img src="/files/JA0UrM7gLTG128qHmFXM" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To learn more about the customer groups and how to manage them, see the Core Commerce guide [Customer Groups](/ce/core-commerce/customer-management/groups.md) and the Management Dashboard guide [Groups](/ce/management-dashboard/customer-management/customer-groups.md).

To see the example use case, refer to the [Company Related Orders and Customer Groups](/ce/customer-use-cases/scenarios-introduction/shared-orders.md).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.emporix.io/ce/core-commerce/orders/shared-orders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
