Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Payments Web Service >

Example of Posting an External Payment Transaction


This example shows you how to use the payments Web service to post a payment transaction made externally from Oracle Billing Insight.

Operation

Use the following operation to post an external payment transaction:

POST /payment/transactions/external

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/payment/transactions/external

Sample XML Input

The following is an example of XML input:

<paymentExternalTransaction>
<billerId>BS1</billerId>
<billingAccountNumber>7836380B2B1</billingAccountNumber>
<paymentAmount>111</paymentAmount>
<paymentScheduledDate pattern="MM/dd/yyyy">03/21/2013</paymentScheduledDate>
<paymentType>Mail In</paymentType>
<status>paid</status>
<transactionId>T123</transactionId>
<flexible1>...</flexible1>
<flexible2>...</flexible2>
<flexible3>...</flexible3>
<flexible4>...</flexible4>
<flexible5>...</flexible5>
</paymentExternalTransaction>

Sample JSON Input

The following is an example of JSON input:

{
   "billerId": "BS1",
   "billingAccountNumber": "7836380B2B1",
   "paymentAmount": "111",
   "paymentScheduledDate": {
      "@pattern": "MM/dd/yyyy",
      "#text": "03/21/2013"
   },
   "paymentType": "Mail In",
   "status": "paid",
   "transactionId": "T123",
   "flexible1": "...",
   "flexible2": "...",
   "flexible3": "...",
   "flexible4": "...",
   "flexible5": "..."
}

Response Message

The following is an example of the response message:

POST PAYMENT SUCCESS

Visit <link>http://myhost.example.com:7017/rs/api/v2/payment/transactions/external/T123</link>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.