Get Asset Charges

get

/rest/v19/assets/{id}/charges

This operation retrieves all charges of the specified asset.

Request

Path Parameters
Query Parameters
  • This parameter filters the resource attributes. Only the specified attributes are returned, which means that if no attributes are specified, all attributes are returned.
  • 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.
  • Filter (a ???where???clause) to restrict the items returned in the collection. By default, no filtering is applied.
  • 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 : ResponseCollectionModel_assetChargeBean
Type: object
Show Source
  • Title: Count
    Read Only: true
    The number of resource instances returned in the current range.
  • 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
  • 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 : items
Type: array
Show Source
Nested Schema : assetChargeBean
Type: object
Show Source
Nested Schema : Contract Discount Amount
Title: Contract Discount Amount
Discount amount based on contract
Match All
Discount amount based on contract
Show Source
Nested Schema : Contract List Amount
Title: Contract List Amount
List amount based on contract
Match All
List amount based on contract
Show Source
Nested Schema : Contract Net Amount
Title: Contract Net Amount
Net amount based on contract
Match All
Net amount based on contract
Show Source
Nested Schema : Custom Discount Amount
Title: Custom Discount Amount
Amount of custom discount
Match All
Amount of custom discount
Show Source
Nested Schema : Extended Discount Amount
Title: Extended Discount Amount
Total extended discount amount
Match All
Total extended discount amount
Show Source
Nested Schema : List Amount
Title: List Amount
The list amount for this charge
Match All
The list amount for this charge
Show Source
Nested Schema : Net Amount
Title: Net Amount
Total net amount
Match All
Total net amount
Show Source
Nested Schema : Net Price
Title: Net Price
Price after applying discounts
Match All
Price after applying discounts
Show Source
Nested Schema : Unit Price
Title: Unit Price
Price per unit
Match All
Price per unit
Show Source
Nested Schema : amountBean
Type: object
Show Source
Back to Top

Examples

The following example shows how to retrieve all charges for the specified asset 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 "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/assets/51587512/charges

Response Body Sample

{
  "offset": 0,
  "limit": 1000,
  "count": 1,
  "hasMore": false,
  "items": [{
      "id": 51587516,
      "assetKey": "abo_4d93b451-0ce6-4df3-8a08-e725f1c67bd3",
      "chargeSequenceNumber": 1,
      "dateAdded": "2025-08-28T03:43:21Z",
      "dateModified": "2025-08-28T03:43:21Z",
      "primaryFlag": true,
      "applyTo": "Price",
      "chargeTypeCode": "ORA_SALE",
      "priceTypeCode": "One Time",
      "unitPrice": {
        "amount": 1888,
        "currencyCode": "USD"
      },
      "listAmount": {
        "amount": 1888,
        "currencyCode": "USD"
      },
      "customDiscountAmount": {
        "amount": 0,
        "currencyCode": "USD"
      },
      "extendedDiscountAmount": {
        "amount": 0,
        "currencyCode": "USD"
      },
      "netPrice": {
        "amount": 1888,
        "currencyCode": "USD"
      },
      "netAmount": {
        "amount": 1888,
        "currencyCode": "USD"
      },
      "contractDiscountAmount": {
        "amount": 0,
        "currencyCode": "USD"
      },
      "contractNetAmount": {
        "amount": 1888,
        "currencyCode": "USD"
      },
      "contractListAmount": {
        "amount": 1888,
        "currencyCode": "USD"
      },
      "chargeDefIntegrationId": "QP_SALE_PRICE",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v19/assets/51587512/charges/51587516"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v19/assets/51587512/charges"
        }
      ]
    }
  ],
  "links": [{
      "rel": "canonical",
      "href": "https://sitename.oracle.com/rest/v19/assets/51587512/charges"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v19/assets/51587512/charges?offset=0&limit=1000"
    }
  ]
}
Back to Top