Create a Refund for an Account

post

/bcws/webresources/v1.0/refunds/account/{id}

Creates a refund for the specified account.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Notes
Type: object
Show Source
Nested Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : comments
Type: array
The list of comments associated with the note.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Comments
Type: object
The list of comments associated with the note.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Notes
Type: object
Show Source
Nested Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : comments
Type: array
The list of comments associated with the note.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Comments
Type: object
The list of comments associated with the note.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Back to Top

Response

201 Response

The refund was created successfully.

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to create a refund for an account by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X POST 'http://hostname:port/bcws/webresources/version/refunds/account/0.0.0.1+-account+264746' -H 'content-type: application/json' -d @refundAccount.json

where:

  • hostname is the URL for the Billing Care REST server.
  • port is the port for the Billing Care REST server.
  • version is the version of the API you're using, such as v1.0.
  • refundAccount.json is the JSON file that specifies the details of the refund.

Example of Request Body

This example shows the contents of the refundAccount.json file sent as the request body.

{
    "notes": {
        "amount": 555,
        "domainId": 6,
        "accountId": "0.0.0.1+-account+264746",
        "reasonId": "2",
        "status": 101,
        "comments": [
            {
                "comment": "Refunding charges."
            }
        ]
    },
    "payinfoTypeObject": {
        "cashInfo": [
            {
                "effectiveDate": "2021-02-01T14:38:27.000Z",
                "receiptNo": "96453"
            }
        ],
        "@class": "com.oracle.communications.brm.cc.model.Externalpayment10011",
        "accountObj": {
            "id": "0.0.0.1+-account+264746"
        },
        "paymentType": "10011",
        "externalType": true,
        "id": {
            "id": "0.0.0.1+-payinfo+98630"
        }
    }
}

Example of Response Body

If successful, the response code 200 is returned with true in the response body.

Back to Top