Get On-Demand Customer Bills

get

/customerBillOnDemand

Gets the on-demand customer bills that match the query criteria.

Request

Query Parameters
  • The type of object to return.
    Example:
    Use @type=CustomerBillOnDemand for a base object or @type=CustomerBillOnDemandOracle for an extended object.
  • Retrieves the on-demand customer bills for the specified account ID.
    Example:
    billingAccount.id=0.0.0.1+-account+107117
  • Retrieves the on-demand customer bill for the specified bill ID.
    Example:
    id=0.0.0.1+-bill+106861
  • The maximum number of results to return.
    Example:
    Use limit=10 to return the first 10 results only.
  • The number of results to offset the response by.
    Example:
    Use offset=10 to return results 10 and higher.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : Customer Bill OnDemand
Type: object
Title: Customer Bill OnDemand
A customer bill created on demand.
Show Source
Nested Schema : Billing Account Ref
Type: object
Title: Billing Account Ref
A billing account is a detailed description of a bill structure.
Show Source
Nested Schema : Bill Ref
Type: object
Title: Bill Ref
A reference to a bill.
Show Source
Nested Schema : Related Party Ref
Type: object
Title: Related Party Ref
A reference to the party related to an object.
Show Source

400 Response

Bad Request
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

401 Response

Unauthorized
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

403 Response

Forbidden
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

404 Response

Not Found
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

405 Response

Method Not allowed
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

409 Response

Conflict
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
Back to Top

Examples

The following example shows how to get on-demand bills by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

The request uses query parameters to show a maximum of two results, for a base object, for a specific billing account.

curl -X GET 'http://host:port/brm/customerBillManagement/version/customerBillOnDemand?limit=2&@type=CustomerBillOnDemand&billingAccount.id=0.0.0.1+-account+104221

Example of the Response Body

The following example shows the contents of the response body in JSON format.

[
    {
        "id": "0.0.0.1+-bill+427232",
        "href": "http://host:port/brm/customerBillManagement/version/customerBillOnDemand/0.0.0.1+-bill+427232",
        "description": null,
        "lastUpdate": "2021-03-19T16:28:59+05:30",
        "name": "PIN Bill NOW",
        "billingAccount": {
            "id": "0.0.0.1+-account+104221",
            "href": null,
            "name": "Grace Wang",
            "@baseType": null,
            "@schemaLocation": null,
            "@type": null,
            "@referredType": "billingAccount"
        },
        "customerBill": {
            "id": "0.0.0.1+-bill+427232",
            "href": "http://host:port/brm/customerBillManagement/version/customerBill/0.0.0.1+-bill+427232",
            "@baseType": "CustomerBill",
            "@schemaLocation": null,
            "@type": "CustomerBill",
            "@referredType": "CustomerBill"
        },
        "relatedParty": null,
        "state": "DONE",
        "@baseType": "CustomerBillOnDemand",
        "@schemaLocation": null,
        "@type": "CustomerBillOnDemand"
    },
{
        "id": "0.0.0.1+-bill+427233",
        "href": "http://host:port/brm/customerBillManagement/version/customerBillOnDemand/0.0.0.1+-bill+427233",
        "description": null,
        "lastUpdate": "2021-04-18T16:28:59+05:30",
        "name": "PIN Bill NOW",
        "billingAccount": {
            "id": "0.0.0.1+-account+104221",
            "href": null,
            "name": "Grace Wang",
            "@baseType": null,
            "@schemaLocation": null,
            "@type": null,
            "@referredType": "billingAccount"
        },
        "customerBill": {
            "id": "0.0.0.1+-bill+427233",
            "href": "http://host:port/brm/customerBillManagement/version/customerBill/0.0.0.1+-bill+427233",
            "@baseType": "CustomerBill",
            "@schemaLocation": null,
            "@type": "CustomerBill",
            "@referredType": "CustomerBill"
        },
        "relatedParty": null,
        "state": "DONE",
        "@baseType": "CustomerBillOnDemand",
        "@schemaLocation": null,
        "@type": "CustomerBillOnDemand"
    }

]
Back to Top