On This Page
Requirements for the Subscription Creation Script
Adhere to these requirements as you write the subscription creation script.
- Migration log file
- The script logs each API request message sent and the corresponding response information returned by thesubscription service.Cybersource
- Retry logic
- For failed subscription creation requests, correct the request and resubmit it to the subscription service.
- Billing start date
- Recurring Billing subscriptions begin billing on the date specified in theCybersourcesubscriptionInformation.startDatefield.
- Reusable set of billing periods and billing cycles
- Create asubscription planthat defines a billing period (or billing cycle) and a number of billing cycles. In the REST API, use these fields:
- planInformation.billingCycles.total
- Plan options for new subscriptions
- Recurring Billing subscriptions support these plan options:Cybersource
- Define aone-time planfor a subscription instead of creating a subscription plan.
- Use the plan information defined in theexisting planreferenced by thesubscriptionInformation. planIdfield in the subscription creation message.
- Specifyoverridesto some of the information in the referenced plan. For example, if the subscription was for a fixed period, specify the remaining number of billing cycles in theplanInformation. billingCycles.totalfield.