---
title: "Engage.updatePointOfSale(pointOfSale)"
slug: "engage-updatepointofsale"
abstract: "Describes the updatePointOfSale() function in the Sitecore Engage SDK (Sitecore CDP Stream API)."
---
# Engage.updatePointOfSale(pointOfSale)

The `updatePointOfSale()` function updates the value of `pointOfSale` that you previously specified in [the settings object](https://doc.sitecore.com/cdp/en/developers/api/stream-api/sitecore-engage-sdk-reference/objects/settings-object.html "Settings object"). Then, every event that you send inside the scope of this function will automatically include the updated point of sale.

sidebar. Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `pointOfSale` | string | The new point of sale.<br><br>You must set this value to the name of a point of sale that exists in your instance of Sitecore CDP. |

Here's an example of a scenario where an organization uses multiple points of sale. The default point of sale is specified as `"myretailsite"` in the settings object. If certain conditions are met, the point of sale is updated to `"myretailsite/europe"`. Then, a VIEW event is sent with the new point of sale.

```javascript
import { init } from "@sitecore/engage";

const loadEngage = async () => {
  const engage = await init({
      // ...
      pointOfSale: "myretailsite"
  });

  if (region === "europe") {
      engage.updatePointOfSale("myretailsite/europe");
      engage.pageView({
          // ...
      });
  };
};

```