Knowledge Center

Knowledge Center > API > REST API > REST API Reference > Revenue Events > Get revenue event details

Get revenue event details

This REST API reference describes how to get revenue event details by specifying the revenue event number. Request and response field descriptions and sample code are provided.

Request

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

Request header

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

Request parameters

event-number

required

path

The number associated with the revenue event.

Response

This response includes details of a revenue event of the requested revenue event number.

number

The revenue event number created when a revenue event occurs.

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.

createdOn

The date when the record was created in YYYY-MM-DD HH:MM:SS format.

EventType

Label of the revenue event type. Revenue event type labels can be duplicated. You can configure your revenue event type labels by navigating to Settings > Z-Finance Settings > Configure Revenue Event Types in the Zuora UI. The default revenue event types are:

  • Invoice Posted
  • Invoice Item Adjustment Created
  • Invoice Canceled
  • Invoice Item Adjustment Canceled
  • Revenue Distributed

recognitionStart

The start date of a recognition period in YYYY-MM-DD format.

recognitionEnd

The end date of a recognition period in YYYY-MM-DD format. 

The maximum difference of the recognitionStart and recognitionEnd date fields is equal to 250 multiplied by the length of an accounting period.

cf_txtn__c

One or more optional custom fields, where n is the maximum number of custom fields allowed.

cf_pkn__c

One or more optional custom fields, where n is the maximum number of custom fields allowed. 

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.

The following message is displayed if an invalid event number is passed:

Cannot find entity by key:{event-number}

Example

HTTP/JSON request:

GET https://api.zuora.com/rest/v1/revenue-events/RE-00000001

JSON response:

{
   "number": "RE-00000001",
   "currency": "USD",
   "notes": null,
   "accountId": "2c92c0f8439770960143b2141f5a584e",
   "subscriptionId": "2c92c0f943977b4f0143b23487994327",
   "subscriptionChargeId": "2c92c0f943977b4f0143b23487ed432e",
   "createdOn": "2014-01-20 16:36:45",
   "eventType": "Invoice Posted",
   "recognitionStart": "2013-10-10",
   "recognitionEnd": "2013-10-10",
   "cf_phases__c": "Scoping Phase",
   "cf_project__c": "Security",
   "revenueItems": [
      {
         "accountingPeriodName": "Oct'2013",
         "isAccountingPeriodClosed": false,
         "amount": 50,
         "currency": "USD",
         "accountingPeriodStartDate": "2013-10-01",
         "accountingPeriodEndDate": "2013-10-31"
      }
   ],
"success": true
}

 

Last modified
19:03, 13 Nov 2016

Tags

Classifications

(not set)