---
schema_version: "1"
id: 96a380a5829a99a1879bfc28fb2f158c82100556295f6c04de869755d6172afa
title: PurchaseQuantityRule
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_purchasequantityrule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_purchasequantityrule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1509d395c0b15c9c1313da2f08de78131a7e1da81deb5e81f2aafb4c997bcdf9
description: Represents a rule that restricts the quantity of a product that can be purchased. The rule can be an increment, minimum, or maximum rule. This object is available in API version 52.0 and later.
---
# PurchaseQuantityRule

Represents a rule that restricts the quantity of a product that can be purchased. The rule can be an increment, minimum, or maximum rule. This object is available in API version 52.0 and later.

## Supported Calls

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

## Special Access Rules

The PurchaseQuantityRule object is available only if the B2B Commerce license is enabled.

## Fields

| Field | Details |
| --- | --- |
| CurrencyIsoCode | 
Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The ISO code for the currency that’s specified on the buyer’s account. Default value is USD.

Possible values are:

- EUR—Euro
- USD—U.S. Dollar





 |
| Increment | 

Type

double

Properties

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

Description

Quantity of product that can be added with each increase.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, and LastReferenceDate is not null, the user accessed this record or list view indirectly.



 |
| Maximum | 

Type

double

Properties

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

Description

Maximum quantity that can be purchased.



 |
| Minimum | 

Type

double

Properties

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

Description

Minimum quantity that can be purchased.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Name of the purchase quantity rule.



 |
| OwnerId | 

Type

reference

Properties

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

Description

ID of the creator of this object.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |