- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's a good question, Asim.
You can get the same information by using the following APIs:-
- GetCustomerProfile API - Returns the list of subscriptions for this customerProfileId as subscriptionIds field in the response.
- GetCustomerPaymentProfile API - Also returns the list of subscriptions for a particular payment profile of a customer. A payment profile include the customer profile id, and one method of payment used by that customer profile.
- GetCustomerShippingAddress API - Similar to payment profiles, a shipping addresses includes the customer profile id, and one shipping address used by that customer profile.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's a good question, Asim.
You can get the same information by using the following APIs:-
- GetCustomerProfile API - Returns the list of subscriptions for this customerProfileId as subscriptionIds field in the response.
- GetCustomerPaymentProfile API - Also returns the list of subscriptions for a particular payment profile of a customer. A payment profile include the customer profile id, and one method of payment used by that customer profile.
- GetCustomerShippingAddress API - Similar to payment profiles, a shipping addresses includes the customer profile id, and one shipping address used by that customer profile.
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