Scenario 9: XML
From Intrannuity
REQUEST (Download)
<?xml version="1.0" encoding="UTF-8"?> <request version="1.1" merchantAccountCode="2000" password="welcome"> <customerAccount id="4" refId="4" code="php.ca-2" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Columbus" state="NY" zipCode="31909" balance="0" isVerified="0" lastUpdateDate="20080604" birthDate="19691231" /> <revenueTransaction refId="#1" code="php.rt-9-1" merchantAccountCode="2001" customerAccount="4" accountActivityType="RI" amount="2000" balance="2000" itemCode="T-Shirt" /> <revenueTransaction refId="#2" code="php.rt-9-2" merchantAccountCode="2001" customerAccount="4" accountActivityType="RI" amount="1500" balance="1500" itemCode="T-Shirt" /> <assetTransaction refId="#1" code="php.at-9-1" merchantAccountCode="2001" customerAccount="4" accountActivityType="AP" amount="2000" balance="2000" transactionType="V" accountNumber="4111111111111111" accessory="1209" captureInfo="1"> <captureInfo refId="1" merchantAccountCode="2001" accountNumber="4111111111111111" accessory="1209" transactionType="V" holderName="John Smith" street="233 12th Street" city="Columbus" state="CA" zipCode="31909" phone="2129856472" email="test@yahoo.com" requestDate="20080604" cvv2="999" /> </assetTransaction> <assetTransaction refId="#2" code="php.at-9-2" merchantAccountCode="2001" customerAccount="4" accountActivityType="AP" amount="1500" balance="1500" transactionType="V" accountNumber="4111111111111111" accessory="1209" captureInfo="2"> <captureInfo refId="2" merchantAccountCode="2001" accountNumber="4111111111111111" accessory="1209" transactionType="V" holderName="John Smith" street="233 12th Street" city="Columbus" state="CA" zipCode="31909" phone="2129856472" email="test@yahoo.com" requestDate="20080604" cvv2="999" /> </assetTransaction> </request>
FIND REQUEST (Download)
<?xml version="1.0" encoding="UTF-8"?> <request version="1.1" merchantAccountCode="2000" password="welcome"> <findCustomerAccount code="php.ca-2" /> </request>
FIND RESPONSE( Download)
<?xml version="1.0" encoding="UTF-8"?> <response> <customerAccount id="4" refId="4" code="php.ca-2" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Columbus" state="NY" zipCode="31909" balance="0" lastUpdateDate="20080604" /> </response>
RESPONSE( Download)
<?xml version="1.0" encoding="UTF-8"?> <response> <customerAccount id="4" refId="4" code="php.ca-2" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Columbus" state="NY" zipCode="31909" balance="0" lastUpdateDate="20080604" birthDate="19691231" /> <revenueTransaction id="8" refId="#1" code="php.rt-9-1" merchantAccountCode="2001" customerAccount="4" createDate="20080604" accountActivityType="RI" amount="2000" balance="2000" dueDate="20080604" itemCode="T-Shirt" isComplimentary="0" /> <revenueTransaction id="9" refId="#2" code="php.rt-9-2" merchantAccountCode="2001" customerAccount="4" createDate="20080604" accountActivityType="RI" amount="1500" balance="1500" dueDate="20080604" itemCode="T-Shirt" isComplimentary="0" /> <assetTransaction id="6" refId="#1" code="php.at-9-1" merchantAccountCode="2001" customerAccount="4" createDate="20080604" accountActivityType="AP" amount="-2000" balance="-2000" dueDate="20080604" maskedAccountNumber="4***********1111" maskedAccessory="1209" transactionType="V" accountNumber="4111111111111111" accessory="1209" captureInfo="4273517"> <captureInfo id="2" refId="4273517" code="php.at-9-1" createDate="20080604" merchantAccountCode="2001" accountNumber="4111111111111111" accessory="1209" transactionType="V" holderName="John Smith" street="233 12th Street" city="Columbus" state="CA" zipCode="31909" phone="2129856472" email="test@yahoo.com" requestDate="20080604" responseDate="20080604" returnType="A01" approvalCode="TAS761" referenceNumber="3" /> </assetTransaction> <assetTransaction id="7" refId="#2" code="php.at-9-2" merchantAccountCode="2001" customerAccount="4" accountActivityType="AP" amount="-1500" balance="-1500" dueDate="20080604" maskedAccountNumber="4***********1111" maskedAccessory="1209" transactionType="V" accountNumber="4111111111111111" accessory="1209" captureInfo="15146328"> <captureInfo id="3" refId="15146328" code="php.at-9-2" merchantAccountCode="2001" accountNumber="4111111111111111" accessory="1209" transactionType="V" holderName="John Smith" street="233 12th Street" city="Columbus" state="CA" zipCode="31909" phone="2129856472" email="test@yahoo.com" requestDate="20080604" responseDate="20080604" returnType="A01" approvalCode="TAS770" referenceNumber="4" /> </assetTransaction> </response>
