create_activity
Create a billable activity record for a contract to log usage or consumption—such as hours, API calls, or units—so it can be included on a future invoice.
Instructions
Create a new activity record for a contract. An activity represents a billable usage or consumption event (e.g. API calls, hours worked, units consumed) that will be included on a future invoice. Requires an item number and quantity at minimum. Optionally override the unit price, add a description, set the performance date range, or schedule the activity for a specific billing date.
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>",
"itemNumber": "<itemNumber>",
"quantity": "<quantity>"
},
"name": "create_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | The quantity of the item consumed or used in this activity. | |
| scheduled | No | The scheduled billing date in YYYY-MM-DD format. If set, the activity will be included on the next invoice generated on or after this date. | |
| itemNumber | Yes | The item number (product/service SKU) that this activity records usage for. | |
| description | No | A free-text description for the activity, providing additional context about what was consumed or performed. | |
| contractNumber | Yes | The contract number to create the activity for. | |
| individualPrice | No | Override the default unit price for this activity. If omitted, the price from the item catalog is used. | |
| performanceDateEnd | No | The end date of the performance period in YYYY-MM-DD format. Indicates when the service or usage ended. | |
| performanceDateStart | No | The start date of the performance period in YYYY-MM-DD format. Indicates when the service or usage began. |