Allocate an Adjustment to A/R Items

post

/bcws/webresources/v1.0/allocations/adjustment/{id}/items

Allocates the specified adjustment to a set of A/R items. This operation accepts bills against which the allocation needs to be done.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: array
Show Source
Nested Schema : billItem
Type: object
The bill item details.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : aliasList
Type: array
The list of aliases in the bill item.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : transferInto
Type: array
Show Source
Nested Schema : transferOut
Type: array
Show Source
Nested Schema : AliasList
Type: object
The list of aliases associated with the service.
Show Source
Nested Schema : TransferInto
Type: object
Show Source
Nested Schema : TransferOut
Type: object
Show Source
Request Body - application/xml ()
Root Schema : schema
Type: array
Show Source
Nested Schema : billItem
Type: object
The bill item details.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : aliasList
Type: array
The list of aliases in the bill item.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : transferInto
Type: array
Show Source
Nested Schema : transferOut
Type: array
Show Source
Nested Schema : AliasList
Type: object
The list of aliases associated with the service.
Show Source
Nested Schema : TransferInto
Type: object
Show Source
Nested Schema : TransferOut
Type: object
Show Source
Back to Top

Response

204 Response

The adjustment was allocated successfully.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to allocate an adjustment to A/R items 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/allocations/adjustment/0.0.0.1+-item-adjustment+208776/items' -H 'content-type: application/json' -d @allocateToARItems.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.
  • allocateToARItems.json is the JSON file that specifies how to allocate the adjustment.

Example of Request Body

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

[
    {
        "extension": null,
        "id": "0.0.0.1+-item-cycle_forward+211929",
        "name": "Cycle forward",
        "type": "/item/cycle_forward",
        "accountRef": {
            "id": "0.0.0.1+-account+81329",
            "uri": null
        },
        "arBillinfoRef": null,
        "arBillRef": {
            "id": "0.0.0.1+-bill+200506",
            "uri": null
        },
        "billRef": {
            "id": "0.0.0.1+-bill+200506",
            "uri": null
        },
        "serviceRef": {
            "id": "0.0.0.1+-service-ip+78705",
            "uri": null
        },
        "billinfoRef": null,
        "creationDate": null,
        "closedDate": null,
        "currency": null,
        "deltaDue": null,
        "disputed": 0,
        "adjusted": 0,
        "due": 9.95,
        "itemNo": "B1-641,3",
        "login": "34",
        "received": 0,
        "transfered": 0,
        "writeoff": 0,
        "amount": -1,
        "discount": null,
        "billNo": "B1-641",
        "billInfoId": "Bill Unit(1)",
        "firstName": "Mary",
        "lastName": "Williams",
        "serviceTypeName": "ip",
        "accountNumber": "0.0.0.1-81329",
        "aliasList": [],
        "status": null
    }       
]

Example of Response Body

If successful, the response code 204 is returned with no response body.

Back to Top