Get Deposit Specifications or Offers

get

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

Gets the deposit specifications or offers that match the query criteria.

Request

Query Parameters
  • The deposit specification expiry date, for example: 2037-09-18T18:30:00.000Z
  • The maximum number of records to be displayed on a page.
  • The name of the deposit specification.
  • The purchase level permitted for the deposit specification. This can be a single service (for example, /service/email), all services (/service), all accounts (/account), or all accounts and services (*).
  • The name of the deposit specification profile.
  • The deposit specification profile ID, for example: 0.0.0.1+-config-deposit_spec_profile+1234567
  • The deposit specifiction status, for example: DRAFT

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The deposit specifications were returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : Money
Type: object
Show Source

500 Response

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

Examples

This example shows how to get active deposit specifications that match certain criteria 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/depositSpec?name=DepositSpecification*&status=ACTIVE&permitted=/account&profileRef=0.0.0.1+-config-deposit_spec_profile+2927482'

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+-deposit_specification+2641457",
    "href": "http://hostname:port/bcws/webresources/version/depositManagement/depositSpec/0.0.0.1+-deposit_specification+2641457",
    "createdAt": "2021-11-06T12:39:57.000Z",
    "modifiedAt": "2021-11-06T12:39:57.000Z",
    "expiresAt": "2022-09-24T18:29:59.000Z",
    "category": "/account",
    "permitted": "/account",
    "code": "Deposit Specification Code",
    "name": "Deposit Specification Example",
    "descr": "Deposit Specification Example",
    "status": "ACTIVE",
    "profileRef": "0.0.0.1+-config-deposit_spec_profile+2927482",
    "chargeOfferRef": "0.0.0.1+-product+2750007",
    "billPreference": "IMMEDIATE",
    "creditLimitFlag": true
 },
 {
    "id": "0.0.0.1+-deposit_specification+2641457",
    "href": "http://hostname:port/bcws/webresources/version/depositManagement/depositSpec/0.0.0.1+-deposit_specification+2641457",
    "createdAt": "2021-11-06T12:39:57.000Z",
    "modifiedAt": "2021-11-06T12:44:34.000Z",
    "expiresAt": "2022-09-24T18:29:59.000Z",
    "category": "/account",
    "permitted": "/account",
    "code": "Deposit Specification Code",
    "name": "Deposit Specification Updated",
    "descr": "Deposit Specification Updated",
    "status": "ACTIVE",
    "profileRef": "0.0.0.1+-config-deposit_spec_profile+2927482",
    "chargeOfferRef": "0.0.0.1+-product+2750007",
    "billPreference": "IMMEDIATE",
    "creditLimitFlag": true
 }
]
Back to Top