cancel
Showing results for 
Search instead for 
Did you mean: 

Add Valid until date to an active subscription

ankit__123__
Explorer
0 Kudos
678

Hi experts,

First in Subscription Billing I create a subscription with no valid until date.
Next I want to add a valid until date to it, how do I do that.

former_member755598
Participant
0 Kudos

Hi Ankit, do you want to do this via API or using the user interface?


Do you want to set the validUntil date to be in the future or in the past?

Accepted Solutions (0)

Answers (4)

Answers (4)

annette_klute
Product and Topic Expert
Product and Topic Expert

Hi Norbert,

yes, you describe the behavior correctly.

Kind regards,

Annette

stefan_kiene
Product and Topic Expert
Product and Topic Expert

Hi Ankit,

to set the valid until date you need to cancel the subscription.
The API provides similar behaviour like the UI: you can request a cancellation with this endpoint.

The system will calculate the expiration date and populate the validUntil field in the subscription accordingly.

Depending on your cancellation rules of your subscriptions you might need to use the property "overruleTerms" to force the system to accept the requested cancellation date as expiration/validUntil date.

ankit__123__
Explorer

Hi Stefan,

When I cancel a subscription the status also changes from Active to Cancelled.(valid until date is populated)

I want the status of subscription to remain Active and upload valid until date.

former_member755598
Participant

Hi Ankit,

I understand where you are coming from with your follow-up question- it might seem a bit counter-intuitive at first to view the status canceled if the subscription is still actually still active. In SAP Subscription Billing in this case, however, the canceled status just means that the subscription is active and there is a date in the future on which the subscription will expire, which is exactly what you want. The subscription will behave the same way as if you had included a validUntil date in the original subscription payload. In the future you can reverse the cancellation if you need to.

Subscription Life Cycle | SAP Help Portal

Canceled means:

  • The subscription is active, but the customer asked to cancel it as of a future date.

  • The canceled subscription is scheduled to expire as of the next possible expiration date in accordance with the subscription terms.

  • The cancellation is reversible as long as the calculated expiration date isn't reached.

ankit__123__
Explorer

Thank you Christopher.

annette_klute
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ankit, you can use the product change endpoint to add a fixed term to the subscription. The endpoint to use is /subscriptions /{id}/processes/productchange

with a payload like this:
{

"metaData": { "version": 1 }, "effectiveDate": "2022-06-01", "product": { "code": "SAAS" },
"subscriptionTerms": { "fixedTerm": 12, "dataSource": "overwriteWithPayload" }
}So, this is still a workaround, but you wouldn't need to cancel the subscription. You cannot specify an explicit end date but you can use a number of months and use effective date = start date of the subscription. The subscription will then end at start date + fixed term.Cancelling the subscription has some disadvantages as it puts the subscription into a "Canceled" state and doesn't allow for extension later. (You would need to reverse the cancellation before extending it).Kind regards,Annette
norbertsarfi
Explorer
0 Kudos

Hello Anette,

can you confirm, that it is possible to extend a subscription to a specific end-date with the endpoint /subscriptions/{id}/extension

parameter extensionDate? However in the user interface only extension by number of billing periods or unlimited is supported?

Thank you in advance.


Best regards,
Norbert Sarfi

ankit__123__
Explorer
0 Kudos

I want to do it via API and a future date(end date of the current subs cycle)