RatingRequest
BillingEnterpriseOrder to CashRevenue ManagementSAPSubscription ManagementUsage-Based Pricing
Properties
| Name | Type | Description |
|---|---|---|
| subscriberId | string | Unique identifier of the subscriber |
| serviceType | string | Type of service being consumed |
| quantity | number | Quantity of usage units |
| unit | string | Unit of measurement (e.g., MB, minutes, events) |
| usageTimestamp | string | Timestamp when the usage occurred |
| pricingPlanId | string | Optional override for the pricing plan to use |
| attributes | object | Additional attributes for rating context |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/RatingRequest",
"title": "RatingRequest",
"type": "object",
"required": [
"subscriberId",
"serviceType",
"quantity",
"usageTimestamp"
],
"properties": {
"subscriberId": {
"type": "string",
"description": "Unique identifier of the subscriber"
},
"serviceType": {
"type": "string",
"description": "Type of service being consumed"
},
"quantity": {
"type": "number",
"format": "double",
"description": "Quantity of usage units"
},
"unit": {
"type": "string",
"description": "Unit of measurement (e.g., MB, minutes, events)"
},
"usageTimestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the usage occurred"
},
"pricingPlanId": {
"type": "string",
"description": "Optional override for the pricing plan to use"
},
"attributes": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional attributes for rating context"
}
}
}