---
schema_version: "1"
id: ea513e799eb3f619cfd2007aa792c268dc6048e8c576cda67640c75b9dd8b188
title: StoreProduct
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_storeproduct.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_storeproduct.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 412a34e3c35c82f97cab1b28b08d343e7dc6c0f8982112443df2d62d6fca0d90
description: Associate a product to a retail store or to a specific in-store location. This object is available in API version 47.0 and later.
---
# StoreProduct

Associate a product to a retail store or to a specific in-store location. This object is available in API version 47.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### AccountId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The account associated with the record. This field is available in API versions 52.0 and later.
    
    This is a relationship field.
- **Relationship Name**: Account
- **Relationship Type**: Lookup
- **Refers To**: Account

### DefaultOrderQuantity

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Default quantity to order.

### DisplayOrder

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Sequence in which a product must be displayed for a retail store. This field is available in API version 53.0 and later.

### EndDate

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Final date when the association of product to an in-store location, store, store group, or account is applicable.

### InStoreLocationId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: ID of the in-store location to which the product is associated.

### IsFavorite

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicator for top-selling products.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: Most recent date on which a user referenced this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: Most recent date on which a user viewed this record.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Unique identifier for the association of a store and product.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the store product record owner.

### ProductId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: ID of the product associated with the retail store.

### RetailStoreId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: ID of the retail store with which the product is associated.

### StartDate

- **Type**: date
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: First date that the association of product to an in-store location, store, store group, or account is applicable.

## Associated Objects

This object has the following associated objects. Unless noted, they’re available in the same API version as this object.

- **[StoreProductFeed](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")**: Feeds are available for the object.
- **[StoreProductHistory](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")**: History is available for the object.
- **[StoreProductShare](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")**: Sharing is available for the object.