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
Path Parameters
Body ()
Root Schema : PricingMappedDataSourceAttribute
Type: object
Show Source
Nested Schema : Created By
Title: Created By
Read Only: true
The 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 By
Read Only: true
The details of the user who modified the record.
Match All
The details of the user who modified the record.
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : PricingMappedDataSourceAttribute
Type: object
Show Source
Nested Schema : Created By
Title: Created By
Read Only: true
The 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 By
Read Only: true
The details of the user who modified the record.
Match All
The details of the user who modified the record.
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Back to Top

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
}
Back to Top