Get a Customer Bill by ID

get

/customerBill/{id}

Gets the specified customer bill.

Request

Path Parameters
Query Parameters
  • The type of object to return.
    Example:
    Use @type=CustomerBill for a base object or @type=CustomerBillOracle for an extended object.
  • The list of comma-separated fields to return in the response.
    Example:
    fields=billDate,paymentDueDate

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : Customer Bill
Type: object
Title: Customer Bill
A customer bill, also called an invoice.
Show Source
Nested Schema : Money
Type: object
A base / value business entity used to represent money.
Show Source
Nested Schema : appliedPayment
Type: array
Payments applied to the bill.
Show Source
Nested Schema : billDocument
Type: array
A document attached to the bill.
Show Source
  • Attachment Ref Or Value
    Title: Attachment Ref Or Value
    An attachment reference or value. The baseType, type, schemaLocation and referredType properties are related to the contained object, not the AttchmentRefOrValue.
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 : TimePeriod
Type: object
A period of time.
Show Source
Nested Schema : Financial Account Ref
Type: object
Title: Financial Account Ref
A financial account reference.
Show Source
Nested Schema : Payment Method Ref
Type: object
Title: Payment Method Ref
A reference to a payment method.
Show Source
Nested Schema : relatedParty
Type: array
The parties related to the bill.
Show Source
Nested Schema : taxItem
Type: array
Taxes on the bill.
Show Source
Nested Schema : Applied Payment
Type: object
Title: Applied Payment
A payment that can be assigned to a bill.
Show Source
Nested Schema : Payment Ref
Type: object
Title: Payment Ref
A payment captured as a reference on an order. Used when a payment is made immediately on an order rather than at a later billing date.
Show Source
Nested Schema : Attachment Ref Or Value
Type: object
Title: Attachment Ref Or Value
An attachment reference or value. The baseType, type, schemaLocation and referredType properties are related to the contained object, not the AttchmentRefOrValue.
Show Source
Nested Schema : Quantity
Type: object
An amount in a given unit.
Show Source
Nested Schema : accountBalance
Type: array
The account's balances.
Show Source
Nested Schema : Account Balance
Type: object
Title: Account Balance
A balance associated with an account.
Show Source
Nested Schema : Related Party Ref
Type: object
Title: Related Party Ref
A reference to the party related to an object.
Show Source
Nested Schema : State Values
Type: object
Title: State Values
A tax item.
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 the bill with the specified ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

The request uses the fields query parameter to show the details for certain fields only.

curl -X GET 'http://host:port/brm/customerBillManagement/version/customerBill/0.0.0.1+-bill+106861?fields=amountDue,paymentDueDate'

Example of the Response Body

The following example shows the contents of the response body in JSON format. Because the request included only id, amountDue, and paymentDueDate in the fields query parameter, these are the only details shown.

{
    "id": "0.0.0.1+-bill+106861",
    "href": null,
    "billDate": null,
    "billNo": null,
    "category": null,
    "lastUpdate": null,
    "nextBillDate": null,
    "paymentDueDate": "2020-08-01T01:05:29-07:00",
    "runType": null,
    "amountDue": {
        "unit": "EUR",
        "value": 40.0
    },
    "appliedPayment": null,
    "billDocument": null,
    "billingAccount": null,
    "billingPeriod": null,
    "financialAccount": null,
    "paymentMethod": null,
    "relatedParty": null,
    "remainingAmount": null,
    "state": null,
    "taxExcludedAmount": null,
    "taxIncludedAmount": null,
    "taxItem": null,
    "@baseType": "CustomerBill",
    "@schemaLocation": null,
    "@type": "CustomerBill"
}
Back to Top