Create a Deposit Specification

post

/bcws/webresources/v1.0/depositManagement/depositSpec

Creates a deposit specification.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Money
Type: object
Show Source
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Money
Type: object
Show Source
Back to Top

Response

201 Response

The deposit specification was created successfully, and the ID of the new profile was returned.

500 Response

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

Examples

This example shows how to create a deposit specification 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/depositManagement/depositSpec' -H 'content-type: application/json' -d @createDepositSpec.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.
  • createDepositSpec.json is the JSON file that specifies the deposit specification to create.

Example of Request Body

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

{
    "code": "Deposit Specification Code",
    "name": "Deposit Specification Example",
    "descr": "Deposit Specification Example",
    "billPreference": "IMMEDIATE",
    "profileRef": "0.0.0.1+-config-deposit_spec_profile+2927482",
    "permitted": "/account",
    "status": "ACTIVE",
    "category": "/account",
    "chargeOfferRef": "0.0.0.1+-product+2750007",
    "creditLimitFlag": true,
    "expiresAt": "2022-09-23T23:00:00.000Z"
}

Example of Response Body

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

{
    "id": "0.0.0.1+-deposit_specification+2641457",
    "href": "http://host:port/bcws/webresources/version/depositManagement/depositSpec/0.0.0.1+-deposit_specification+2641457"
}
Back to Top