---
schema_version: "1"
id: 68ce517f80d0af7ccef47ac2035294eea94ac6ae4e4c1f9b31bb1cffef0b87f5
title: WebStorePricebook
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_webstorepricebook.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_webstorepricebook.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4440d2dfa90dedc2139a1bc55a5399fc64ad76ddee08d3454c74dbbafee3ced2
description: Represents a store price book used in Lightning B2B Commerce. This object is available in API version 48.0 and later.
---
# WebStorePricebook

Represents a store price book used in Lightning B2B Commerce. This object is available in API version 48.0 and later.

## Supported Calls

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

## Special Access Rules

This object is available only if the B2B Commerce license is enabled.

## Fields

| Field | Details |
| --- | --- |
| IsActive | 
Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Determines whether the WebStorePricebook is active (true) or not (false). Default value is false.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record. If this value is null, it’s possible that this record was referenced (LastReferencedDate) and not viewed.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The name of the store price book record.



 |
| Pricebook2Id | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the price book assigned to the store.



 |
| WebStoreId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the store assigned to the price book.



 |

## Usage

Use the WebStorePricebook object to assign price books to a store. When you assign a price book to a web store, any buyer who has access to the store can price products from the assigned price books. When a store or buyer has multiple price book assignments, including prices to the same product, the price is determined by the pricing strategy of the store.

## Associated Objects

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

[WebStorePricebookFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/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.")

Feed tracking is available for this object.