Get Price Agreements

get

/rest/v16/pricingSetup/agreements

Use this endpoint to retrieve all price agreements.

Request

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,priceAgreementItems. 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.
  • Used as a predefined finder to search the collection.
    Format: ?finder=<finderName>;<VarName>=<variableValue>
    The following are the available finder names and corresponding finder variables:
    • findByKeyword: Find price agreements using name, variable name, customer id and customer name.
      Finder Variable:
      • keyword;string search text. The character '%' if present will be treated as a wild card otherwise, the default is 'contains' search
  • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
  • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
  • This parameter orders a resource collection based on the specified attributes. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "ASC" or "DESC". Specify "ASC" for ascending and "DESC" for descending. The default value is "ASC". For example, ?orderby=field1:ASC,field2:DESC.
  • The resource collection representation will include the total row count when "?totalResults=true", otherwise the count is not included. The default value is "false".
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : PricingResourceCollection_PriceAgreements
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 : UserDetails
Type: object
Show Source
Nested Schema : PriceAgreements
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 : Agreement Data
Title: Agreement Data
Read Only: true
List of data for the Price Agreement.
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 : Agreement Items
Title: Agreement Items
Read Only: true
List of agreement items for the Price Agreement.
Match All
Show Source
Nested Schema : PricingResourceCollection_PricingModelData
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 : PricingModelData
Type: object
Show Source
Nested Schema : Block Prices
Type: array
Title: Block Prices
The block price.
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 : Prices
Type: array
Title: Prices
The item prices.
Show Source
Nested Schema : PricingCurrencyValues
Type: object
Show Source
Nested Schema : PricingResourceCollection_PriceModelItem
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 : PriceModelItem
Type: object
Show Source
Nested Schema : Associated Charges
Title: Associated Charges
Read Only: true
The standalone charges associated with this price model item.
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 : Associated Rate Plans
Title: Associated Rate Plans
Read Only: true
The rate plans linked to this price model item.
Match All
Show Source
Nested Schema : PricingResourceCollection_PricingCharge
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 : PricingCharge
Type: object
Show Source
Nested Schema : Block Prices
Type: array
Title: Block Prices
The block price.
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 : Prices
Type: array
Title: Prices
The item prices.
Show Source
Nested Schema : Tiers
Type: array
Title: Tiers
The charge tiers.
Show Source
Nested Schema : ChargeTier
Type: object
Show Source
Nested Schema : Block Prices
Type: array
Title: Block Prices
The block price for the corresponding tier.
Show Source
Nested Schema : Prices
Type: array
Title: Prices
The prices.
Show Source
Nested Schema : PricingResourceCollection_PricingRatePlan
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 : PricingRatePlan
Type: object
Show Source
Nested Schema : Charges
Title: Charges
Read Only: true
Rate Plan charges
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
Back to Top

Examples

The following example shows how to retrieve a list of saved searches for the specified resource 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/agreements

Response Body Sample

{
  "items": [{
      "name": "M1a",
      "variableName": "m1aaccount11",
      "dateModified": "2024-01-19T06:46:48Z",
      "dateAdded": "2024-01-19T06:46:48Z",
      "startDate": "2024-01-01T08:00:00Z",
      "endDate": "2024-01-20T08:00:00Z",
      "customerId": "account11",
      "customerName": "Company_account11",
      "conditionType": "alwaysTrue",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/m1aaccount11"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/m1aaccount11/data"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/m1aaccount11/priceAgreementItems"
        }
      ],
      "valueType": "absolutePrice",
      "dynamicPricingType": "static",
      "hasBomItem": false,
      "hasChargeSupport": true,
      "hasRateCards": false,
      "hasRatePlans": true,
      "hasTiers": false
    }, {
      "name": "M1",
      "variableName": "m1account11",
      "description": "www",
      "dateModified": "2024-01-19T07:01:07Z",
      "dateAdded": "2024-01-19T06:44:42Z",
      "startDate": "2024-01-01T08:00:00Z",
      "endDate": "2024-01-20T08:00:00Z",
      "customerId": "account11",
      "customerName": "Company_account11",
      "conditionType": "alwaysTrue",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/m1account11"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/m1account11/data"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/m1account11/priceAgreementItems"
        }
      ],
      "valueType": "absolutePrice",
      "dynamicPricingType": "static",
      "hasBomItem": false,
      "hasChargeSupport": true,
      "hasRateCards": true,
      "hasRatePlans": true,
      "hasTiers": false
    }, {
      "name": "1a",
      "variableName": "a1aaccount11",
      "description": "www",
      "dateModified": "2024-01-19T06:57:15Z",
      "dateAdded": "2024-01-19T06:45:41Z",
      "startDate": "2024-01-01T08:00:00Z",
      "endDate": "2024-01-20T08:00:00Z",
      "customerId": "account11",
      "customerName": "Company_account11",
      "conditionType": "alwaysTrue",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/a1aaccount11"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/a1aaccount11/data"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/a1aaccount11/priceAgreementItems"
        }
      ],
      "valueType": "absolutePrice",
      "dynamicPricingType": "static",
      "hasBomItem": false,
      "hasChargeSupport": true,
      "hasRateCards": false,
      "hasRatePlans": true,
      "hasTiers": false
    }, {
      "name": "AgreementAPI",
      "variableName": "agreementAPIaccount112",
      "dateModified": "2024-01-26T20:36:47Z",
      "dateAdded": "2024-01-26T20:36:47Z",
      "customerId": "account112",
      "customerName": "Company_account112",
      "conditionType": "alwaysTrue",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/agreementAPIaccount112"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/agreementAPIaccount112/data"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/agreementAPIaccount112/priceAgreementItems"
        }
      ],
      "valueType": "absolutePrice",
      "dynamicPricingType": "static",
      "hasBomItem": false,
      "hasChargeSupport": true,
      "hasRateCards": false,
      "hasRatePlans": true,
      "hasTiers": false
    }, {
      "name": "a1",
      "variableName": "a1account138",
      "dateModified": "2024-01-19T05:18:31Z",
      "dateAdded": "2024-01-19T05:18:31Z",
      "customerId": "account138",
      "customerName": "Company_account138",
      "conditionType": "alwaysTrue",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/a1account138"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/a1account138/data"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements/a1account138/priceAgreementItems"
        }
      ],
      "valueType": "absolutePrice",
      "dynamicPricingType": "static",
      "hasBomItem": false,
      "hasChargeSupport": true,
      "hasRateCards": true,
      "hasRatePlans": true,
      "hasTiers": false
    }
  ],
  "offset": 0,
  "limit": 1000,
  "count": 5,
  "hasMore": false,
  "links": [{
      "rel": "canonical",
      "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/pricingSetup/agreements?offset=0&limit=1000"
    }
  ]
}
Back to Top