calculate_subscription_item_price
Calculates a subscription item's price for a period and quantity, including custom pricing, quantity tiers, and pro-rating, so you can preview customer charges without creating an invoice.
Instructions
Calculate the price of a subscription item for a given period and quantity. Performs a price calculation taking into account the item catalog price, any custom prices, quantity tiers, and pro-rating for partial periods. Useful for previewing what a customer would be charged without actually creating an invoice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractNumber": "<contractNumber>",
"subscriptionItemUUID": "<subscriptionItemUUID>"
},
"name": "calculate_subscription_item_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | The quantity to calculate the price for. If omitted, the subscription item's configured quantity is used. | |
| contractNumber | Yes | The contract number that the subscription item belongs to. | |
| performanceDateEnd | No | The end date of the billing period in YYYY-MM-DD format. Used for pro-rating calculations. | |
| performanceDateStart | No | The start date of the billing period in YYYY-MM-DD format. Used for pro-rating calculations. | |
| subscriptionItemUUID | Yes | The unique UUID identifier of the subscription item to calculate the price for. |