Create a Bill On Demand
post
/bcws/webresources/v1.0/bills/billnow/billunit/{id}
Creates a bill on demand for the specified bill unit.
Request
Path Parameters
-
id(required): string
The ID of the bill unit.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
201 Response
The bill was created successfully.
Root Schema : resource
Type:
Show Source
object
-
extension: object
extension
The extended attributes.
-
reference(required): object
ResourceRef
Nested Schema : extension
Type:
object
The extended attributes.
Nested Schema : ResourceRef
Type:
Show Source
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
400 Response
The request isn't valid.
500 Response
An internal server error occurred.
Examples
This example shows how to create a bill on demand 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/version/bills/billnow/billunit/0.0.0.1+-billinfo+182974'
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,
"reference": {
"id": "0.0.0.1+-bill+259288",
"uri": "http://hostname:port/bcws/webresources/v1.0/bills/0.0.0.1+-bill+259288"
}
}