Scenario 8: XML

From Intrannuity

Jump to: navigation, search

REQUEST (Download)

<?xml version="1.0" encoding="UTF-8"?>
<request version="1.1" merchantAccountCode="2000" password="welcome">
	<customerAccount id="4" refId="4" merchantAccountCode="2001" />
	<paymentPlan id="2" refId="2" code="php.pp-2"
		merchantAccountCode="2001" customerAccount="4" createDate="20080604"
		type="P" status="U" amount="1000" length="15" value="15000"
		deferredLength="2" deferredValue="2000" billingCycleCode="W01"
		firstBillingDate="20080609" nextBillingDate="20080609"
		lastInvoicingDate="19691231" lastProcessingDate="19691231"
		lastUpdateDate="20080604" itemCode="Membership" paymentOption="4"
		linkAccount="0">
		<charge id="13" refId="0" code="13" merchantAccountCode="2001"
			createDate="20080604" type="P" index="0" isPrepaid="0" />
		<charge refId="18" merchantAccountCode="2001"
			createDate="20080604" type="R" index="1" isPrepaid="0" />
		<charge refId="17" merchantAccountCode="2001"
			createDate="20080604" type="R" index="2" isPrepaid="0" />
		<charge id="14" refId="0" code="14" merchantAccountCode="2001"
			createDate="20080604" type="P" index="3" isPrepaid="0" />
		<charge id="15" refId="0" code="15" merchantAccountCode="2001"
			createDate="20080604" type="P" index="4" isPrepaid="0" />
		<charge id="16" refId="0" code="16" merchantAccountCode="2001"
			createDate="20080604" type="P" index="5" isPrepaid="0" />
		<charge id="17" refId="0" code="17" merchantAccountCode="2001"
			createDate="20080604" type="P" index="6" isPrepaid="0" />
		<charge id="18" refId="0" code="18" merchantAccountCode="2001"
			createDate="20080604" type="P" index="7" isPrepaid="0" />
		<charge id="19" refId="0" code="19" merchantAccountCode="2001"
			createDate="20080604" type="P" index="8" isPrepaid="0" />
		<charge id="20" refId="0" code="20" merchantAccountCode="2001"
			createDate="20080604" type="P" index="9" isPrepaid="0" />
		<charge id="21" refId="0" code="21" merchantAccountCode="2001"
			createDate="20080604" type="P" index="10" isPrepaid="0" />
		<charge id="22" refId="0" code="22" merchantAccountCode="2001"
			createDate="20080604" type="P" index="11" isPrepaid="0" />
		<charge id="23" refId="0" code="23" merchantAccountCode="2001"
			createDate="20080604" type="P" index="12" isPrepaid="0" />
		<charge id="24" refId="0" code="24" merchantAccountCode="2001"
			createDate="20080604" type="P" index="13" isPrepaid="0" />
		<charge id="25" refId="0" code="25" merchantAccountCode="2001"
			createDate="20080604" type="P" index="14" isPrepaid="0" />
		<charge id="26" refId="0" code="26" merchantAccountCode="2001"
			createDate="20080604" type="P" index="15" isPrepaid="0" />
		<charge id="27" refId="0" code="27" merchantAccountCode="2001"
			createDate="20080604" type="P" index="16" 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-2" />
</request>

FIND RESPONSE ( Download)

<?xml version="1.0" encoding="UTF-8"?>
<response>
	<paymentPlan id="2" refId="2" code="php.pp-2"
		merchantAccountCode="2001" customerAccount="4" createDate="20080604"
		type="P" status="U" amount="1000" length="15" value="15000"
		billingCycleCode="W01" firstBillingDate="20080609"
		nextBillingDate="20080609" lastUpdateDate="20080604"
		itemCode="Membership" paymentOption="4">
		<charge id="13" refId="25143535" code="13"
			merchantAccountCode="2001" createDate="20080604" type="P" index="0"
			isPrepaid="0" />
		<charge id="14" refId="2882636" code="14"
			merchantAccountCode="2001" createDate="20080604" type="P" index="1"
			isPrepaid="0" />
		<charge id="15" refId="29424726" code="15"
			merchantAccountCode="2001" createDate="20080604" type="P" index="2"
			isPrepaid="0" />
		<charge id="16" refId="16157861" code="16"
			merchantAccountCode="2001" createDate="20080604" type="P" index="3"
			isPrepaid="0" />
		<charge id="17" refId="9160443" code="17"
			merchantAccountCode="2001" createDate="20080604" type="P" index="4"
			isPrepaid="0" />
		<charge id="18" refId="11841010" code="18"
			merchantAccountCode="2001" createDate="20080604" type="P" index="5"
			isPrepaid="0" />
		<charge id="19" refId="529475" code="19"
			merchantAccountCode="2001" createDate="20080604" type="P" index="6"
			isPrepaid="0" />
		<charge id="20" refId="6962636" code="20"
			merchantAccountCode="2001" createDate="20080604" type="P" index="7"
			isPrepaid="0" />
		<charge id="21" refId="16735204" code="21"
			merchantAccountCode="2001" createDate="20080604" type="P" index="8"
			isPrepaid="0" />
		<charge id="22" refId="15329199" code="22"
			merchantAccountCode="2001" createDate="20080604" type="P" index="9"
			isPrepaid="0" />
		<charge id="23" refId="6924331" code="23"
			merchantAccountCode="2001" createDate="20080604" type="P" index="10"
			isPrepaid="0" />
		<charge id="24" refId="10473863" code="24"
			merchantAccountCode="2001" createDate="20080604" type="P" index="11"
			isPrepaid="0" />
		<charge id="25" refId="7666038" code="25"
			merchantAccountCode="2001" createDate="20080604" type="P" index="12"
			isPrepaid="0" />
		<charge id="26" refId="27649671" code="26"
			merchantAccountCode="2001" createDate="20080604" type="P" index="13"
			isPrepaid="0" />
		<charge id="27" refId="12692995" code="27"
			merchantAccountCode="2001" createDate="20080604" type="P" index="14"
			isPrepaid="0" />
	</paymentPlan>
