I'm trying to get the list of subscription based on CustomerProfileId.
Is there a way to get the list based on customerProfileId?
My Case Description:
I've list of plans and customers can subscribe to multiple plans.
The way I'm trying to impelment this is my making a customer profile and creating ARB subscription using their customer profile.
Now, I need to make sure customer does not subscribe to same plan twice.
Solved! Go to Solution.
06-10-2018 10:37 AM
That's a good question, Asim.
You can get the same information by using the following APIs:-
In all the cases above, the name of this field in response is subscriptionIds, as you can see in the Response tab for these APIs
One sample code you can refer for case 1 is : GetCustomerProfile C# sample code
Other sample codes:
06-11-2018 10:15 AM - edited 06-11-2018 10:18 AM
I know I can get this list by doing something like this:
var subsrcriptions = GetListOfSubcriptioins.Run(ApiLoginId, ApiTransactionId);
var data = (ARBGetSubscriptionListResponse)subsrcriptions;
And query data to get a list of subscription for given profile Id.
I was wondering if there is a better way to do this.
06-10-2018 11:03 AM
That's a good question, Asim.
You can get the same information by using the following APIs:-
In all the cases above, the name of this field in response is subscriptionIds, as you can see in the Response tab for these APIs
One sample code you can refer for case 1 is : GetCustomerProfile C# sample code
Other sample codes:
06-11-2018 10:15 AM - edited 06-11-2018 10:18 AM