Get Customer Deposits

get

/bcws/webresources/v1.0/depositManagement/customerDeposit

Gets the customer deposits that match the query criteria.

Request

Query 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 : schema
Type: array
Show Source
Nested 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 deposits for a particular customer 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?customerRef=0.0.0.1+-account+2205426&serviceRef=0.0.0.1+-service-telco-gsm+2203914&billProfileRef=0.0.0.1+-billinfo+2206194'

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.

[
 {
        "validityRule": null,
        "id": "0.0.0.1+-purchased_deposit+3243617",
        "href": "http://hostname:port/bcws/webresources/version/customerDeposit/0.0.0.1+-purchased_deposit+3243617",
        "createdAt": "2021-10-28T07:05:17.000Z",
        "modifiedAt": "2021-10-28T07:05:17.000Z",
        "effectiveDate": null,
        "code": "",
        "status": null,
        "customerRef": "0.0.0.1+-account+3208384",
        "serviceRef": "0.0.0.0++0",
        "billProfileRef": "0.0.0.0++0",
        "depositSpecRef": "0.0.0.1+-deposit_specification+3206595",
        "validFor": {
            "startDateTime": "2021-10-28T07:05:17.000Z",
            "endDateTime": "2022-01-26T00:00:00.000Z"
        },
        "totalAmount": {
            "amount": 36
        },
        "receivedAmount": {
            "amount": 36
        },
        "releasedAmount": {
            "amount": 0
        },
        "interestAmount": {
            "amount": 0
        },
        "balanceAmount": {
            "amount": 36
        },
        "releaseType": "PREPAYMENT",
        "discountAmount": null,
        "discountType": null,
        "transactions": [{
                "transactionRef": "0.0.0.1+-event-billing-item-transfer+332984897451946593"
            }, {
                "transactionRef": "0.0.0.0++0"
            }
        ]
    }, 
 {
        "validityRule": null,
        "id": "0.0.0.1+-purchased_deposit+3310457",
        "href": "http://hostname:port/bcws/webresources/version/customerDeposit/0.0.0.1+-purchased_deposit+3310457",
        "createdAt": "2021-12-01T13:19:16.000Z",
        "modifiedAt": "2021-12-01T13:19:16.000Z",
        "effectiveDate": null,
        "code": "",
        "status": null,
        "customerRef": "0.0.0.1+-account+3208384",
        "serviceRef": "0.0.0.0++0",
        "billProfileRef": "0.0.0.1+-billinfo+3209920",
        "depositSpecRef": "0.0.0.1+-deposit_specification+2907536",
        "validFor": {
            "startDateTime": "2021-12-01T13:19:16.000Z",
            "endDateTime": "2022-06-29T13:19:16.000Z"
        },
        "totalAmount": {
            "amount": 18
        },
        "receivedAmount": {
            "amount": 0
        },
        "releasedAmount": {
            "amount": 0
        },
        "interestAmount": {
            "amount": 0
        },
        "balanceAmount": {
            "amount": 0
        },
        "releaseType": "ZEROISE",
        "discountAmount": null,
        "discountType": null,
        "transactions": null
 }
]
Back to Top