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
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 |