Get Rate Card

get

/rest/v16/pricingSetup/rateCards/{rateCardVarName}

Use this endpoint to retrieve the specified rate card.

Request

Path Parameters
Query Parameters
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). More than one child can be specified using comma as a separator. Example: ?expand=data. To include all the children and grandchildren, specify the value of this query parameter to be "all".
  • This parameter filters the resource attributes. Only the specified attributes are returned, which means that if no attributes are specified, all attributes are returned.
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : PricingMatrix
Type: object
Show Source
Nested Schema : Allowed Charge Definitions
Type: array
Title: Allowed Charge Definitions
The list of charge definitions that this pricing matrix will apply to.
Show Source
Nested Schema : Allowed Usage UOM
Title: Allowed Usage UOM
The usage UOM lookup code that this pricing matrix will apply to.
Match All
Show Source
Nested Schema : Created By
Title: Created By
Read Only: true
The details of the user who created the record.
Match All
Show Source
Nested Schema : Pricing Matrix data
Title: Pricing Matrix data
Read Only: true
List of Pricing Matrix data.
Match All
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
Show Source
Nested Schema : Pricing Matrix template
Title: Pricing Matrix template
Read Only: true
Pricing Matrix template name and variableName
Match All
Show Source
Nested Schema : PricingMenuItem
Type: object
Show Source
Nested Schema : UserDetails
Type: object
Show Source
Nested Schema : PricingResourceCollection_PricingMatrixData
Type: object
Show Source
  • Title: Count
    Read Only: true
    The number of resource instances returned in the current range.
  • Created By
    Title: Created By
    Read Only: true
    The details of the user who created the record.
  • Title: HasMore
    Read Only: true
    Indicates 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
  • Last Modified By
    Title: Last Modified By
    Read Only: true
    The details of the user who modified the record.
  • Title: Limit
    Read Only: true
    The actual paging size used by the server.
  • Links
  • Title: OffSet
    Read Only: true
    The offset value used in the current page.
  • Title: Total Results
    Read Only: true
    Captures 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 By
Read Only: true
The details of the user who created the record.
Match All
Show Source
Nested Schema : items
Type: array
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
Show Source
Nested Schema : PricingMatrixData
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
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
Show Source
Nested Schema : PricingMatrixTemplate
Type: object
Show Source
Nested Schema : Allowed Charge Definitions
Type: array
Title: Allowed Charge Definitions
The list of charge definitions that this pricing matrix will apply to.
Show Source
Nested Schema : Pricing Matrix Template Columns
Title: Pricing Matrix Template Columns
Read Only: true
List of columns for the Pricing Matrix Template. Ignored if rate card template.
Match All
Show Source
Nested Schema : Created By
Title: Created By
Read Only: true
The details of the user who created the record.
Match All
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
Show Source
Nested Schema : PricingResourceCollection_PricingMatrixTemplateColumn
Type: object
Show Source
  • Title: Count
    Read Only: true
    The number of resource instances returned in the current range.
  • Created By
    Title: Created By
    Read Only: true
    The details of the user who created the record.
  • Title: HasMore
    Read Only: true
    Indicates 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
  • Last Modified By
    Title: Last Modified By
    Read Only: true
    The details of the user who modified the record.
  • Title: Limit
    Read Only: true
    The actual paging size used by the server.
  • Links
  • Title: OffSet
    Read Only: true
    The offset value used in the current page.
  • Title: Total Results
    Read Only: true
    Captures 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 By
Read Only: true
The details of the user who created the record.
Match All
Show Source
Nested Schema : items
Type: array
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
Show Source
Nested Schema : PricingMatrixTemplateColumn
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
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
Show Source
Back to Top

Examples

The following example shows how to retrieve the specified Rate Card by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/pricingSetup/rateCards/naPhoneRateCard?expand=all

Response Body Sample

{
  "name": "NA Phone Call Rate Card",
  "variableName": "naPhoneRateCard",
  "description": "",
  "active": true,
  "priceModelCount": 3,
  "dateAdded": "",
  "dateModified": "",
  "data": {
    "items": [{
        "fromCountry": "US",
        "toCountry": "Canada",
        "rate": [{
            "currencyCode": "USD",
            "value": 1.20
          }, {
            "currencyCode": "CAD",
            "value": 1.35
          }
        ]
      }, {
        "fromCountry": "US",
        "toCountry": "Mexico",
        "rate": [{
            "currencyCode": "USD",
            "value": 1.20
          }, {
            "currencyCode": "CAD",
            "value": 1.35
          }
        ]
      }, {
        "fromCountry": "US",
        "toCountry": "India",
        "rate": [{
            "currencyCode": "USD",
            "value": 1.20
          }, {
            "currencyCode": "CAD",
            "value": 1.35
          }
        ]
      }, {
        "fromCountry": "US",
        "toCountry": "Britain",
        "rate": [{
            "currencyCode": "USD",
            "value": 1.20
          }, {
            "currencyCode": "CAD",
            "value": 1.35
          }
        ]
      }
    ]
  },
  "template": {
    "name": "test4",
    "variableName": "test4"
  }
}
Back to Top