skip the XML, use SOAP. that's my solution: profile_id = 42 merchantAuthentication={'name':api_login_id, 'transactionKey':transaction_key}
from pysimplesoap.client import SoapClient #@TODO: can i cache the SoapClient object? client = SoapClient(wsdl="https://apitest.authorize.net/soap/v1/Service.asmx?WSDL", exceptions=False) cust_profile = client.GetCustomerProfile( \ merchantAuthentication=merchantAuthentication, customerProfileId=profile_id) return cust_profile and now your response is a dict and you can just use it. i'm in the middle of an authorize.net CIM and AIM implementation, so lemme know if you have more questions, we can figure this out! cfh