less than a minute read • Updated 12 days ago
Create a subscription
How to create a recurring subscription product link or form.
To create a subscription product, add the sub_frequency parameter with a valid value to your add-to-cart link or form.
Example
https://myonlinestore.foxycart.com/cart?name=Test+Subscription&price=9.99&sub_frequency=1m
Valid frequency values
Value | Result |
|---|---|
| Every 60 days |
| Every two weeks. For date calculations, 1w = 7d. |
| Every month. Foxy will assign billing to the current (or assigned) day of the month, repeated every x months. The date will be moved up when necessary — if set to the 31st, it will process on the 30th in months with 30 days (or the 28th/29th in February). |
| Every year |
| Twice a month. The |
Notes
A
sub_frequencyvalue is required for a product to be treated as a subscription by Foxy. Without it, the product will be treated as a regular one-time purchase.Before going live, make sure your payment gateway is configured to accept recurring transactions. See Gateway requirements for subscriptions for details.
To set a future start date or offer a free trial, see Set up a free trial on a subscription.
To limit the subscription to a set number of payments, see Set up a subscription with a fixed number of payments.