---
schema_version: "1"
id: e41a8e5a63fab7a4ddd1acd7476618d8cec125f12ce4817bc3204a077d03ff6c
title: CartValidationOutput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_cartvalidationoutput.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_cartvalidationoutput.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 527ca5f72526365a80e25b14956fdd380b8d52058dae4895e72f38317beae7ed
description: Associate errors to cart entities, such as cart line items, delivery groups, and the like, in a store built with B2B Commerce or D2C Commerce. An example error is “Out of stock.” Available in API version 49.0 and later.
---
# CartValidationOutput

Associate errors to cart entities, such as cart line items, delivery groups, and the like, in a store built with B2B Commerce or D2C Commerce. An example error is “Out of stock.” Available in API version 49.0 and later.

## Supported Calls

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

## Special Access Rules

The CartValidationOutput object is available only if the B2B Commerce or D2C Commerce license is enabled.

## Fields

| Field | Details |
| --- | --- |
| BackgroundOperationId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the background operation that ran the validation.



 |
| CartId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the related WebCart.



 |
| 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





 |
| IsDismissed | 

Type

boolean

Properties

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

Description

Indicates whether the validation process is finished. Default value is false.



 |
| Level | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

Describes the type of output resulting from the validation process. Possible values are:

- 0 (Info)
- 1 (Error)
- 2 (Warning)







 |
| Message | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Defines the message to show in the log when validation is complete. Message can be up to 255 characters.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of this CartValidationOutput record. Name can be up to 255 characters.



 |
| RelatedEntityId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

Foreign key to WebCart, CartItem, and CartDeliveryGroup.



 |
| RelatedEntityPrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Three-character prefix for the related entity.



 |
| Type | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The CartValidationOutput type. Possible values are:

- CartSave — Available in API version 64.0 and later.
- Entitlement
- Inventory
- Other
- Pricing
- Promotions
- Shipping
- ShippingPromotions
- SystemError
- Taxes







 |

## 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.

[CartValidationOutputChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 58.0)

Change events are available for the object.

#### See Also

- [WebCart](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_webcart.htm "Represents an online shopping cart for a store built with B2B Commerce or D2C Commerce, with total amounts for products, shipping and handling, and taxes. This object is available in API version 49.0 and later.")
- [CartItem](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_cartitem.htm "Represents an item in a WebCart that’s active in a store built with B2B. Cart item can be of type Product or Charge. This object is available in API version 49.0 and later.")
- [CartDeliveryGroup](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_cartdeliverygroup.htm "Represents shipping information for the delivery of items in an order against a store built with B2B Commerce or D2C Commerce. This object is available in API version 49.0 and later.")