afv-library/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SalesTransactionItemShape.json

199 lines
15 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"sections": [
"title",
"description",
"fields",
"special_access_rules"
],
"title": "SalesTransactionItemShape - Data API",
"description": "Defines the business logic for a sales transaction shape item, for example, an item in an order. This object is available in API version 57.0 and later.",
"fields_columns": [
"type",
"properties",
"description",
"relationship_name",
"relationship_type",
"refers_to"
],
"fields": {
"BasisTransactionItemShapeId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The ID of the sales transaction shape item to use as a reference when pricing this transaction. For example, when pricing an order, this field refers to the order being canceled. This field is available if Subscription Management is enabled. This field is a relationship field.",
"relationship_name": "BasisTransactionItemShape",
"relationship_type": "Lookup",
"refers_to": "SalesTransactionItemShape"
},
"BillingFrequency": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort",
"description": "The time period that indicates how often the sales transaction shape item is billed. This field is available if Subscription Management is enabled. Possible values are: Annual Monthly Quarterly Semi-Annual"
},
"EndDate": {
"type": "date",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The last day the sales transaction shape item is available. For example, the last day of the subscription. This field is available if Subscription Management is enabled."
},
"ListPrice": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The list price for the sales transaction shape item. This value is inherited from the related price book entry."
},
"ListPriceTotal": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The list price, inclusive of quantity. This calculated field is equal to ListPrice times Quantity."
},
"NetUnitPrice": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The final unit price of the product, after all adjustments are applied."
},
"ObligatedAmount": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "In a subscription, the amount a subscriber is billed for products used during the subscription period that the subscriber returns before the subscription end date. This field's value is the price for use of the product. This field is available in version 57.0 and later. This field is available when Subscription Management is enabled. A subscriber must submit a quantity amendment in order to change the subscription's product quantity. A quantity amendment request is only valid until the subscription end date. A subscriber is eligible for a refund only for the periods when the products werent used. The subscription's proration policy indicates whether the obligated amount and the refund are prorated for partial periods. Note"
},
"ParentTransactionItemShapeId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The ID of the parent TransactionItemShape. This field is a relationship field.",
"relationship_name": "ParentTransactionItemShape",
"refers_to": "SalesTransactionItemShape"
},
"PeriodBoundary": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort",
"description": "The period boundary helps determine the start and end date of the billing periods. This field is available if Subscription Management is enabled. Possible values are: AlignToCalendar—The period starts on the first day of the term unit, for example, the first day of the month. Anniversary— The start date determines the boundary. For example, if a monthly subscription starts on September 13, the subscription starts on the 13th day of each month. DayOfPeriod— The period starts on the day indicated by PeriodBoundaryDay. LastDayOfPeriod— The period starts on the last day of the pricing term unit; for example, the last day of the month."
},
"PeriodBoundaryDay": {
"type": "int",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "Required when PeriodBoundary is DayOfPeriod. Indicates day of the week or month that marks the period boundary. Must be an integer from 1 through 31. This field is available if Subscription Management is enabled.",
"required": true
},
"PeriodBoundaryStartMonth": {
"type": "picklist",
"properties": "Create, Filter, Group, Restricted picklist, Nillable, Sort, Update",
"description": "Field is populated based on input in the StartDate, PeriodBoundary, and PeriodBoundaryDay when BillingFrequency is Annual or by manual user entry. Possible values are: 1-January 2-February 3-March 4-April 5-May 6-June 7-July 8-August 9-September 10-October 11-November 12-December"
},
"PricebookEntryId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The ID of the related price book entry. The related price book entry contains all the pricing information about the product being sold. This field is a polymorphic relationship field.",
"relationship_name": "PricebookEntry",
"relationship_type": "Lookup",
"refers_to": "PricebookEntryInterface"
},
"PricingTermCount": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort",
"description": "A calculated field indicating the number of pricing terms in the subscription. This field is available if Subscription Management is enabled."
},
"PricingTransactionType": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort",
"description": "Indicates the type of pricing transaction, for example, a new sale, an amendment, or a renewal. This field is available if Subscription Management is enabled. Possible values are: AmendmentAtLastNegotiatedPrice— Calculate the price of the amended sales transaction shape item using the same price book and price adjustments as the new sale item. For example, an order item that is amended using a pricing transaction type of AmendmentAtLastNegotiatedPrice is priced using the same price book information and price adjustments as the new sale item. The amended order item has the same price as the new sale order item. AmendmentStartingFromListPrice— Calculate the price of the amended sales transaction shape item using current price book information, disregarding any pricing information or adjustments that were applied to the new sale item. Typically, an amended transaction item has a different price than the new sale transaction item. Cancellation— Calculate the price of the canceled transaction. For example, lets say that a 1-year subscription was purchased on January 1, then canceled on July 31. The price of the canceled products and services from August 1 through Dec 31 is calculated. NewSale— The price of a new transaction is calculated. RenewalAtLastNegotiatedPrice— Calculate the price of the renewal sales transaction shape item using the same price book and price adjustments as the new sale item. For example, an order item that is renewed using a pricing transaction type ofRenewalAtLastNegotiatedPrice is priced using the same price book information and price adjustments as the new sale item. The renewal order item has the same price as the new sale order item. RenewalAtListPrice— Calculate the price of the renewal sales transaction shape item using current price book information, disregarding any pricing information or adjustments that were applied to the new sale item. Typically, a renewal transaction item has a different price than the new sale transaction item."
},
"ProductId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The ID of the related product. This field is a relationship field.",
"relationship_name": "Product",
"relationship_type": "Lookup",
"refers_to": "Product2"
},
"ProductSellingModelId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The ID of the related product selling model. The product selling model defines one method by which a product can be sold; for example, as a one-time sale, an evergreen subscription, or a termed subscription. This field is available if Subscription Management is enabled. This field is a relationship field.",
"relationship_name": "ProductSellingModel",
"relationship_type": "Lookup",
"refers_to": "ProductSellingModel"
},
"ProrationPolicyId": {
"type": "reference",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The ID of the related proration policy. The proration policy defines how the price is calculated for each subscription period; for example, whether partial periods are allowed, and how remainder amounts are handled. This field is available if Subscription Management is enabled. This field is a relationship field.",
"relationship_name": "ProrationPolicy",
"relationship_type": "Lookup",
"refers_to": "ProrationPolicy"
},
"Quantity": {
"type": "double",
"properties": "Create, Filter, Nillable, Sort",
"description": "Number of units in the sales transaction shape item."
},
"SalesItemType": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort",
"description": "The type of sale. Possible values are: Charge— An item that acts as a fee and cant be fulfilled. For example, a delivery charge, a shipping fee, or a membership fee. Product— An item that is a good or service that can be fulfilled. For example, a widget or a widget warranty."
},
"SalesTransactionItemShapeName": {
"type": "string",
"properties": "Create, Filter, Group, idLookup, Sort",
"description": "The name of the sales transaction shape item.",
"required": true
},
"SalesTransactionShapeId": {
"type": "reference",
"properties": "Create, Filter, Group, Sort",
"description": "The ID of the sales transaction shape. A sales transaction shape is the way in which the sales transactions occur. For example, a cart, an order, or a quote. This field is a relationship field.",
"relationship_name": "SalesTransactionShape",
"relationship_type": "Lookup",
"refers_to": "SalesTransactionShape",
"required": true
},
"StartDate": {
"type": "date",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The start date of the subscription. This field is available if Subscription Management is enabled."
},
"StartingPriceTotal": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The starting unit price, inclusive of quantity, prorated for the duration of the subscription. This field has two ways to obtain its value. The value can be manually entered or automatically calculated. The calculation is equal to StartingUnitPrice times Quantity."
},
"StartingUnitPrice": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The unit price before any adjustments."
},
"StartingUnitPriceSource": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Restricted picklist, Sort",
"description": "Indicates whether the starting unit price was inherited, entered manually, or calculated. Possible values are: Inherited— The starting unit price is copied from a previous transaction; for example, from the order item being renewed. Manual— The starting unit price is entered manually, for example, by a sales rep. System — The starting unit price is calculated using pricing information that was configured by an administrator; for example, a pricing tier."
},
"StockKeepingUnit": {
"type": "string",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The SKU assigned to the related product."
},
"SubscriptionTerm": {
"type": "int",
"properties": "Create, Filter, Group, Nillable, Sort",
"description": "The number of terms in the subscription. You can indicate a subscriptions length using either the start and end dates, or by using the start date and the subscription term. This field is available if Subscription Management is enabled."
},
"TotalAdjustmentAmount": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The sum of all adjustments applied to the related sales transaction shape items, 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 sales transaction shape item, prorated for the duration of the subscription. Doesnt include price adjustment items that are applied directly. A distributed price adjustment is automatically created to apply a transaction-level adjustment to the transaction items. For example, lets say that you have an order with two order items: one for a file storage service and another for a video streaming service. A 10% volume discount and a 15% manual discount are applied to the entire order. An additional 20% discount is applied to the file storage service. To distribute the order-level discounts, the system creates a 10% price adjustment item and a 15% price adjustment item for each order item. In this example, the file storage services sales transaction shape item has the following field values: TotalAdjustmentAmount — The sum of all item-level adjustments, including the 10% price adjustment item, the 15% price adjustment item, and the 20% price adjustment item. TotalAdjustmentDistAmount— The sum of the distributed item-level adjustments, including the 10% price adjustment item and the 15% price adjustment item."
},
"TotalLineAmount": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The total price before price adjustments, inclusive of quantity, prorated for the duration of the subscription. This calculated field is equal to StartingPriceTotal times PricingTermCount."
},
"TotalPrice": {
"type": "currency",
"properties": "Create, Filter, Nillable, Sort",
"description": "The price after all adjustments, inclusive of quantity, prorated for the duration of the subscription. This calculated field is equal to TotalAdjustmentAmount plus StartingPriceTotal."
}
},
"special_access_rules": "This object is available with Subscription Management, B2B Commerce, or B2C Commerce."
}