Declare subscription
purch_declare_subscriptionDeclare a recurring charge from one you have seen. The record then confirms it period by period. Declared, then confirmed (P-6): every period from the start date is matched against the vendor's charges within a tolerance; a period with none shows as missed, two in a row make it lapsed. Never declare one the person has not confirmed exists. Effects: subscription declared active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | First expected charge. Defaults to the earliest matching charge on record, else today. ISO date, YYYY-MM-DD. | |
| amount | Yes | Expected charge, positive. In cents (integer minor units) — 1250 means $12.50. | |
| reason | No | Why — part of the record. | |
| vendor | Yes | The vendor's proper name; created if new. | |
| cadence | Yes | How often it charges. | |
| currency | Yes | ISO 4217 code. | |
| tolerance_bp | No | How far a charge may drift and still count, in basis points. Default 1000 (10%). |