---
schema_version: "1"
id: 52e0dc47bef9afb55420212e9732c4ac3e507b9623e0d356a12a0926e99a66f5
title: SalesTransactionShape
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_salestransactionshape.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_salestransactionshape.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 556eceac04d04f783e30e37f09c5d0632c6b79212600bf4cb0a165da20b6598e
description: Defines the business logic for a sales transaction; for example, an order, a quote, or a cart. This object is available in API version 57.0 and later.
---
# SalesTransactionShape

Defines the business logic for a sales transaction; for example, an order, a quote, or a cart. This object is available in API version 57.0 and later.

This object is visible in Object Manager for customization; for example, you can create custom fields for this object.

## Supported Calls

describeLayout(), describeSObjects(), query(), retrieve()

## Special Access Rules

This object is available with Subscription Management, B2B Commerce, or B2C Commerce.

## Fields

| Field | Details |
| --- | --- |
| AccountId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The unique identifier for the account associated with this sales transaction shape. This field is available when OrgPermissions or Platform is enabled.

This field is a relationship field.

Relationship Name

Account

Relationship Type

Lookup

Refers To

Account



 |
| SalesTransactionShapeName | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort

Description

The name of the sales transaction shape. For example, Quote.



 |
| TotalAdjustmentAmount | 

Type

currency

Properties

Create, Filter, Nillable, Sort

Description

The sum of all adjustments applied to the sales transaction shape, inclusive of quantity, prorated for the duration of the subscription. Includes distributed price adjustment items and price adjustment items applied directly. This calculated field is equal to the sum of TotalAdjustmentAmount on the related sales transaction shape items.



 |
| TotalAdjustmentDistAmount | 

Type

currency

Properties

Create, Filter, Nillable, Sort

Description

The sum of the distributed price adjustment items applied to the related sales transaction shape items, inclusive of quantity, prorated for the duration of the subscription. Does not include price adjustment items that are applied directly. This calculated field is equal to the sum of TotalAdjustmentDistAmount on the related sales transaction shape items.



 |
| TotalAmount | 

Type

currency

Properties

Create, Filter, Nillable, Sort

Description

The final price of the sales transaction shape, after all adjustments, inclusive of quantity, prorated for the duration of the subscription. This calculated field equal to the sum of TotalPrice on the related sales transaction shape items.



 |
| TotalListAmount | 

Type

currency

Properties

Create, Filter, Nillable, Sort

Description

The sum of the list price of the related sales transaction shape items, inclusive of quantity, prorated for the duration of the subscription. This calculated field is equal to the sum of ListPriceTotal on the related sales transaction shape items.



 |
| TotalProductAmount | 

Type

currency

Properties

Create, Filter, Nillable, Sort

Description

The total price of all related sales transaction shape items of type Product, before price adjustments, inclusive of quantity, prorated for the duration of the subscription. This calculated field is equal to the sum of TotalLineAmount on the related sales transaction shape items of type Product.



 |