Adjust an A/R Item's Currency Balance

post

/bcws/webresources/v1.0/adjustments/item/{id}

Adjusts the currency balance for the specified A/R item. For example, provide a $5 credit adjustment for a purchase fee.

Request

Path Parameters
Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
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
Back to Top

Response

Supported Media Types

201 Response

The A/R item's currency balance was adjusted successfully.
Body ()
Root Schema : adjustmentBill
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : billItem
Type: array
The bill item details.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Notes
Type: object
Show Source
Nested Schema : billItem
Type: object
The bill item details.
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
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

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to adjust an A/R item's currency balance 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/adjustments/item/0.0.0.1+-item-adjustment+272577' -H 'content-type: application/json' -d @adjust.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.
  • adjust.json is the JSON file that specifies the adjustment to make.

Example of Request Body

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

{
    "amount": -1,
    "percent": -10.05,
    "notes": {
        "amount": 1,
        "type": 100
        "subtype": 105
        "domainId": 38,
        "accountId": "0.0.0.1+-account+81329",
        "billUnitId": "0.0.0.1+-billinfo+78769",
        "reasonId": 1,
        "status": 101,
        "comments": [
            {
                "comment": "Sample comment."
            }
        ]
    },
    "includeTax": false
}

Example of Response Body

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

{
    "extension": null,
    "actionAffectsRef": null,
    "effective": null,
    "notes": {
        "extension": null,
        "id": "0.0.0.1+-note+272065",
        "accountId": "0.0.0.1+-account+81329",
        "amount": 1,
        "billUnitId": "0.0.0.1+-billinfo+78769",
        "billId": null,
        "closedDate": null,
        "count": null,
        "effectiveDate": null,
        "eventId": null,
        "header": null,
        "itemId": "0.0.0.1+-item-adjustment+272577",
        "subType": 202,
        "type": 200,
        "domainId": 24,
        "reasonId": 1,
        "serviceId": null,
        "status": 101,
        "comments": [
            {
                "csrLoginId": null,
                "csrFirstName": "Joe",
                "csrLastName": "Miller",
                "csrAccountId": null,
                "externalUser": "Test Client",
                "comment": "A sample comment.",
                "trackingId": null,
                "entryDate": null
            }
        ]
    },
    "amount": -1,
    "amountIsCredit": null,
    "resourceId": null,
    "includeTax": false,
    "percent": null,
    "billItem": []
}
Back to Top