Scenario 3: XML
From Intrannuity
REQUEST(Download)
<?xml version="1.0" encoding="UTF-8"?> <request version="1.1" merchantAccountCode="2000" password="welcome"> <customerAccount id="3" refId="3" code="php.ca-1" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Honolulu" state="CA" zipCode="31904" balance="0" isVerified="0" lastUpdateDate="20080604" birthDate="19691231" /> <paymentPlan refId="#1" code="php.pp-3" merchantAccountCode="2001" customerAccount="3" type="F" amount="3000" length="6" value="18000" billingCycleCode="M03" itemCode="Membership" linkAccount="1"> <charge refId="7" merchantAccountCode="2001" createDate="20080604" type="F" index="0" isPrepaid="0" /> <charge refId="6" merchantAccountCode="2001" createDate="20080604" type="F" index="1" isPrepaid="0" /> <charge refId="5" merchantAccountCode="2001" createDate="20080604" type="F" index="2" isPrepaid="0" /> <charge refId="4" merchantAccountCode="2001" createDate="20080604" type="F" index="3" isPrepaid="0" /> <charge refId="3" merchantAccountCode="2001" createDate="20080604" type="F" index="4" isPrepaid="0" /> <charge refId="2" merchantAccountCode="2001" createDate="20080604" type="F" index="5" isPrepaid="0" /> </paymentPlan> <paymentPlan refId="#8" code="php.pp-3-1" merchantAccountCode="2001" customerAccount="3" type="P" amount="2000" billingCycleCode="M03" itemCode="Membership" parentPaymentPlan="#1" /> </request>
FIND REQUEST (Download)
<?xml version="1.0" encoding="UTF-8"?> <request version="1.1" merchantAccountCode="2000" password="welcome"> <findCustomerAccount code="php.ca-1" /> </request>
FIND RESPONSE (Download)
<?xml version="1.0" encoding="UTF-8"?> <response> <customerAccount id="3" refId="3" code="php.ca-1" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Honolulu" state="CA" zipCode="31904" balance="0" lastUpdateDate="20080604" /> </response>
RESPONSE( Download)
<?xml version="1.0" encoding="UTF-8"?> <response> <customerAccount id="3" refId="3" code="php.ca-1" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Honolulu" state="CA" zipCode="31904" balance="0" lastUpdateDate="20080604" birthDate="19691231" /> <paymentPlan id="3" refId="#1" code="php.pp-3" merchantAccountCode="2001" customerAccount="3" createDate="20080604" type="F" status="U" amount="3000" length="6" value="18000" billingCycleCode="M03" firstBillingDate="20080703" nextBillingDate="20080703" lastUpdateDate="20080604" itemCode="Membership" linkAccount="1"> <charge id="28" refId="15377587" code="28" merchantAccountCode="2001" createDate="20080604" type="F" index="0" isPrepaid="0" /> <charge id="29" refId="14878494" code="29" merchantAccountCode="2001" createDate="20080604" type="F" index="1" isPrepaid="0" /> <charge id="30" refId="15222560" code="30" merchantAccountCode="2001" createDate="20080604" type="F" index="2" isPrepaid="0" /> <charge id="31" refId="26591177" code="31" merchantAccountCode="2001" createDate="20080604" type="F" index="3" isPrepaid="0" /> <charge id="32" refId="6436440" code="32" merchantAccountCode="2001" createDate="20080604" type="F" index="4" isPrepaid="0" /> <charge id="33" refId="31327237" code="33" merchantAccountCode="2001" createDate="20080604" type="F" index="5" isPrepaid="0" /> </paymentPlan> <paymentPlan id="4" refId="#8" code="php.pp-3-1" merchantAccountCode="2001" customerAccount="3" createDate="20080604" type="P" status="U" amount="2000" length="3" value="6000" deferredLength="6" deferredValue="12000" billingCycleCode="M03" firstBillingDate="20090103" nextBillingDate="20080703" lastUpdateDate="20080604" itemCode="Membership" parentPaymentPlan="#1"> <charge id="40" refId="14294698" code="40" merchantAccountCode="2001" createDate="20080604" type="P" index="0" isPrepaid="0" /> <charge id="41" refId="1261267" code="41" merchantAccountCode="2001" createDate="20080604" type="P" index="1" isPrepaid="0" /> <charge id="42" refId="25275502" code="42" merchantAccountCode="2001" createDate="20080604" type="P" index="2" isPrepaid="0" /> </paymentPlan> </response>
