Create a new subscription. A subscription represents a recurring payment. Recurring payments may be on a weekly, monthly, or yearly basis, specified by the period parameter.
In order to create a subscription, a customer ID must be supplied. The customer object contains saved payment info, which is regularly charged by the subscription.
Subscriptions support fixed billing dates via payment_cycle and proration via proration_logic (prorata or none). When prorata is specified, a prorated amount is charged immediately for the period between creation and the resolved first anchor date, and full recurring charges commence on that anchor date. If the anchor date resolves to one full period or more in the future, no prorated charge is taken and the subscription enters an awaiting status instead. When none is specified (or defaulted when payment_cycle is provided without proration_logic), no initial charge is taken, the subscription enters an awaiting status, and the first full charge occurs on the anchor date. If the anchor date is today or in the past, the full amount is captured immediately and recurring charges continue from that anchor.
A subscription can't be modified once it's created. To change a subscription, you must delete it and create a new one. Deleting a subscription sets its status to deleted.
