Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Disputes Web Service >
Example of Creating a Dispute
This example shows you how to use the disputes Web service to create a dispute. Operation
Use the following operation to create a dispute comment: POST /disputes
Sample URL The following is a sample URL for this Web service example: http://myhost.example.com:7017/rs/api/v2/disputes Sample XML Input Rules
The following are the XML input rules:
- Tags in bold are required, and the corresponding fields cannot be updated.
- If tags are not present, then the corresponding fields are not updated.
- If tags are present with an empty value, then the corresponding fields are set to empty if a null value is allowed.
- The amount uses the localized format and is parsed in the locale that is passed in the Accept Language HTML attribute.
Sample XML Input
The following is an example of XML input: <?xml version="1.0" encoding="UTF-8"?> <disputeInfo currency="USD"> <accountNumber>AC-B2B-123361-01</accountNumber> <statementTxnDate pattern="MM/dd/yyyy">08/28/2015</statementTxnDate> <disputeAmount>34</disputeAmount> <createUser>ftown</createUser> <disputeReason>1</disputeReason> <disputeStatus>pending</disputeStatus> <itemIDs>4705</itemIDs> <flexibleField1>flexibleField1</flexibleField1> <flexibleField2>flexibleField2</flexibleField2> <flexibleField3>flexibleField3</flexibleField3> <flexibleField4>flexibleField4</flexibleField4> <flexibleField5>flexibleField5</flexibleField5> <flexibleFieldNumber1>22</flexibleFieldNumber1> <flexibleFieldNumber2>23</flexibleFieldNumber2> <flexibleFieldNumber3>24</flexibleFieldNumber3> <flexibleFieldDate1 pattern="MM/dd/yyyy">08/28/2015</flexibleFieldDate1> <flexibleFieldDate2 pattern="MM/dd/yyyy">08/28/2015</flexibleFieldDate2> <flexibleFieldDate3 pattern="MM/dd/yyyy">08/28/2015</flexibleFieldDate3> </disputeInfo>
Sample JSON Input
The following is an example of JSON input: { "currency": "USD", "accountNumber": "AC-B2B-123361-01", "statementTxnDate": { "pattern": "MM/dd/yyyy", "value": "08/26/2015" }, "disputeAmount": "34", "createUser": "ftown", "disputeReason": "1", "disputeStatus": "open", "itemType": "transaction", "itemIDs": "4705", "flexibleField1": "flexibleField1", "flexibleField2": "flexibleField2", "flexibleField3": "flexibleField3", "flexibleField4": "flexibleField4", "flexibleField5": "flexibleField5", "flexibleFieldNumber1": 22, "flexibleFieldNumber2": 23, "flexibleFieldNumber3": 24, "flexibleFieldDate1": { "pattern": "MM/dd/yyyy", "value": "08/28/2015" }, "flexibleFieldDate2": { "pattern": "MM/dd/yyyy", "value": "08/28/2015" }, "flexibleFieldDate3": { "pattern": "MM/dd/yyyy", "value": "08/28/2015" } }
Response Message
The following is an example of the response message: Dispute Create Success Visit <link>http://10.240.66.69:7050/rs/api/v2/disputes/100022</link>
|