</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" />
	<paymentOption id="4" refId="4" code="php.po-2"
		merchantAccountCode="2001" customerAccount="4" createDate="20080604"
		isActive="1" type="C" number="1000121279381" accessory="610000227"
		holderName="John Smith" street1="233 12th Street" city="Columbus"
		state="CA" zipCode="31909" maskedNumber="1********9381"
		maskedAccessory="6****0227" />
	<paymentPlan id="2" refId="2" code="php.pp-2"
		merchantAccountCode="2001" customerAccount="4" createDate="20080604"
		type="P" status="U" amount="1000" length="15" value="15000"
		deferredLength="2" deferredValue="2000" billingCycleCode="W01"
		firstBillingDate="20080609" nextBillingDate="20080609"
		lastUpdateDate="20080604" itemCode="Membership" paymentOption="4"
		linkAccount="0">
		<charge id="13" refId="24729442" code="13"
			merchantAccountCode="2001" createDate="20080604" type="P" index="0"
			isPrepaid="0" />
		<charge id="46" refId="22548952" code="46"
			merchantAccountCode="2001" createDate="20080604" type="R" index="1"
			isPrepaid="0" />
		<charge id="47" refId="16497451" code="47"
			merchantAccountCode="2001" createDate="20080604" type="R" index="2"
			isPrepaid="0" />
		<charge id="14" refId="12398237" code="14"
			merchantAccountCode="2001" createDate="20080604" type="P" index="3"
			isPrepaid="0" />
		<charge id="15" refId="4148211" code="15"
			merchantAccountCode="2001" createDate="20080604" type="P" index="4"
			isPrepaid="0" />
		<charge id="16" refId="26438600" code="16"
			merchantAccountCode="2001" createDate="20080604" type="P" index="5"
			isPrepaid="0" />
		<charge id="17" refId="25766327" code="17"
			merchantAccountCode="2001" createDate="20080604" type="P" index="6"
			isPrepaid="0" />
		<charge id="18" refId="1163163" code="18"
			merchantAccountCode="2001" createDate="20080604" type="P" index="7"
			isPrepaid="0" />
		<charge id="19" refId="20601388" code="19"
			merchantAccountCode="2001" createDate="20080604" type="P" index="8"
			isPrepaid="0" />
		<charge id="20" refId="32910718" code="20"
			merchantAccountCode="2001" createDate="20080604" type="P" index="9"
			isPrepaid="0" />
		<charge id="21" refId="19191362" code="21"
			merchantAccountCode="2001" createDate="20080604" type="P" index="10"
			isPrepaid="0" />
		<charge id="22" refId="24030091" code="22"
			merchantAccountCode="2001" createDate="20080604" type="P" index="11"
			isPrepaid="0" />
		<charge id="23" refId="12604739" code="23"
			merchantAccountCode="2001" createDate="20080604" type="P" index="12"
			isPrepaid="0" />
		<charge id="24" refId="18722144" code="24"
			merchantAccountCode="2001" createDate="20080604" type="P" index="13"
			isPrepaid="0" />
		<charge id="25" refId="23171267" code="25"
			merchantAccountCode="2001" createDate="20080604" type="P" index="14"
			isPrepaid="0" />
		<charge id="26" refId="6762352" code="26"
			merchantAccountCode="2001" createDate="20080604" type="P" index="15"
			isPrepaid="0" />
		<charge id="27" refId="5993922" code="27"
			merchantAccountCode="2001" createDate="20080604" type="P" index="16"
			isPrepaid="0" />
	</paymentPlan>
</response>
Personal tools