Get a Customer Deposit by ID

get

/bcws/webresources/v1.0/depositManagement/customerDeposit/{id}

Gets the customer deposit with the specified ID.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

201 Response

The customer deposit details were returned successfully.
Body ()
Root Schema : CustomerDeposit
Type: object
Show Source
Nested Schema : Money
Type: object
Show Source
Nested Schema : transactions
Type: array
Show Source
Nested Schema : TimePeriod
Type: object
Show Source
Nested Schema : DepositValidityRule
Type: object
Show Source
Nested Schema : CustomerDepositTransactions
Type: object
Show Source

500 Response

An error occurred. An exception has been raised.
Back to Top

Examples

This example shows how to get a deposit by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X GET 'http://hostname:port/bcws/webresources/version/depositManagement/customerDeposit/0.0.0.1+-purchased_deposit+2654172'

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.

Example of Response Body

This example shows the contents of the response body in JSON format.

{
    "id": "0.0.0.1+-purchased_deposit+2654172",
    "href": "http://hostname:port/bcws/webresources/version/depositManagement/customerDeposit/0.0.0.1+-purchased_deposit+2654172",
    "createdAt": "2021-11-06T13:34:35.000Z",
    "modifiedAt": "2021-11-06T13:34:35.000Z",
    "code": "",
    "customerRef": "0.0.0.1+-account+2205426",
    "serviceRef": "0.0.0.1+-service-telco-gsm+2203914",
    "billProfileRef": "0.0.0.1+-billinfo+2206194",
    "depositSpecRef": "0.0.0.1+-deposit_specification+2207626",
    "validFor": {
        "endDateTime": "2021-11-22T00:00:00.000Z",
        "startDateTime": "2021-11-12T00:00:00.000Z"
    },	
    "totalAmount": {
        "amount": 123
    },
    "receivedAmount": {
        "amount": 0
    },
    "releasedAmount": {
        "amount": 0
    },
    "interestAmount": {
        "amount": 0
    },
    "balanceAmount": {
        "amount": 0
    },
    "releaseType": "PREPAYMENT"
}
Back to Top