Get Write-Off Details

get

/bcws/webresources/v1.0/writeoffs/{id}

Gets the details for the write off that matches the specified ID.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The write-off details were returned successfully.
Body ()
Root Schema : writeOffDetails
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : notes
Type: array
Show Source
Nested Schema : Notes
Type: object
Show Source
Nested Schema : comments
Type: array
The list of comments associated with the note.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Comments
Type: object
The list of comments associated with the note.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get the details about a write-off 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/writeoffs/0.0.0.1+-item-writeoff+254571'

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.

{
    "extension": null,
    "actionAffectsRef": {
        "id": "0.0.0.1+-account+263249",
        "uri": null
    },
    "effectiveDate": 1611931289000,
    "writeoffType": 15,
    "cycleStarts": 1611907200000,
    "cycleEnds": 1614585600000,
    "writeoffAmount": -10.97,
    "writeoffID": "W1-6",
    "itemName": "Cycle forward",
    "billNumber": "B1-951",
    "itemNumber": "",
    "billUnitName": "Bill Unit(1)",
    "accountNumber": null,
    "notes": [
        {
            "extension": null,
            "id": "0.0.0.1+-note+254315",
            "accountId": "0.0.0.1+-account+263249",
            "amount": -10.97,
            "billUnitId": "0.0.0.1+-billinfo+264785",
            "billId": null,
            "closedDate": 1611931290000,
            "count": 1,
            "effectiveDate": 1611931290000,
            "eventId": "0.0.0.0++0",
            "header": "",
            "itemId": "0.0.0.1+-item-writeoff+254571",
            "subType": 213,
            "type": 200,
            "domainId": 45,
            "reasonId": 2,
            "serviceId": "0.0.0.0++0",
            "status": 101,
            "comments": [
                {                
                    "csrLoginId": "HeadCSR",
                    "csrFirstName": "Alia",
                    "csrLastName": "Abadi",
                    "csrAccountId": "1234",
                    "externalUser": "CSR Portal",
                    "comment": "Item never requested, writing off.",
                    "trackingId": "",
                    "entryDate": 1611931290000
                }
            ]
        }
    ],
    "reversalAmount": null,
    "reversalEffectiveDate": null,
    "reversalId": null,
    "writeoffRef": {
        "id": "0.0.0.1+-item-writeoff+254571",
        "uri": null
    },
    "reversalRef": null
}
Back to Top