Create an usage event batch
post
/crmRestApi/resources/11.13.18.05/subscriptionUsageEventBatches
Request
Header Parameters
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
BatchDescription: string
Maximum Length:
2000
The description of the batch. -
BatchNumber(required): string
Maximum Length:
120
The number of the usage event batch. -
BatchStatus: string
Maximum Length:
30
The status of the usage event batch. -
ObjectVersionNumber: integer
(int32)
The object version number updated after every update of an usage event batch.
-
UsageBatchId: integer
(int64)
The unique identifier of the usage event batch.
-
usageEvents: array
Subscription Usage Events
Title:
Subscription Usage Events
The usage events resource is used to view, create, update, and delete an usage event. It provides details of subscription usage event information.
Nested Schema : Subscription Usage Events
Type:
array
Title:
Subscription Usage Events
The usage events resource is used to view, create, update, and delete an usage event. It provides details of subscription usage event information.
Show Source
Nested Schema : schema
Type:
Show Source
object
-
BatchNumber: string
Maximum Length:
120
The number of the batch associated with an usage event. -
CorpCurrencyCode: string
Maximum Length:
15
The corporate currency code associated with the usage event. -
CurcyConvRateType: string
Maximum Length:
30
The currency conversion rate type associated with the usage event. -
CurrencyCode: string
Maximum Length:
15
The currency code associated with the usage event. A list of accepted values is defined in the FND_CURRENCIES_VL view for currency code -
EventEndTime: string
(date-time)
Title:
Event End Time
The date and time when a usage event ends. -
EventId: integer
(int64)
Title:
Event Identifier
The unique identifier of the event. -
EventNumber(required): string
Title:
Event Number
Maximum Length:120
The alternate unique identifier of the event. -
EventStartTime(required): string
(date-time)
Title:
Event Start Time
The date and time when usage event starts. -
EventStatus: string
Title:
Event Status
Maximum Length:30
The usage event processing status. The event status is used to segregate event records that are ready for processing and the ones that are on hold requiring further enrichment. The outcome of the pricing process is also recorded in the status. A list of accepted values is defined in the ORA_OSS_EVENT_STATUS lookup for usage event status. -
EventTimeZone: string
Maximum Length:
50
The usage event time zone.This is the Time Zone of the logged in user. -
EventType: string
Title:
Event Type
Maximum Length:30
The usage event types that will be imported and processed by the pricing engine. A list of accepted values is defined in the ORA_OSS_EVENT_TYPES lookups for usage event type. -
EventTypeId: integer
(int64)
The unique identifier of the event type.
-
PricedOn: string
(date-time)
The date on which the usage event is priced.
-
RatingSource: string
Maximum Length:
30
The rating source of an usage event. This attributes gives information on whether the usage event is rated by subscription management or not. -
ReportedUsageQuantity: number
The reported usage quantity of the event.
-
ServiceId: string
Title:
Service Identifier
Maximum Length:120
The unique identifier of the service identifier. -
SubscriptionProductPuid: string
Maximum Length:
120
The subscription product PUID which is unique for each product. -
UsageBatchId: integer
(int64)
The identifier of the batch associated with an usage event.
-
usageCharges: array
Subscription Usage Event Charges
Title:
Subscription Usage Event Charges
The usage event charges resource is used to view, create, update, and delete an usage event charge. It provides details of the usage event charges associated with a subscription product. -
usageMessages: array
Subscription Usage Event Messages
Title:
Subscription Usage Event Messages
The usage event messages resource is used to view, create, update, and delete an usage event message. -
UsageQuantity: number
Title:
Usage Quantity
The usage quantity of the event. -
UsageUnitOfMeasure: string
Title:
Usage UOM Code
Maximum Length:3
The unit of measure of the event such as Ea, FT, and GAL. A list of accepted values is defined in the INV_UNITS_OF_MEASURE_VL view for a usage unit of measure.
Nested Schema : Subscription Usage Event Charges
Type:
array
Title:
Subscription Usage Event Charges
The usage event charges resource is used to view, create, update, and delete an usage event charge. It provides details of the usage event charges associated with a subscription product.
Show Source
Nested Schema : Subscription Usage Event Messages
Type:
array
Title:
Subscription Usage Event Messages
The usage event messages resource is used to view, create, update, and delete an usage event message.
Show Source
Nested Schema : subscriptionUsageEventBatches-usageEvents-usageCharges-item-post-request
Type:
Show Source
object
-
AllowanceAmount: number
The allowance amount of the usage event charge.
-
BilledAmount: number
The billed amount of the usage event charge.
-
ChargeCurrency: string
Maximum Length:
15
The currency of the usage event charge. -
ChargeDefinition: string
Maximum Length:
30
The charge definition associated with the usage event charge. -
ChargeDefinitionId: integer
(int64)
The identifier of the charge definition associated with the usage event charge.
-
ChargeName: string
Maximum Length:
120
The name of the usage event charge. -
EventId: integer
(int64)
The unique identifier of the event to which this usage event charge is associated with.
-
ExtendedAmount: number
The extended amount of the usage event charge.
-
ObjectVersionNumber: integer
(int32)
The object version number updated after every update of an usage event charge.
-
ParentEntity: string
Maximum Length:
30
The parent entity associated with the usage event charge. -
ParentEntityId: integer
(int64)
The unique identifier of the parent entity associated with the usage event charge.
-
PricedQuantity: number
The quantity priced for an usage event charge.
-
PricedQuantityUnitOfMeasure: string
Maximum Length:
3
The unit of measure of the priced quantity of an usage event charge. -
SequenceNumber: integer
(int32)
The sequence number associated with an usage event charge.
-
SubscriptionId: integer
(int64)
The unique identifier of a subscription to which this usage event change belongs.
-
SubscriptionProductId: integer
(int64)
The PUID of a subscription product to which this usage event charge belongs.
-
UsageChargeId: integer
(int64)
The unique identifier of the usage event charge.
-
UsageChargePuid: string
Maximum Length:
120
The PUID of the usage event charge.
Nested Schema : subscriptionUsageEventBatches-usageEvents-usageMessages-item-post-request
Type:
Show Source
object
-
MessageName: string
Maximum Length:
30
The name of the usage event message. -
MessageText: string
Maximum Length:
2000
The text of the usage event message. -
MessageType: string
Maximum Length:
30
The type of the usage event message. -
ObjectVersionNumber: integer
(int32)
The object version number updated after every update of an usage event message.
-
ParentEntity: string
Maximum Length:
30
The parent entity associated with the usage event message. -
ParentEntityId: integer
(int64)
The unique identifier of the parent entity associated with the usage event message.
-
UsageMessageId: integer
(int64)
The unique identifier of an usage event message.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : subscriptionUsageEventBatches-item-response
Type:
Show Source
object
-
BatchDescription: string
Maximum Length:
2000
The description of the batch. -
BatchNumber: string
Maximum Length:
120
The number of the usage event batch. -
BatchStatus: string
Maximum Length:
30
The status of the usage event batch. -
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created an usage event batch. -
CreationDate: string
(date-time)
Read Only:
true
The date when an usage event batch was created. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date when an usage event batch was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated an usage event batch. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the usage event batch. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
ObjectVersionNumber: integer
(int32)
The object version number updated after every update of an usage event batch.
-
UsageBatchId: integer
(int64)
The unique identifier of the usage event batch.
-
usageEvents: array
Subscription Usage Events
Title:
Subscription Usage Events
The usage events resource is used to view, create, update, and delete an usage event. It provides details of subscription usage event information.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Subscription Usage Events
Type:
array
Title:
Subscription Usage Events
The usage events resource is used to view, create, update, and delete an usage event. It provides details of subscription usage event information.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : subscriptionUsageEventBatches-usageEvents-item-response
Type:
Show Source
object
-
BatchNumber: string
Maximum Length:
120
The number of the batch associated with an usage event. -
CorpCurrencyCode: string
Maximum Length:
15
The corporate currency code associated with the usage event. -
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created a usage event. -
CreationDate: string
(date-time)
Read Only:
true
The date when a usage event was created. -
CurcyConvRateType: string
Maximum Length:
30
The currency conversion rate type associated with the usage event. -
CurrencyCode: string
Maximum Length:
15
The currency code associated with the usage event. A list of accepted values is defined in the FND_CURRENCIES_VL view for currency code -
EventEndTime: string
(date-time)
Title:
Event End Time
The date and time when a usage event ends. -
EventId: integer
(int64)
Title:
Event Identifier
The unique identifier of the event. -
EventNumber: string
Title:
Event Number
Maximum Length:120
The alternate unique identifier of the event. -
EventStartTime: string
(date-time)
Title:
Event Start Time
The date and time when usage event starts. -
EventStatus: string
Title:
Event Status
Maximum Length:30
The usage event processing status. The event status is used to segregate event records that are ready for processing and the ones that are on hold requiring further enrichment. The outcome of the pricing process is also recorded in the status. A list of accepted values is defined in the ORA_OSS_EVENT_STATUS lookup for usage event status. -
EventTimeZone: string
Maximum Length:
50
The usage event time zone.This is the Time Zone of the logged in user. -
EventType: string
Title:
Event Type
Maximum Length:30
The usage event types that will be imported and processed by the pricing engine. A list of accepted values is defined in the ORA_OSS_EVENT_TYPES lookups for usage event type. -
EventTypeId: integer
(int64)
The unique identifier of the event type.
-
LastUpdateDate: string
(date-time)
Read Only:
true
The date when a usage event was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who has last updated a usage event. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the usage event. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PricedOn: string
(date-time)
The date on which the usage event is priced.
-
RatingSource: string
Maximum Length:
30
The rating source of an usage event. This attributes gives information on whether the usage event is rated by subscription management or not. -
ReportedUsageQuantity: number
The reported usage quantity of the event.
-
ServiceId: string
Title:
Service Identifier
Maximum Length:120
The unique identifier of the service identifier. -
SubscriptionProductPuid: string
Maximum Length:
120
The subscription product PUID which is unique for each product. -
UsageBatchId: integer
(int64)
The identifier of the batch associated with an usage event.
-
usageCharges: array
Subscription Usage Event Charges
Title:
Subscription Usage Event Charges
The usage event charges resource is used to view, create, update, and delete an usage event charge. It provides details of the usage event charges associated with a subscription product. -
usageMessages: array
Subscription Usage Event Messages
Title:
Subscription Usage Event Messages
The usage event messages resource is used to view, create, update, and delete an usage event message. -
UsageQuantity: number
Title:
Usage Quantity
The usage quantity of the event. -
UsageUnitOfMeasure: string
Title:
Usage UOM Code
Maximum Length:3
The unit of measure of the event such as Ea, FT, and GAL. A list of accepted values is defined in the INV_UNITS_OF_MEASURE_VL view for a usage unit of measure.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : Subscription Usage Event Charges
Type:
array
Title:
Subscription Usage Event Charges
The usage event charges resource is used to view, create, update, and delete an usage event charge. It provides details of the usage event charges associated with a subscription product.
Show Source
Nested Schema : Subscription Usage Event Messages
Type:
array
Title:
Subscription Usage Event Messages
The usage event messages resource is used to view, create, update, and delete an usage event message.
Show Source
Nested Schema : subscriptionUsageEventBatches-usageEvents-usageCharges-item-response
Type:
Show Source
object
-
AllowanceAmount: number
The allowance amount of the usage event charge.
-
BilledAmount: number
The billed amount of the usage event charge.
-
ChargeCurrency: string
Maximum Length:
15
The currency of the usage event charge. -
ChargeDefinition: string
Maximum Length:
30
The charge definition associated with the usage event charge. -
ChargeDefinitionId: integer
(int64)
The identifier of the charge definition associated with the usage event charge.
-
ChargeName: string
Maximum Length:
120
The name of the usage event charge. -
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the usage event charge. -
CreationDate: string
(date-time)
Read Only:
true
The date when the usage event charge was created. -
EventId: integer
(int64)
The unique identifier of the event to which this usage event charge is associated with.
-
ExtendedAmount: number
The extended amount of the usage event charge.
-
LastUpdateDate: string
(date-time)
Read Only:
true
The date when the usage event charge was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who has last updated the usage event charge. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the usage event charge. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
ObjectVersionNumber: integer
(int32)
The object version number updated after every update of an usage event charge.
-
ParentEntity: string
Maximum Length:
30
The parent entity associated with the usage event charge. -
ParentEntityId: integer
(int64)
The unique identifier of the parent entity associated with the usage event charge.
-
PricedQuantity: number
The quantity priced for an usage event charge.
-
PricedQuantityUnitOfMeasure: string
Maximum Length:
3
The unit of measure of the priced quantity of an usage event charge. -
SequenceNumber: integer
(int32)
The sequence number associated with an usage event charge.
-
SubscriptionId: integer
(int64)
The unique identifier of a subscription to which this usage event change belongs.
-
SubscriptionProductId: integer
(int64)
The PUID of a subscription product to which this usage event charge belongs.
-
UsageChargeId: integer
(int64)
The unique identifier of the usage event charge.
-
UsageChargePuid: string
Maximum Length:
120
The PUID of the usage event charge.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : subscriptionUsageEventBatches-usageEvents-usageMessages-item-response
Type:
Show Source
object
-
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the usage event message. -
CreationDate: string
(date-time)
Read Only:
true
The date when the usage event message was created. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date when the usage event message was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated the usage event message. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the usage event message. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MessageName: string
Maximum Length:
30
The name of the usage event message. -
MessageText: string
Maximum Length:
2000
The text of the usage event message. -
MessageType: string
Maximum Length:
30
The type of the usage event message. -
ObjectVersionNumber: integer
(int32)
The object version number updated after every update of an usage event message.
-
ParentEntity: string
Maximum Length:
30
The parent entity associated with the usage event message. -
ParentEntityId: integer
(int64)
The unique identifier of the parent entity associated with the usage event message.
-
UsageMessageId: integer
(int64)
The unique identifier of an usage event message.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Links
- BatchStatusVA
-
Parameters:
- finder:
LookupTypeIsActiveEnabledFinder%3BBindLookupType%3DORA_OSS_USAGE_BATCH_STATUS
The following properties are defined on the LOV link relation:- Source Attribute: BatchStatus; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
- usageEvents
-
Operation: /crmRestApi/resources/11.13.18.05/subscriptionUsageEventBatches/{BatchNumber}/child/usageEventsParameters:
- BatchNumber:
$request.path.BatchNumber
The usage events resource is used to view, create, update, and delete an usage event. It provides details of subscription usage event information. - BatchNumber: