Reply
Highlighted
Member
Posts: 2
Registered: ‎01-13-2015
Accepted Solution

createCustomerProfileFromTransactionRequest

I am looking to use "createCustomerProfileFromTransactionRequest" in the CIM XML API in C#. So I downloaded the xsd and generated a class file from it using the visual studio commandline xsd tool. It has generated my class no problems, howver it appears that "createCustomerProfileFromTransactionResponse" mentioned in: http://www.authorize.net/support/CIM_XML_guide.pdf (page 84) isn't in the xsd. I checked again in the link in toe documentation and search for "createCustomerProfileFromTransactionResponse" in https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd and it is not there. If I look at the request in the xsd it doesn't seem like creating customer profiles from transactions is comepleted, judging by the comment!

 

  <!-- 
 ===================================================================
 bla bla
 ===================================================================
 -->
  <xs:element name="createCustomerProfileFromTransactionRequest">
    <xs:complexType>
      <xs:complexContent>
        <xs:extension base="anet:ANetApiRequest">
          <xs:sequence>
            <xs:element name="transId" type="anet:numericString" minOccurs="1" maxOccurs="1" />
          </xs:sequence>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>

 

 

Is there an xsd anywhere that has the correct information in, or am I going to have to manually write the class myself?

 

Thanks,

 

John

 


Accepted Solutions
Highlighted
Solution
Accepted by topic author jhird
‎08-21-2015 01:58 AM
Member
Posts: 2
Registered: ‎01-13-2015

Re: createCustomerProfileFromTransactionRequest

It seems that there is no createCustomerProfileFromTransactionResponse and what is actually returned is a createCustomerProfileResponse:

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileResponse
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
    <messages>
        <resultCode>Ok</resultCode>
        <message>
            <code>I00001</code>
            <text>Successful.</text>
        </message>
    </messages>
    <customerProfileId>xxxxxxxx</customerProfileId>
    <customerPaymentProfileIdList>
        <numericString>xxxxxxxx</numericString>
    </customerPaymentProfileIdList>
    <customerShippingAddressIdList>
        <numericString>xxxxxxxx</numericString>
    </customerShippingAddressIdList>
    <validationDirectResponseList />
</createCustomerProfileResponse>

 So I'm not sure what the createCustomerProfileFromTransactionResponse in the documentation is!

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author jhird
‎08-21-2015 01:58 AM
Member
Posts: 2
Registered: ‎01-13-2015

Re: createCustomerProfileFromTransactionRequest

It seems that there is no createCustomerProfileFromTransactionResponse and what is actually returned is a createCustomerProfileResponse:

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileResponse
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
    <messages>
        <resultCode>Ok</resultCode>
        <message>
            <code>I00001</code>
            <text>Successful.</text>
        </message>
    </messages>
    <customerProfileId>xxxxxxxx</customerProfileId>
    <customerPaymentProfileIdList>
        <numericString>xxxxxxxx</numericString>
    </customerPaymentProfileIdList>
    <customerShippingAddressIdList>
        <numericString>xxxxxxxx</numericString>
    </customerShippingAddressIdList>
    <validationDirectResponseList />
</createCustomerProfileResponse>

 So I'm not sure what the createCustomerProfileFromTransactionResponse in the documentation is!

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: createCustomerProfileFromTransactionRequest

http://developer.authorize.net/api/reference/

search the function then the "try it" tab