cancel
Showing results for 
Search instead for 
Did you mean: 

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

 

jhird
Member
1 ACCEPTED SOLUTION

Accepted Solutions

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

jhird
Member
2 REPLIES 2

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!

jhird
Member

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

search the function then the "try it" tab