---
updatedAt: 2026-03-30T13:14:42.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/discovery/llms.txt
---

# Buy Online Pick-up In Store (BOPIS)

> 📘
>
> Read more about this feature on the [BOPIS feature page](https://documentation.bloomreach.com/discovery/docs/buy-online-pick-up-in-store-bopis).

With this feature, you can allow your user to search products from across your sites (online) and have it picked up physically from any of your stores nearest to the user (offline).

BOPIS uses the following parameters:

* **ll** - BOPIS-specific parameter to specify the end-customer's latitude-longitude.
* **fl** - Returns the distance from the point specified in the **ll** parameter.
* **fq** - Allows filtering by distance from the point specified in the **ll** parameter.

```curl Product Search request with BOPIS parameters
GET https://core.dxpapi.com/api/v1/core/?
account_id=<Bloomreach provided account ID>
&auth_key=jazzhands
&domain_key=example_com
&request_id=8438674518839
&_br_uid_2=uid=7797686432023:v=11.5:ts=1428617911187:hc=55
&ref_url=http://www.example.com/home
&url=http://www.example.com/index.html?q=dresses
&request_type=search
&ll=38.880657,-77.396935 #latitude-longitude of the end customer
&search_type=keyword
&q=dresses
&fl=store_lat_lon, pid #Returns the distance from ll
&fq=store_lat_lon:"100" #Enables filtering by distance from ll
&rows=10
&start=0
```

> 📘 Note
>
> You can create multiple [views](https://documentation.bloomreach.com/discovery/docs/discovery-glossary#views) for different physical stores and pass the `view_id` parameter in the API call.

## **Feed requirements**

***

To implement [distance-based filtering](https://documentation.bloomreach.com/discovery/docs/buy-online-pick-up-in-store-bopis#enable-distance-based-filtering), your [feed](https://documentation.bloomreach.com/discovery/reference/format-your-data-product) must include the **store\_location** attribute. The following table lists the attribute details.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "h-2": "Schema format",
    "0-0": "**store_location**",
    "0-1": "An array of objects representing geographical locations of stores, each containing latitude and longitude coordinates.  \n  \nNote that this is a reserved attribute. Review the [attribute configurations](https://documentation.bloomreach.com/discovery/reference/reserved-fields-api#using-reserved-fields).",
    "0-2": "`store_location=[{\"lat\":39.786063,\"lon\":-104.959286}]`  \n  \nlat is the latitude coordinate of the store location. Valid values range from -90 to 90 degrees.  \n  \nlon is the longitude coordinate of the store location. Valid values range from -180 to 180 degrees."
  },
  "cols": 3,
  "rows": 1,
  "align": [
    "left",
    "left",
    "left"
  ]
}
[/block]

## **Sample product feed snippet**

***

<br />

```json
[
  {
    "op": "add",
    "path": "/products/3478951",
    "value": {
      "attributes": {
        "store_location": [
          {
            "lat": 39.103858,
            "lon": -84.511346
          },
          {
            "lat": 41.500355,
            "lon": -81.697647
          }
        ]
      }
    }
  }
]
```