Get Unallocated Payments for a Bill Unit

get

/bcws/webresources/v1.0/payments/billunit/{id}

Gets the list of unallocated payments for the specified bill unit.

Request

Path Parameters
Query Parameters
  • The type of payments to get. The only supported value is type=unallocated.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The unallocated payments were returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : paymentList
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ResourceRef
Type: object
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get a bill unit's unallocated payments 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/payments/billunit/0.0.0.1+-account+57615?type=unallocated'

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,
        "paymentAmount": -200,
        "paymentDate": 1585787580000,
        "paymentId": "P1-66",
        "paymentMethod": 10013,
        "unAllocatedAmount": -200,
        "originalPaymentAmount": null,
        "paymentAction": null,
        "billingStatus": null,
        "paymentRef": {
            "id": "0.0.0.1+-item-payment+119786",
            "uri": null
        }
    },
    {
        "extension": null,
        "paymentAmount": -2,
        "paymentDate": 1590640735000,
        "paymentId": "P1-48",
        "paymentMethod": 10013,
        "unAllocatedAmount": -2,
        "originalPaymentAmount": null,
        "paymentAction": null,
        "billingStatus": null,
        "paymentRef": {
            "id": "0.0.0.1+-item-payment+126600",
            "uri": null
        }
    },
    {
        "extension": null,
        "paymentAmount": -25,
        "paymentDate": 1590641129000,
        "paymentId": "P1-49",
        "paymentMethod": 10013,
        "unAllocatedAmount": -25,
        "originalPaymentAmount": null,
        "paymentAction": null,
        "billingStatus": null,
        "paymentRef": {
            "id": "0.0.0.1+-item-payment+118985",
            "uri": null
        }
    },
    {
        "extension": null,
        "paymentAmount": -25,
        "paymentDate": 1590641616000,
        "paymentId": "P1-50",
        "paymentMethod": 10013,
        "unAllocatedAmount": -25,
        "originalPaymentAmount": null,
        "paymentAction": null,
        "billingStatus": null,
        "paymentRef": {
            "id": "0.0.0.1+-item-payment+122216",
            "uri": null
        }
    }
]
Back to Top