2. Security
2.1. oauth2_password
Type : oauth2
Flow : password
Token URL : https://localhost:9002/authorizationserver/oauth/token
Name |
---|
basic |
2.2. oauth2_client_credentials
Type : oauth2
Flow : application
Token URL : https://localhost:9002/authorizationserver/oauth/token
Name |
---|
extended |
3. Resources
3.1. Customer Bill Management
Bm Customer Bill Controller
3.1.1. List or find CustomerBill objects
GET /customerBill
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
fields |
Comma-separated properties to be provided in response |
string |
Query |
limit |
Requested number of resources to be provided in response |
integer(int32) |
Query |
offset |
Requested index for start of resources to be provided in response |
integer(int32) |
Query |
relatedParty.id |
Related party id value |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
< CustomerBill > array |
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
405 |
Method Not allowed |
|
409 |
Conflict |
|
500 |
Internal Server Error |
3.1.2. Retrieves a CustomerBill by ID
GET /customerBill/{id}
Description
This operation retrieves a CustomerBill entity. Attribute selection is enabled for all first level attributes.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
Identifier of the CustomerBill |
string |
Query |
fields |
Comma-separated properties to provide in response |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
405 |
Method Not allowed |
|
409 |
Conflict |
|
500 |
Internal Server Error |
4. Definitions
4.1. AccountBalance
Balances linked to the account
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
amount |
Balance amount |
|
balanceType |
Type of the balance : deposit balance, disputed balance, loyalty balance, receivable balance… |
string |
validFor |
Balance validity period |
4.2. AppliedPayment
The applied payment is the result of lettering process. It enables to assign automatically or manually part of incoming payment amount to a bill.
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
appliedAmount |
||
payment |
4.3. AttachmentRefOrValue
An attachment by value or by reference. For AttachmentRefOrValue, the attribute type,schemaLocation and referredType are related to the contained entity and not to AttchmentRefOrValue itself
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
attachmentType |
Attachment type such as video, picture |
string |
content |
The actual contents of the attachment object, if embedded, encoded as base64 |
string |
description |
A narrative text describing the content of the attachment |
string |
href |
URI for this Attachment |
string |
id |
Unique identifier for this particular attachment |
string |
mimeType |
Attachment mime type such as extension file for video, picture and document |
string |
name |
The name of the attachment |
string |
size |
The size of the attachment. |
|
url |
Uniform Resource Locator, is a web page address (a subset of URI) |
string |
validFor |
The period of time for which the attachment is valid |
4.4. BillingAccountRef
Reference to the billing account in case of not billed item.
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
URL serving as reference for the <xyz> resource |
string |
id |
Unique-Identifier for this <123> |
string |
name |
Name of the Billingaccount |
string |
4.5. CustomerBill
The billing account receives all charges (recurring, one time and usage) of the offers and products assigned to it during order process. Periodically according to billing cycle specifications attached to the billing account or as a result of an event, a customer bill (aka invoice) is produced. This customer bill concerns different related parties which play a role on it : for example, a customer bill is produced by an operator, is sent to a bill receiver and has to be paid by a payer. A payment method could be assigned to the customer bill to build the call of payment. Lettering process enables to assign automatically or manually incoming amount from payments to customer bills (payment items). A tax item is created for each tax rate used in the customer bill. The financial account represents a financial entity which records all customer’s accounting events : payment amount are recorded as credit and invoices amount are recorded as debit. It gives the customer overall balance (account balance). The customer bill is linked to one or more documents that can be downloaded via a provided url.
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
amountDue |
||
appliedPayment |
< AppliedPayment > array |
|
billDate |
Bill date |
string(date-time) |
billDocument |
< AttachmentRefOrValue > array |
|
billNo |
Bill reference known by the customer or the party and displayed on the bill. Could be different from the id |
string |
billingAccount |
||
billingPeriod |
||
category |
Category of the bill produced : normal, duplicate, interim, last, trial customer or credit note for example |
string |
financialAccount |
||
href |
Bill unique reference |
string |
id |
Unique identifier of he bill |
string |
lastUpdate |
Date of bill last update |
string(date-time) |
nextBillDate |
). Approximate date of the next bill production given for information (only used for onCycle bill) |
string(date-time) |
paymentDueDate |
Date at which the amount due should have been paid |
string(date-time) |
paymentMethod |
||
relatedParty |
< RelatedPartyRef > array |
|
remainingAmount |
||
runType |
onCycle (a bill can be created as a result of a cycle run) or offCycle (a bill can be created as a result of other events such as customer request or account close) |
string |
state |
enum (new, onHold, validated, sent, partiallyPaid, settled) |
|
taxExcludedAmount |
||
taxIncludedAmount |
||
taxItem |
< TaxItem > array |
4.6. Error
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name. |
string |
code |
Application relevant detail, defined in the API or a common list. |
string |
message |
More details and corrective actions related to the error which can be shown to a client user. |
string |
reason |
Explanation of the reason for the error which can be shown to a client user. |
string |
referenceError |
URI of documentation describing the error. |
string |
status |
HTTP Error code extension |
string |
4.7. FinancialAccountRef
AccountReceivable reference. An account of money owed by a party to another entity in exchange for goods or services that have been delivered or used. An account receivable aggregates the amounts of one or more party accounts (billing or settlement) owned by a given party.
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
accountBalance |
< AccountBalance > array |
|
href |
Unique reference of the account |
string |
id |
Unique identifier of the account |
string |
name |
Name of the account |
string |
4.8. Money
A base / value business entity used to represent money
Name | Description | Schema |
---|---|---|
unit |
Currency (ISO4217 norm uses 3 letters to define the currency) |
string |
value |
A positive floating point number |
number(float) |
4.9. PaymentMethodRef
PaymentMethod reference. A payment method defines a specific mean of payment (e.g direct debit).
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference of the payment mean |
string |
id |
Unique identifier of the payment mean |
string |
name |
Name of the payment mean |
string |
4.10. PaymentRef
If an immediate payment has been done at the product order submission, the payment information are captured and stored (as a reference) in the order.
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference of the related entity. |
string |
id |
Unique identifier of a related entity. |
string |
name |
A name for the payment |
string |
4.11. Quantity
An amount in a given unit
Name | Description | Schema |
---|---|---|
amount |
Numeric value in a given unit |
number(float) |
units |
Unit |
string |
4.12. RelatedPartyRef
RelatedParty reference. A related party defines party or party role linked to a specific entity.
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference of the related party, could be a party reference or a party role reference |
string |
id |
Unique identifier of a related party |
string |
name |
Name of the related party |
string |
role |
Role of the related party. |
string |
4.13. TaxItem
A tax item is created for each tax rate and tax type used in the bill.
Name | Description | Schema |
---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
taxAmount |
Amount of tax expressed in the given currency |
|
taxCategory |
Tax category |
string |
taxRate |
Applied rate of the tax |
number(float) |
4.14. TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
Name | Description | Schema |
---|---|---|
endDateTime |
End of the time period, using IETC-RFC-3339 format |
string(date-time) |
startDateTime |
Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end |
string(date-time) |