Consider using Purchases
If you need to purchase multiple subscriptions at once or purchase a subscription along with additional charges or credits we recommend using the Create Purchase endpoint instead of this one. With it you can create an account, billing info, charges, credits and subscriptions, then invoice and collect payment in one step.
SUBSCRIPTION STARTS DATE
If you would like the subscription to start on a specified date, please set the trial_ends_at parameter in your API request. Recurly will ignore any trial period currently specified on the plan and begin charging the subscription on the date specified. This is useful for creating your own, custom trial intervals and for importing existing subscriptions from an external system.
CREATING AN ACCOUNT SIMULTANEOUSLY
To avoid paying multiple transaction fees, Recurly allows you to create a subscription, account and billing information in one API call. That way the billing information can be validated when charging for the subscription.
USING STORED BILLING INFO
You may create a subscription without specifying billing information if an account already has stored billing information.
REDEEMING A COUPON
Redeem coupon codes within the create subscription action as a convenience or as a way to make sure the coupon is only redeemed if the subscription transaction is successful.
If you are redeeming one coupon, pass in coupon_code:
<coupon_code>special1</coupon_code>If you want to redeem multiple coupons, use the following format:
<coupon_codes>
<coupon_code>special1</coupon_code>
<coupon_code>special2</coupon_code>
</coupon_codes>NOTE: You must have Multiple Coupons Per Account enabled in Coupon Settings in order to redeem multiple coupons in the create subscription action.
The coupon must have eligible charges that include the plan of the subscription you are creating. If the coupon has a redemption_resource of "subscription", it will automatically be tied to the subscription upon successful redemption.
If you are redeeming a free trial coupon and also setting a trial_ends_at in the request, the subscriptions trial will follow the trial_ends_at, not the coupon rules.
REDEEMING A GIFT CARD
Redeem a gift card redemption code within the create subscription action as a convenience or as a way to make sure the gift card is only redeemed if the subscription transaction is successful. Only one gift card redemption code can be redeemed in the request
Example XML Request:
<gift_card>
<redemption_code>JHD776JENN99E6DD</redemption_code>
</gift_card>Note that the subscription response will not include information about the gift card, but will add two new parameters, started_with_gift and converted_at.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||