OrderItemAdjustmentLineItem
An adjustment that has been made to an order item.
Introduced in API version 48.0.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
- To access Commerce Orders entities, your org must have a Salesforce Order Management license. Commerce Orders entities are available only in Lightning Experience.
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Introduced: API version 57.0
- Description: Used with
AdjustmentValueto determine the amount of the adjustment. - Possible values:
- Total — Total — The adjustment scope is the total price.
- Unit — Unit — The adjustment scope is the unit price.
- UnproratedTotal — UnproratedTotal — The adjustment scope is the unprorated total price.
-
Type: reference
-
Properties: Create, Filter, Group, Nillable, Sort, Update
-
Introduced: API version 54.0
-
Description:
References the specific coupon applied.
This is a polymorphic relationship field.
-
Relationship name: AdjustmentBasisReference
-
Relationship type: polymorphic
-
Refers to: Coupon, FtestConcrete
-
Type: reference
-
Properties: Create, Filter, Group, Nillable, Sort, Update
-
Introduced: API version 52.0
-
Description:
References the specific promotions applied.
This is a polymorphic relationship field.
-
Relationship name: AdjustmentCause
-
Relationship type: polymorphic
-
Refers to: FtestMain, PriceAdjustmentTier, Promotion
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Introduced: API version 57.0
- Description: Indicates the origin of the adjustment.
- Possible values:
- Discretionary — Discretionary — The adjustment originates from a decision made by an individual, for example, a manager’s discount granted to a client.
- Promotion — Promotion — The adjustment originates from a promotion, for example, a holiday sale discount.
- Rule — Rule — Reserved for future use.
- System — System — The adjustment originates from the system, for example, a volume discount after the amount of items reaches a specific number.
-
Type: reference
-
Properties: Create, Filter, Group, Nillable, Sort, Update
-
Introduced: API version 67.0
-
Relationship name: AdjustmentTier
-
Relationship type: relationship
-
Refers to: PromotionTier
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Introduced: API version 57.0
- Description: Indicates the type of mathematical adjustment to be applied to the order.
- Possible values:
- AdjustmentAmount — AdjustmentAmount — The adjustment is a numerical amount, for example, a cash discount of 20.
- AdjustmentPercentage — AdjustmentPercentage — The adjustment is a percentage amount, for example, a 10% discount.
- OverrideAmount — OverrideAmount — The adjustment is a manual price override.
-
Type: double
-
Properties: Create, Filter, Nillable, Sort, Update
-
Introduced: API version 57.0
-
Description:
The specified
AdjustmentType’s amount to be applied to the order item.For example, when the
AdjustmentTypevalue isAdjustmentAmount, theAdjustmentValueis expected to equal the value of theAmountfield.When the
AdjustmentTypevalue isAdjustmentPercentage, theAdjustmentValuerepresents the percentage number, and theAmountfield’s value will show the calculated adjustment amount.
- Type: currency
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The net total value of the adjustment line. The value is rounded to the nearest possible amount associated with the currency of the order item.
- Type: datetime
- Properties: Create, Filter, Nillable, Sort, Update
- Introduced: API version 65.0
- Description: The date and time on which the promotion was applied to the asset.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Introduced: API version 65.0
- Description: The ID of the coupon code that was applied.
- Type: textarea
- Properties: Create, Nillable, Update
- Description: Users can add a custom description to the record to provide additional detail.
- Type: string
- Properties: Create, Filter, Group, idLookup, Sort, Update
- Description: Name of the adjustment line.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Introduced: API version 47.0
- Description: The order adjustment group that contains the order item adjustment line item.
- Relationship name: OrderAdjustmentGroup
- Relationship type: relationship
- Refers to: OrderAdjustmentGroup
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Description: The parent order of the order item related to the adjustment line.
- Relationship name: Order
- Relationship type: relationship
- Refers to: Order
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: The order item that the adjustment line applies to.
- Relationship name: OrderItem
- Relationship type: masterdetail
- Refers to: OrderItem
-
Type: int
-
Properties: Create, Filter, Group, Nillable, Sort
-
Introduced: API version 52.0
-
Description:
A numeric value that represents the order of precedence of the order adjustment group.
It can also represent the order of precedence when applying the
AdjustmentTypevalues. For example, an order can have two adjustments: a $100 discount and a 10% discount. This field will tell the pricing engine which adjustment needs to be applied first.
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Description: The original order item adjustment line. Useful for reference in change order scenarios.
- Relationship name: RelatedAdjustmentLineItem
- Relationship type: relationship
- Refers to: OrderItemAdjustmentLineItem
-
Type: currency
-
Properties: Filter, Nillable, Sort
-
Introduced: API version 49.0
-
Description:
Equals the order item’s price plus
TotalTaxAmountfor the order item adjustment line item.This is a gross tax field.
To access Commerce Orders fields, your org must have a Salesforce Order Management license. Commerce Orders fields are available only in Lightning Experience.
This field is available in API v49.0 and later.
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The total amount of tax applied to the adjustment line.
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version.