Get Balance Transfer Details by Transfer Event ID

get

/bcws/webresources/v1.0/billunits/balancegroups/transferbalance/{id}

Gets the details of the balance transfer for the transfer event that matches the specified ID.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The balance transfer details were returned successfully.
Body ()
Root Schema : transferBalanceDetails
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : sourceImpactedBucket
Type: array
The impacted bucket at the source.
Show Source
Nested Schema : SourceRef
Type: object
The balance transfer's source.
Show Source
Nested Schema : SourceTransferFee
Type: object
The transfer fee to charge the source.
Show Source
Nested Schema : targetImpactedBucket
Type: array
Show Source
Nested Schema : TargetRef
Type: object
The balance transfer's target.
Show Source
Nested Schema : TargetTransferFee
Type: object
The transfer fee to charge the target.
Show Source
Nested Schema : SourceImpactedBucket
Type: object
The impacted bucket at the source.
Show Source
Nested Schema : TargetImpactedBucket
Type: object
Show Source

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get details about a balance transfer 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/billunits/balancegroups/transferbalance/0.0.0.1+-event-audit-transfer_balance+33323'

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.

This example specifies the transfer event ID in the path rather than as a query parameter.

Example of Response Body

This example shows the contents of the response body in JSON format. This balance transfer applies toa single sub-balance and a fee is charged to both the source and target account.

[
   {
      "extension":null,
      "id":"0.0.0.1+-event-audit-transfer_balance+33323",
      "sourceAccountRef":{
         "id":"0.0.0.1+-account+329848",
         "uri":"http://host:port/bcws/webresources/v1.0/accounts/0.0.0.1+-account+329848"
      },
      "targetAccountRef":{
         "id":"0.0.0.1+-account+328088",
         "uri":"http://host:port/bcws/webresources/v1.0/accounts/0.0.0.1+-account+328088"
      },
      "transferDate":1636625864000,
      "sourceRef":{
         "id":"0.0.0.1+-balance_group+328056",
         "type":"balanceGroup"
      },
      "targetRef":{
         "id":"0.0.0.1+-balance_group+331672",
         "type":"balanceGroup"
      },
      "transferAmount":10,
      "transferAmountType":840,
      "chargeSource":true,
      "chargeDestination":true,
      "sourceImpactedBucket":[
         {
            "validFrom":1636588800000,
            "validTo":0,
            "amount":10
         }
      ],
      "targetImpactedBucket":[
         {
            "validFrom":1636588800000,
            "validTo":0,
            "amount":-10
         }
      ],
      "sourceTransferFee":{
         "amount":5,
         "feeTax":0.5,
         "resourceId":840
      },
      "targetTransferFee":{
         "amount":5,
         "feeTax":0.5,
         "resourceId":840
      }
   }
]
Back to Top