Scenario 6: 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" merchantAccountCode="2001" /> <paymentPlan id="1" refId="1" code="php.pp-1" merchantAccountCode="2001" customerAccount="3" createDate="20080604" type="F" status="U" amount="5000" length="6" value="30000" deferredLength="0" deferredValue="0" billingCycleCode="M03" firstBillingDate="20080703" nextBillingDate="20080703" lastInvoicingDate="19691231" lastProcessingDate="19691231" lastUpdateDate="20080604" itemCode="Membership" linkAccount="0"> <charge id="1" refId="0" code="1" merchantAccountCode="2001" createDate="20080604" type="F" index="0" isPrepaid="0" /> <charge id="2" refId="0" code="2" merchantAccountCode="2001" createDate="20080604" type="F" index="1" isPrepaid="0" /> <charge id="3" refId="0" code="3" merchantAccountCode="2001" createDate="20080604" type="F" index="2" isPrepaid="0" /> <charge id="4" refId="0" code="4" merchantAccountCode="2001" createDate="20080604" type="F" index="3" isPrepaid="0" /> <charge id="5" refId="0" code="5" merchantAccountCode="2001" createDate="20080604" type="F" index="4" isPrepaid="0" /> <charge id="12" refId="0" code="12" merchantAccountCode="2001" createDate="20080604" type="F" index="5" isPrepaid="0" /> </paymentPlan> </request>
FIND REQUEST (Download)
<?xml version="1.0" encoding="UTF-8"?> <request version="1.1" merchantAccountCode="2000" password="welcome"> <findPaymentPlan code="php.pp-1" /> </request>
FIND RESPONSE ( Download)
<?xml version="1.0" encoding="UTF-8"?> <response> <paymentPlan id="1" refId="1" code="php.pp-1" merchantAccountCode="2001" customerAccount="3" createDate="20080604" type="F" status="U" amount="5000" length="12" value="60000" billingCycleCode="M03" firstBillingDate="20080703" nextBillingDate="20080703" lastUpdateDate="20080604" itemCode="Membership"> <charge id="1" refId="29232957" code="1" merchantAccountCode="2001" createDate="20080604" type="F" index="0" isPrepaid="0" /> <charge id="2" refId="14316496" code="2" merchantAccountCode="2001" createDate="20080604" type="F" index="1" isPrepaid="0" /> <charge id="3" refId="32084862" code="3" merchantAccountCode="2001" createDate="20080604" type="F" index="2" isPrepaid="0" /> <charge id="4" refId="30559159" code="4" merchantAccountCode="2001" createDate="20080604" type="F" index="3" isPrepaid="0" /> <charge id="5" refId="23664328" code="5" merchantAccountCode="2001" createDate="20080604" type="F" index="4" isPrepaid="0" /> <charge id="6" refId="5693353" code="6" merchantAccountCode="2001" createDate="20080604" type="F" index="5" isPrepaid="0" /> <charge id="7" refId="24514040" code="7" merchantAccountCode="2001" createDate="20080604" type="F" index="6" isPrepaid="0" /> <charge id="8" refId="26156214" code="8" merchantAccountCode="2001" createDate="20080604" type="F" index="7" isPrepaid="0" /> <charge id="9" refId="10877108" code="9" merchantAccountCode="2001" createDate="20080604" type="F" index="8" isPrepaid="0" /> <charge id="10" refId="7024986" code="10" merchantAccountCode="2001" createDate="20080604" type="F" index="9" isPrepaid="0" /> <charge id="11" refId="24463212" code="11" merchantAccountCode="2001" createDate="20080604" type="F" index="10" isPrepaid="0" /> <charge id="12" refId="10754231" code="12" merchantAccountCode="2001" createDate="20080604" type="F" index="11" isPrepaid="0" /> </paymentPlan> </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="1" refId="1" code="php.pp-1" merchantAccountCode="2001" customerAccount="3" createDate="20080604" type="F" status="U" amount="5000" length="6" value="30000" billingCycleCode="M03" firstBillingDate="20080703" nextBillingDate="20080703" lastUpdateDate="20080604" itemCode="Membership" linkAccount="0"> <charge id="1" refId="28156629" code="1" merchantAccountCode="2001" createDate="20080604" type="F" index="0" isPrepaid="0" /> <charge id="2" refId="18728239" code="2" merchantAccountCode="2001" createDate="20080604" type="F" index="1" isPrepaid="0" /> <charge id="3" refId="24952939" code="3" merchantAccountCode="2001" createDate="20080604" type="F" index="2" isPrepaid="0" /> <charge id="4" refId="20764811" code="4" merchantAccountCode="2001" createDate="20080604" type="F" index="3" isPrepaid="0" /> <charge id="5" refId="28093192" code="5" merchantAccountCode="2001" createDate="20080604" type="F" index="4" isPrepaid="0" /> <charge id="12" refId="17874945" code="12" merchantAccountCode="2001" createDate="20080604" type="F" index="5" isPrepaid="0" /> </paymentPlan> </response>
