Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Payments Web Service >
Example of Posting a Payment Transaction
This example shows you how to use the payments Web service to post a payment transaction. Operation
Use the following operation to post a payment transaction: POST /payment/transactions Sample URL
The following is a sample URL for this Web service example: http://myhost.example.com:7017/rs/api/v2/payment/transactions Sample XML Input - Using a Default Payment Account
The following is an example of XML input for posting a payment transaction using a default payment account: <paymentTxn> <billerId>BS1</billerId> <billingAccountNumber>AC-B2B-123361-01</billingAccountNumber> <paymentAmount>110.50</paymentAmount> <paymentScheduledDate pattern="MM/dd/yyyy">02/17/2015</paymentScheduledDate> <flexfield1>aaa</flexfield1> <flexfield2>bbb</flexfield2> <flexfield3>ccc</flexfield3> <vertical1>ddd</vertical1> <vertical2>eee</vertical2> <vertical3>fff</vertical3> <vertical4>ggg</vertical4> </paymentTxn>
Sample XML Input - Using an Existing Payment Account
The following is an example of XML input for posting a payment transaction using an existing payment account: <paymentTxn> <billerId>BS1</billerId> <billingAccountNumber>AC-B2B-123361-01</billingAccountNumber> <pmtAcctId>ccard_4</pmtAcctId> <paymentAmount>110.50</paymentAmount> <paymentScheduledDate pattern="MM/dd/yyyy">02/18/2015</paymentScheduledDate> <flexfield1>aaa</flexfield1> <flexfield2>bbb</flexfield2> <flexfield3>ccc</flexfield3> <vertical1>ddd</vertical1> <vertical2>eee</vertical2> <vertical3>fff</vertical3> <vertical4>ggg</vertical4> </paymentTxn>
Sample XML Input - Using a New Bank Account (Without a Companion Savings Account)
The following is an example of XML input for posting a payment transaction using a new bank account, where there is no companion savings account: <paymentTxn> <billerId>BS1</billerId> <billingAccountNumber>AC-B2B-123361-01</billingAccountNumber> <paymentAmount>110.50</paymentAmount> <paymentScheduledDate pattern="MM/dd/yyyy">02/19/2015</paymentScheduledDate> <bankAccount> <paymentAccountName>checkAcctNew</paymentAccountName> <bankName>checkAcctNew</bankName> <bankAccountNumber>45465654</bankAccountNumber> <pmtMethod>Checking</pmtMethod> <routingNumber>091000022</routingNumber> </bankAccount> <flexfield1>aaa</flexfield1> <flexfield2>bbb</flexfield2> <flexfield3>ccc</flexfield3> <vertical1>ddd</vertical1> <vertical2>eee</vertical2> <vertical3>fff</vertical3> <vertical4>ggg</vertical4> </paymentTxn>
Sample XML Input - Using a New Credit Card Account (With a Companion Savings Account)
The following is an example of XML input for posting a payment transaction with a new credit card account, when there is a companion savings account: <paymentTxn> <billerId>BS1</billerId> <billingAccountNumber>AC-B2B-123361-01</billingAccountNumber> <paymentAmount>110.50</paymentAmount> <paymentScheduledDate pattern="MM/dd/yyyy">07/15/2014</paymentScheduledDate> <ccardAccount> <paymentAccountName>OrbMasterAcct</paymentAccountName> <nameOnCard>OrbMaster</nameOnCard> <cardNumber>341134113411347</cardNumber> <pmtMethod>Amex</pmtMethod> <expirationDate pattern="MM/yyyy">12/2015</expirationDate> <cvvCode>1234</cvvCode> <street>4 Northeastern Blvd</street> <aptNumber>add2</aptNumber> <city>Salem</city> <country>ct</country> <state>ss</state> <zipCode>03105</zipCode> </ccardAccount> <isSaveAcct>true</isSaveAcct> <flexfield1>aaa</flexfield1> <flexfield2>bbb</flexfield2> <flexfield3>ccc</flexfield3> <vertical1>ddd</vertical1> <vertical2>eee</vertical2> <vertical3>fff</vertical3> <vertical4>ggg</vertical4> </paymentTxn>
Sample JSON Input - Using a Default Payment Account
The following is an example of JSON input for posting a payment transaction using default payment account: { "billerId": "BS1", "billingAccountNumber ": "AC-B2B-123361-01", "paymentAmount": "110.50" "paymentScheduledDate ": { "pattern": "MM/dd/yyyy", "value": "08/26/2015" }, " flexfield1": "aaa", " flexfield2": "bbb", " flexfield3": "ccc", " vertical1": "ddd", " vertical2": "eee", " vertical3": "fff", " vertical4": "ggg" }
Sample JSON Input - Using an Existing Payment Account
The following is an example of JSON input for posting a payment transaction using an existing payment account: { "billerId": "BS1", " billingAccountNumber ": "AC-B2B-123361-01", "pmtAcctId": "ccard_4", "paymentAmount": "110.50" " paymentScheduledDate ": { "pattern": "MM/dd/yyyy", "value": "08/26/2015" }, " flexfield1": "aaa", " flexfield2": "bbb", " flexfield3": "ccc", " vertical1": "ddd", " vertical2": "eee", " vertical3": "fff", " vertical4": "ggg" }
Sample JSON Input - Using a New Bank Account (Without a Companion Savings Account)
The following is an example of JSON input for posting a payment transaction with a new bank account, when there is no companion savings account: { "billerId": "BS1", " billingAccountNumber ": "AC-B2B-123361-01", "pmtAcctId": "ccard_4", "paymentAmount": "110.50" " paymentScheduledDate ": { "pattern": "MM/dd/yyyy", "value": "08/26/2015" }, "bankAccount": { "paymentAccountName": "checkAcctNew", "bankName": "checkAcctNew", "bankAccountNumber": "45465654", "pmtMethod": "Checking", "routingNumber": "091000022" }, " flexfield1": "aaa", " flexfield2": "bbb", " flexfield3": "ccc", " vertical1": "ddd", " vertical2": "eee", " vertical3": "fff", " vertical4": "ggg" }
Sample JSON Input - Using a New Credit Card (With a Companion Savings Account)
The following is an example of JSON input for posting payment transaction with new credit card account and save account: { "billerId": "BS1", " billingAccountNumber ": "AC-B2B-123361-01", "pmtAcctId": "ccard_4", "paymentAmount": "110.50" " paymentScheduledDate ": { "pattern": "MM/dd/yyyy", "value": "08/26/2015" }, "ccardAccount": { "paymentAccountName": "OrbMasterAcct", "nameOnCard": "OrbMaster", "cardNumber": "341134113411347", "pmtMethod": "Amex", "expirationDate": { "pattern": "MM/dd/yyyy", "value": "08/26/2016" }, "cvvCode": "1234", "street": "street", "aptNumber": "t100", "city": "Salem", "country": "ct", "state": "ss", "zipCode": "12345" }, "isSaveAcct": "ue", " flexfield1": "aaa", " flexfield2": "bbb", " flexfield3": "ccc", " vertical1": "ddd", " vertical2": "eee", " vertical3": "fff", " vertical4": "ggg" }
Response Message
The following is an example of the response message: POST PAYMENT TRANSACTION SUCCESS Visit <link>http://myhost.example.com:7017/rs/api/v2/payment/transactions/100401439318815371</link>
|