Reply
Highlighted
Contributor
Posts: 15
Registered: ‎12-03-2011

Response to expect - customerPaymentProfileId or customerPaymentProfileIdList

In CIM I see a response sometimes that that shows customerPaymentProfileId and

sometimes customerPaymentProfileIdList.  List always shows up with more than one payment profile but the CIMXML Examples show both could occur when only one payment profile is sent.  I am using this to parse out the data and so need to know what to expect both in payment profiles and Customer profiles.

 

Do I need to somehow code for both possibilities?

 

Thanks

Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Response to expect - customerPaymentProfileId or customerPaymentProfileIdList

If creating a profile, the payment profile ID list is supposedly sent whenever one or more payment profiles are created. I'd say check for the list first, and if it doesn't exist, use the single value.

Highlighted
Contributor
Posts: 15
Registered: ‎12-03-2011

Re: Response to expect - customerPaymentProfileId or customerPaymentProfileIdList

Thanks for confriming my suspicions.