Create Credit Limits for a Balance Group

post

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

Creates credit limits and credit thresholds for the specified currency or noncurrency balance group.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : tempCreditLimit
Type: array
Show Source
Nested Schema : TempCreditLimit
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : tempCreditLimit
Type: array
Show Source
Nested Schema : TempCreditLimit
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Back to Top

Response

201 Response

The credit limits and credit thresholds were created successfully.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to create credit limits for a balance group 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/v1.0/billunits/balancegroups/creditlimit/0.0.0.1+-balance_group+82896' -H 'content-type: application/json' -d @creditLimits.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.
  • creditLimits.json is the JSON file that specifies the credit limits to create for the balance group.

Example of Request Body

This example shows the contents of the creditLimits.json file sent as the request body. This request creates a regular credit limit of 12, a credit floor of 1, and a fixed notification threshold of 1. It also sets a temporary credit limit of 100, valid for 10 days, starting in 30 days. Temporary credit limits are used when granting a loan or allowing the customer to temporarily breach their credit limit.

{
  "limit": "12.00",
  "thresholds": null,
  "floor": "1.00",
  "fixedThresholds": "1.00",
  "resourceId": 840,
  "tempCreditLimit": [
    {
      "limit": 100,
      "resourceId": 840,
      "validToUnit": 4,
      "validToOffset": 10,
      "validFromUnit": 4,
      "validFromOffset": 30
    }
  ]
}

Example of Response Body

If successful, the response code 201 is returned with Ok in the response body.

Back to Top