backfill_subscription
Generate historical payment records for past billing periods for a subscription, with option to overwrite existing payments.
Instructions
Generate historical payment records for past billing periods
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": {
"id": "<id>",
"periods": "<periods>",
"amount": "<amount>",
"currency": "<currency>",
"overwrite_existing": "<overwrite_existing>"
},
"name": "backfill_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Subscription ID | |
| periods | Yes | Billing periods (monthly: YYYY-MM, yearly: YYYY) | |
| amount | Yes | Payment amount per period | |
| currency | Yes | Currency code | |
| usage_type | No | Usage type | |
| overwrite_existing | Yes | If true, overwrites existing payments for these periods |