Newer Version Available
WebCart
Represents an online shopping cart in a store built with B2B Commerce
on Lightning, with total amounts for products, shipping and handling, and taxes. This
object is available in API version 49.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
The WebCart object is available only if the B2B Commerce license is enabled.
Fields
| Field | Details |
|---|---|
| AccountId |
|
| BillingAddress |
|
| BillingCity |
|
| BillingCountry |
|
| BillingGeocodeAccuracy |
|
| BillingLatitude |
|
| BillingLongitude |
|
| BillingPostalCode |
|
| BillingState |
|
| BillingStreet |
|
| CurrencyIsoCode |
|
| GrandTotalAmount |
|
| GuestEmailAddress |
|
| GuestFirstName |
|
| GuestLastName |
|
| GuestPhoneNumber |
|
| GuestSecondName |
|
| IsRepricingNeeded |
|
| IsSecondary |
|
| LastRepricingDate |
|
| Name |
|
| OwnerId |
|
| PaymentGroupId |
|
| PaymentMethodId |
|
| PoNumber |
|
| Status |
|
| TaxLocaleType |
|
| TaxType |
|
| TotalAdjustmentAmount |
|
| TotalAmount |
|
| TotalAmountAfterAllAdjustments |
|
| TotalChargeAmount |
|
| TotalChargeTaxAmount |
|
| TotalLineItemsWithErrors |
|
| TotalListAmount |
|
| TotalProductAmount |
|
| TotalProductCount |
|
| TotalProductTaxAmount |
|
| TotalPromoAdjustmentAmount |
|
| TotalPromoAdjustmentTaxAmount |
|
| TotalTaxAmount |
|
| Type |
|
| UniqueProductCount |
|
| WebStoreId |
|
Usage Notes
- In a B2B Commerce for Lightning store, customers who created custom components for adding items to carts noticed that, after adding items, the cart badge didn’t refresh. A hard refresh causes the value to properly update.
Associated Objects
This object has the following associated objects. Unless it’s noted, associated objects
are available in the same API version as this object.
- WebCartHistory
- History is available for tracked fields of the object.
- WebCartOwnerSharingRule
- Sharing rules are available for the object.
- WebCartShare
- Sharing is available for the object.