Amending a Subscription
Subscriptions store customer details using a Token Management Service (TMS) token and
have an assigned payment plan. Subscriptions consist of this information:
- Subscription code
- Use thesubscriptionInformation.codeREST API field to specify an amended value.
- Subscription name
- Use thesubscriptionInformation.nameREST API field to specify an amended value.
- Start date
- Use thesubscriptionInformation.startDateREST API field to specify an amended value.
- Token Management Service (TMS) token
- You cannot change this information.
- Plan: standard or one-time
- Astandard planis created and stored within the recurring billing service for re-use. You can assign these plans to multiple subscriptions.
- Aone-time planis created specifically for a single subscription, and you create the plan when you create the subscription. A one-time plan does not include a plan code, plan name, or plan description.
IMPORTANT
The subscription information that you can amend
depends on the status of the subscription. Note the limitations described in in the paragraphs that follow.
IMPORTANT
When you change the plan ID (
subscriptionInformation.planId
field) assigned to a subscription,
the first payment is processed immediately.
If proration is required after the change, it must be managed
outside of the recurring billing service.Basic Steps
Follow these steps to amend a subscription.
- Create the request message with the API fields that contain new values.
- Send the request message to one of these endpoints. In the endpoint path, replace the{id}portion of the URL with the subscription ID (id) that you received when you retrieved a list of subscriptions:
- Production:PATCH https://api.cybersource.com/rbs/v1/subscriptions/{id}
- Test:PATCH https://apitest.cybersource.test.com/rbs/v1/subscriptions/{id}
- Verify the response messages to make sure that the request was successful. A 200-level HTTP response code indicates success.See theTransaction Response Codes.