All URIs are relative to https://rest.zuora.com
Method | HTTP request | Description |
---|---|---|
get_revenue_event_details | GET /v1/revenue-events/{event-number} | Get revenue event details |
get_revenue_event_for_revenue_schedule | GET /v1/revenue-events/revenue-schedules/{rs-number} | Get revenue events for a revenue schedule |
GETRevenueEventDetailType get_revenue_event_details(event_number, opts)
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.
# load the gem
require 'zuora'
api_instance = Zuora::RevenueEventsApi.new
event_number = "event_number_example" # String | The number associated with the revenue event.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Get revenue event details
result = api_instance.get_revenue_event_details(event_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling RevenueEventsApi->get_revenue_event_details: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
event_number | String | The number associated with the revenue event. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GETRevenueEventDetailsType get_revenue_event_for_revenue_schedule(rs_number, opts)
Get revenue events for a revenue schedule
This REST API reference describes how to get all revenue events in a revenue schedule by specifying the revenue schedule number. Request and response field descriptions and sample code are provided.
# load the gem
require 'zuora'
api_instance = Zuora::RevenueEventsApi.new
rs_number = "rs_number_example" # String | Revenue schedule number. The revenue schedule number is always prefixed with \"RS\", for example, \"RS-00000001\".
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
page_size: 8 # Integer | Number of rows returned per page.
}
begin
#Get revenue events for a revenue schedule
result = api_instance.get_revenue_event_for_revenue_schedule(rs_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling RevenueEventsApi->get_revenue_event_for_revenue_schedule: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
rs_number | String | Revenue schedule number. The revenue schedule number is always prefixed with "RS", for example, "RS-00000001". | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
page_size | Integer | Number of rows returned per page. | [optional] [default to 8] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8