Reply
Highlighted
Member
Posts: 2
Registered: ‎04-27-2018

Get a list of customer payment profiles from customer profile Id

I'm starting to suspect I can't read or something was simply over looked.. I'm looking for a way to get a list of payment profiles associated with a particular customer Profile id. I figured the api I would use would be the 

Get Customer Payment Profile List but this seems to only provide a list of cc's that are about to expire I need a way to update a subscription with a new cc when its about to expire. I believe you might even do this auto-magically but I have bosses that do not trust anyones automagic but mine. So I have to be able to click a button and update the subscription. I have the code for this if I can get a list of payment profiles associated with a cpid. Even better a list of NON EXPIRING cards would be good too

Highlighted
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Get a list of customer payment profiles from customer profile Id

Hi @ProgrammerCory

 

You can use getCustomerProfileRequest  API for getting all the Payment Profiles associated with a customer Profile 

 

https://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-profile

 

Also you can sign up for Webhooks for getting notifications https://developer.authorize.net/api/reference/features/webhooks.html

 

We are going to add events for card expiration in it pretty soon . 

 

Thanks

Anurag





Send feedback at developer_feedback@authorize.net
Highlighted
Authorize.Net Developer
Posts: 2
Registered: ‎11-22-2017

Re: Get a list of customer payment profiles from customer profile Id

For getting the list of all the Payment Profiles related to a Customer Profile you can use the Get Customer Profile API.

 

 

Moreover you can also take a look at Account Updater for updating customers card-on-file information.

Highlighted
Member
Posts: 1
Registered: ‎03-18-2019

Re: Get a list of customer payment profiles from customer profile Id

Hi,

 

I am using PHP API and trying to get a list of payment profiles for a given profile id.

 

I am using the getCustomerProfileRequest as suggested but the PHP sample code seems to require a lot of info about the CC holder but not the profile id.

 

It looks like the Python and other examples do have the profile id as a submitted variable.

 

Can you tell me what I'm missing?


Thanks!

Highlighted
Member
Posts: 1
Registered: ‎12-23-2019

Re: Get a list of customer payment profiles from customer profile Id


@alohaproviderx wrote:

Hi,

 

I am using PHP API and trying to get a list of payment profiles for a given profile id.

 

I am using the getCustomerProfileRequest as suggested but the PHP sample code seems to require a lot of info about the CC holder but not the profile id.

 

It looks like the Python and other examples do have the profile id as a submitted variable.

 

Can you tell me what I'm missing?


Thanks!


It seems everything is perfect