cancel
Showing results for 
Search instead for 
Did you mean: 

Changing a product in active subscription

ankit__123__
Explorer
0 Kudos
390
Hi Experts,

There is a requirement where we need to change a product from an active subscription.
For example: Customer first subscribes to product A, later on the customer decides to change to product B.

We are using the API request below for this change request:

1. Change the Product of the Root Item (POST on /subscriptions/{id}/processes/productchange)

But using the above API we cant include custom reference.

There is another API request
2. Update Snapshots of a Subscription (PUT on /subscriptions/{id})

Using above API we can include custom references in the payload.

So can we use the 2nd API request for the product change?
Any major difference between the above API request?


Please advice

Thanks
Ankit

Accepted Solutions (0)

Answers (1)

Answers (1)

annette_klute
Product and Topic Expert
Product and Topic Expert

HI Ankit,

if you need to provide new custom references along with the product change, you only have the second choice, i.e. use the PUT method on /subscriptions/{id}. This allows you to add a new snapshot for the new product and provide any other attributes as required. The product change endpoint does not support custom references, but it offers a lot of copy and redetermination logic as described here:

https://help.sap.com/docs/CLOUD_TO_CASH_OD/987aec876092428f88162e438acf80d6/adf897ede0834a84a46aa30b...

The product change endpoint is a bit easier to handle because it doesn't require as much data as the generic PUT method, where you have to build up the entire snapshot yourself. That is, you need to provide all data you need into the PUT method yourself.

Kind regards,

Annette

ankit__123__
Explorer
0 Kudos

Thank you Annette...