Update a Deposit Refund Request

patch

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

Updates the specified deposit refund request.

Request

Path Parameters
Supported Media Types
Request Body - application/xml ()
The deposit to refund. The minimum required parameters are:
  • customerRef
  • status
Root Schema : schema
Type: object
Show Source
Nested Schema : Money
Type: object
Show Source
Request Body - application/json ()
The deposit to refund. The minimum required parameters are:
  • customerRef
  • status
Root Schema : schema
Type: object
Show Source
Nested Schema : Money
Type: object
Show Source
Back to Top

Response

201 Response

The deposit refund request was updated successfully, and the ID of the updated deposit refund request was returned.

500 Response

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

Examples

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

cURL Command

curl -X PUT 'http://hostname:port/bcws/webresources/version/depositManagement/depositRefund/0.0.0.1+-deposit_refund_request+2619159' -H 'content-type: application/json' -d @updateDepositRefund.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.
  • updateDepositRefund.json is the JSON file that specifies the details to update.

Example of Request Body

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

{  
  "customerDepositRef": "0.0.0.1+-purchased_deposit+2172776+0",
  "refundAmount": {
    "amount": 10,
    "currency": "INR"
  },
  "status": "REJECT",
  "notes": "Deposit refund request rejected"
}

Example of Response Body

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

{
    "id": " 0.0.0.1+-deposit_refund_request+2619159",
    "href": "http://hostname:port/bcws/webresources/version/depositManagement/depositRefund/0.0.0.1+-deposit_refund_request+2619159"
}
Back to Top