Get Transaction Pricing Data
get
                    /rest/v19/pricingSetup/preview/{bsId}
Use this endpoint to retrieve header level pricing attribute values for the specified transaction.
                
                Request
Path Parameters
                
                
                
                
                
                
                
                
                
                Back to Top
                Response
Supported Media Types
                - application/json
200 Response
Success
                
                
                    Root Schema : PricingPreviewHeader
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            bsId: 
            integer()
            Title:BS IDThe Transaction Id
- 
            currencyCode: 
            string()
            Title:Currency CodeRead Only:trueCurrency Code.
- 
            customerId: 
            string()
            Title:Customer IdRead Only:trueCustomer Id.
- 
            headerAttributeValues: 
            object  Header Attribute Values
            
            Title:Header Attribute ValuesRead Only:trueHeader Attribute Values.
- 
            items: 
             Items
            
            Title:ItemsRead Only:trueTransaction Line Items.
- 
            priceBookVarName: 
            string()
            Title:Price Book VariableRead Only:truePrice Book Variable.
- 
            returnAvailableRatePlans: 
            boolean()
            Title:Available Rate PlansRead Only:trueAvailable Rate Plans.
Nested Schema : Header Attribute Values
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    Header Attribute ValuesRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueHeader Attribute Values.
    
    
    
    
    
    
    
    
    
    
Nested Schema : Items
    
      
      
    
    
    
    Title: 
    
    
    
    
    ItemsRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueTransaction Line Items.
    
    
    
    
    
    
    Match All
    
        
            Transaction Line Items.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : PricingResourceCollection_PricingPreviewLineItem
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            count: 
            integer()
            Title:CountRead Only:trueThe number of resource instances returned in the current range.
- 
            createdBy: 
             Created By
            
            Title:Created ByRead Only:trueThe details of the user who created the record.
- 
            groupAccessEnabled: 
            boolean()
            Title:Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment
- 
            hasMore: 
            boolean()
            Title:HasMoreRead Only:trueIndicates whether more resources are available on the server than the subset returned in the response. If the value is true, then there are more resources to retrieve from the server. The default value is false.
- 
            items: 
            array  items
            
            
- 
            lastModifiedBy: 
             Last Modified By
            
            Title:Last Modified ByRead Only:trueThe details of the user who modified the record.
- 
            limit: 
            integer()
            Title:LimitRead Only:trueThe actual paging size used by the server.
- 
            links: 
            array  Links
            
            Title:LinksRead Only:trueThe link relations associated with the resource instance.
- 
            offset: 
            integer()
            Title:OffSetRead Only:trueThe offset value used in the current page.
- 
            segmentLevelAccessType: 
            string()
            Title:Segment-level Access TypeRead Only:trueSegment-level Access Type
- 
            totalResults: 
            integer()
            Title:Total ResultsRead Only:trueCaptures the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : Created By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Created ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who created the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who created the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Last Modified By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Last Modified ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who modified the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who modified the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    LinksRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe link relations associated with the resource instance.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : UserDetails
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            emailId: 
            string()
            Title:Email IdEmail Id of the user
- 
            firstName: 
            string()
            Title:First NameFirst Name of the user
- 
            lastName: 
            string()
            Title:Last NameLast Name of the user
Nested Schema : PricingPreviewLineItem
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            bomItemName: 
            string()
            Title:Bom Item NameRead Only:trueBom Item Name.
- 
            createdBy: 
             Created By
            
            Title:Created ByRead Only:trueThe details of the user who created the record.
- 
            documentNumber: 
            integer()
            Title:Line Item Document NumberRead Only:trueLine Item Document Number.
- 
            groupAccessEnabled: 
            boolean()
            Title:Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment
- 
            itemAttributeValues: 
            object  Item Attribute Values
            
            Title:Item Attribute ValuesRead Only:trueItem Attribute Values.
- 
            lastModifiedBy: 
             Last Modified By
            
            Title:Last Modified ByRead Only:trueThe details of the user who modified the record.
- 
            links: 
            array  Links
            
            Title:LinksRead Only:trueThe link relations associated with the resource instance.
- 
            partNumber: 
            string()
            Title:Part NumberRead Only:truePart Number.
- 
            rootBomItemName: 
            string()
            Title:Root Bom Item NameRead Only:trueRoot Bom Item Name.
- 
            segmentLevelAccessType: 
            string()
            Title:Segment-level Access TypeRead Only:trueSegment-level Access Type
Nested Schema : Created By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Created ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who created the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who created the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Item Attribute Values
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    Item Attribute ValuesRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueItem Attribute Values.
    
    
    
    
    
    
    
    
    
    
Nested Schema : Last Modified By
    
      
      
    
    
    
    Title: 
    
    
    
    
    Last Modified ByRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe details of the user who modified the record.
    
    
    
    
    
    
    Match All
    
        
            The details of the user who modified the record.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : Links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    LinksRead Only: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    trueThe link relations associated with the resource instance.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Examples
The following example shows how to retrieve header level pricing attribute values for the specified transaction by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET -H "Authorization: Bearer <token>" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/pricingSetup/preview/38635017
Response Body Sample
{
    "currencyCode": "USD",
    "priceBookVarName": "_default_price_book",
    "customerId": "300100122967029",
    "headerAttributeValues": {
        "_priceAsOf": "",
        "_buyingAccountId": ""
    },
    "bsId": 38635017
}