Knowledge Center

Knowledge Center > API > REST API > REST API Reference > Charge Revenue Summaries > Get Charge Summary Details by CRS number

Get Charge Summary Details by CRS number

This REST API reference describes how to retrieve the details of a charge revenue summary by specifying the charge revenue summary number. Request and response field descriptions and sample code are provided.

Request

  • Production: GET https://api.zuora.com/rest/v1/charge-revenue-summaries/{crs-number}
  • API Sandbox: GET https://apisandbox-api.zuora.com/rest/v1/charge-revenue-summaries/{crs-number}

Request header

The Accept request header is optional. Only JSON is returned.

Request parameters

crs-number

required

path

The charge revenue summary number.

Request body

PageSize

optional

Must be an integer. A maximum number of 300 pages can be returned in a response. Any value greater than 300 is treated as 300.

Use this field only when the revenue schedule is not linked to an invoice item or invoice item adjustment, such as for revenue schedules based on the Custom - Unlimited recognition model.  

Response

This response retrieves all revenue items associated with a charge revenue summary by specifying the charge revenue summary number.

number

The charge revenue summary number.

recognitionRuleName

The name of the recognition rule.

amount

The revenue schedule amount, which is the sum of all revenue items. This field cannot be null and must be formatted based on the currency, such as JPY 30 or USD 30.15. Test out the currency to ensure you are using the proper formatting otherwise, the response will fail and this error message is returned:  "Allocation amount with wrong decimal places."

undistributedUnrecognizedRevenue

Revenue in the open-ended accounting period.

recognizedRevenue

The revenue that was distributed in a closed accounting period.

unrecognizedRevenue

Revenue distributed in all open accounting periods, which includes the open-ended accounting period.

currency

The type of currency used. 

notes

Additional information about this record.

accountId

An account ID.

subscriptionId

The original subscription ID.

subscriptionChargeId

The original subscription charge ID.

productChargeId Unique product rate plan charge ID.

revenueItems

Revenue items are listed in ascending order by the accounting period start date.

accountingPeriodName

Name of the accounting period. The open-ended accounting period is named Open-Ended

isAccountingPeriodClosed

 Indicates if the accounting period is closed or open. 

amount

The amount of the revenue item.

currency

The type of currency used. 

accountingPeriodStartDate

The accounting period start date.

accountingPeriodEndDate

The accounting period end date. The accounting period end date of the open-ended accounting period is null.

success

Returns true if the request is successful. Otherwise, returns false.

processId

The internal process ID used to assist Zuora support. Returned only if success is false.

reasons

Information describing the reason for the result. Returned only if success is false.

code

An eight-digit numeric error code.

message

A description of the error.

If a revenue schedule does not exist for the number passed, the following message is returned:

Can not find entity by key:{crs-number}

Example

HTTP/JSON request:

GET https://api.zuora.com/rest/v1/charge-revenue-summaries/CRS-00000001/

JSON response:

{
   "number": "CRS-00000001",
   "recognitionRuleName": "Recognize upon invoicing",
   "amount": 660,
   "undistributedUnrecognizedRevenue": 565,
   "recognizedRevenue": 0,
   "unrecognizedRevenue": 660,
   "currency": "USD",
   "notes": null,
   "accountId": "2c92c0f8439770960143b2141f5a555e",
   "subscriptionId": "2c92c0f943977b4f0143b23487999327",
   "subscriptionChargeId": "2c92c0f943977b4f0143b11187ed432e",
   "revenueItems": [
      {
         "accountingPeriodName": "Sep'2013",
         "isAccountingPeriodClosed": false,
         "amount": 35,
         "currency": "USD",
         "accountingPeriodStartDate": "2013-09-01",
         "accountingPeriodEndDate": "2013-09-30"
         },
     {
         "accountingPeriodName": "Oct'2013",
         "isAccountingPeriodClosed": false,
         "amount": 50,
         "currency": "USD",
         "accountingPeriodStartDate": "2013-10-01",
         "accountingPeriodEndDate": "2013-10-31"
         },
      {
         "accountingPeriodName": "Open-Ended",
         "isAccountingPeriodClosed": false,
         "amount": 150,
         "currency": "USD",
         "accountingPeriodStartDate": "2013-12-11",
         "accountingPeriodEndDate": null
       }
    ],
"success": true
}
Last modified
18:46, 13 Nov 2016

Tags

Classifications

(not set)