Add a Pricing Attribute Mapping
post
                    /rest/v19/pricingSetup/attributes/{attributeVariableName}/mappings
Use this endpoint to add mapping information to the specified pricing attribute.
                
                Request
Supported Media Types
                - application/json
Path Parameters
                
                
                
                
                
                
                Root Schema : PricingMappedDataSourceAttribute
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            attributeLabel: 
            string()
            Title:Attribute LabelRead Only:trueThe label of the Pricing Data Source Attribute.
- 
            createdBy: 
             Created By
            
            Title:Created ByRead Only:trueThe details of the user who created the record.
- 
            dataSourceAttribute: 
            string()
            Title:Data Source Attribute.Read Only:trueThe mapped data source attribute.
- 
            dataSourceLabel: 
            string()
            Title:Data Source LabelRead Only:trueThe mapped label of the data source.
- 
            dataSourceProviderVariableName: 
            string()
            Title:Data Source Provider Variable NameRead Only:trueThe variable name of the data source provider.
- 
            dateAdded: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date AddedRead Only:trueCreation date of the Pricing Rule.
- 
            dateModified: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date ModifiedRead Only:trueLast modified date of the Pricing Rule.
- 
            groupAccessEnabled: 
            boolean()
            Title:Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment
- 
            id: 
            integer()
            Title:IdRead Only:trueThe Unique Identifier of the Pricing Data Source Attribute.
- 
            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.
- 
            orderNumber: 
            integer()
            Title:Order NumberThe position(starting from 1) of the Pricing Data Source Attribute in the ordered list.
- 
            readOnly: 
            boolean()
            Title:Read OnlyRead Only:trueIndicates if the attribute has any restrictions for edits.
- 
            segmentLevelAccessType: 
            string()
            Title:Segment-level Access TypeRead Only:trueSegment-level Access Type
- 
            sourceEntity: 
            string()
            Title:Source EntityRead Only:trueThe name of the Pricing Data Source Entity
- 
            validMapping: 
            boolean()
            Title:Has Valid MappingRead Only:trueIndicates whether the Pricing Data Source Attribute has a valid mapping
- 
            variableName: 
            string()
            Title:Variable NameRead Only:trueThe variable name of the Pricing Data Source Attribute.
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
Response
Supported Media Types
                - application/json
200 Response
Success
                
                
                    Root Schema : PricingMappedDataSourceAttribute
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            attributeLabel: 
            string()
            Title:Attribute LabelRead Only:trueThe label of the Pricing Data Source Attribute.
- 
            createdBy: 
             Created By
            
            Title:Created ByRead Only:trueThe details of the user who created the record.
- 
            dataSourceAttribute: 
            string()
            Title:Data Source Attribute.Read Only:trueThe mapped data source attribute.
- 
            dataSourceLabel: 
            string()
            Title:Data Source LabelRead Only:trueThe mapped label of the data source.
- 
            dataSourceProviderVariableName: 
            string()
            Title:Data Source Provider Variable NameRead Only:trueThe variable name of the data source provider.
- 
            dateAdded: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date AddedRead Only:trueCreation date of the Pricing Rule.
- 
            dateModified: 
            string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
            Title:Date ModifiedRead Only:trueLast modified date of the Pricing Rule.
- 
            groupAccessEnabled: 
            boolean()
            Title:Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment
- 
            id: 
            integer()
            Title:IdRead Only:trueThe Unique Identifier of the Pricing Data Source Attribute.
- 
            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.
- 
            orderNumber: 
            integer()
            Title:Order NumberThe position(starting from 1) of the Pricing Data Source Attribute in the ordered list.
- 
            readOnly: 
            boolean()
            Title:Read OnlyRead Only:trueIndicates if the attribute has any restrictions for edits.
- 
            segmentLevelAccessType: 
            string()
            Title:Segment-level Access TypeRead Only:trueSegment-level Access Type
- 
            sourceEntity: 
            string()
            Title:Source EntityRead Only:trueThe name of the Pricing Data Source Entity
- 
            validMapping: 
            boolean()
            Title:Has Valid MappingRead Only:trueIndicates whether the Pricing Data Source Attribute has a valid mapping
- 
            variableName: 
            string()
            Title:Variable NameRead Only:trueThe variable name of the Pricing Data Source Attribute.
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
Examples
The following example shows how to add mapping information to the specified pricing attribute in Pricing Engine by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/pricingSetup/attributes/shippingCost/mappings
Request Body Sample
{
  "dataSourceProviderVariableName": "oraclecpqo",
  "variableName": "cH_float_convert"
}Response Body Sample
{
  "orderNumber": 1,
  "id": 38821929,
  "dataSourceAttribute": "/process/oraclecpqo/_main_doc/transaction/cH_float_convert",
  "dataSourceProviderVariableName": "oraclecpqo",
  "variableName": "cH_float_convert",
  "attributeLabel": "Shipping Cost",
  "dateModified": "2022-11-28T21:42:39Z",
  "dateAdded": "2022-11-28T21:42:39Z",
  "readOnly": false
}