openapi: 3.0.0 info: title: API CustomerBill description: >- ## TMF API Reference: TMF 678 - Customer bill Management ### Release: 19.5 - December 2019 The Customer Bill Management API allows to find and retrieve one or several customer bills (also called invoices) produced for a customer. A customer bill is an electronic or paper document produced at the end of the billing process. The customer bill gathers and displays different items (applied customer billing rates generated during the rating and billing processes) to be charged to a customer. It represents a total amount due for all the products during the billing period and all significant information like dates, bill reference... This API provides also operations to find and retrieve the details of applied customer billing rates presented on a customer bill. Finally, this API allows to request in real-time a customer bill creation and to manage this request. ### Resources - customerBill - appliedCustomerBillingRate - customerBillOnDemand - billingCycle ### Operations Customer Bill Management API performs the following operations : - Retrieve a customer bill or a collection of customer bills depending on filter criteria. - Partial update of a customer bill (for administration purposes). - Retrieve an applied customer billing rate or a collection of applied customer billing rates depending on filter criteria. - Create a customer bill on demand request, retrieve one or a collection of customer bill on demand request(s) depending on filter criteria. - Manage notification of events on customer bill and customer bill on demand. Copyright © TM Forum 2018. All Rights Reserved. version: 4.0.0 tags: - name: customerBillOnDemand - name: customerBill - name: appliedCustomerBillingRate - name: events subscription paths: /customerBillOnDemand: get: operationId: listCustomerBillOnDemand summary: List or find CustomerBillOnDemand objects description: This operation list or find CustomerBillOnDemand entities tags: - customerBillOnDemand parameters: - name: fields description: Comma-separated properties to be provided in response required: false in: query schema: type: string - name: offset description: Requested index for start of resources to be provided in response required: false in: query schema: type: integer - name: limit description: Requested number of resources to be provided in response required: false in: query schema: type: integer responses: "200": description: Success headers: X-Result-Count: description: Actual number of items returned in the response body schema: type: integer X-Total-Count: description: Total number of items matching criteria schema: type: integer content: application/json;charset=utf-8: schema: type: array items: $ref: "#/components/schemas/CustomerBillOnDemand" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" post: operationId: createCustomerBillOnDemand summary: Creates a CustomerBillOnDemand description: This operation creates a CustomerBillOnDemand entity. tags: - customerBillOnDemand requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/CustomerBillOnDemand_Create" description: The CustomerBillOnDemand to be created required: true responses: "201": description: Created content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/CustomerBillOnDemand" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "/customerBillOnDemand/{id}": get: operationId: retrieveCustomerBillOnDemand summary: Retrieves a CustomerBillOnDemand by ID description: This operation retrieves a CustomerBillOnDemand entity. Attribute selection is enabled for all first level attributes. tags: - customerBillOnDemand parameters: - name: id description: Identifier of the CustomerBillOnDemand required: true in: path schema: type: string - name: fields description: Comma-separated properties to provide in response required: false in: query schema: type: string responses: "200": description: Success content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/CustomerBillOnDemand" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" /customerBill: get: operationId: listCustomerBill summary: List or find CustomerBill objects description: This operation list or find CustomerBill entities tags: - customerBill parameters: - name: fields description: Comma-separated properties to be provided in response required: false in: query schema: type: string - name: offset description: Requested index for start of resources to be provided in response required: false in: query schema: type: integer - name: limit description: Requested number of resources to be provided in response required: false in: query schema: type: integer responses: "200": description: Success headers: X-Result-Count: description: Actual number of items returned in the response body schema: type: integer X-Total-Count: description: Total number of items matching criteria schema: type: integer content: application/json;charset=utf-8: schema: type: array items: $ref: "#/components/schemas/CustomerBill" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "/customerBill/{id}": get: operationId: retrieveCustomerBill summary: Retrieves a CustomerBill by ID description: This operation retrieves a CustomerBill entity. Attribute selection is enabled for all first level attributes. tags: - customerBill parameters: - name: id description: Identifier of the CustomerBill required: true in: path schema: type: string - name: fields description: Comma-separated properties to provide in response required: false in: query schema: type: string responses: "200": description: Success content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/CustomerBill" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" patch: operationId: patchCustomerBill summary: Updates partially a CustomerBill description: This operation updates partially a CustomerBill entity. tags: - customerBill parameters: - name: id description: Identifier of the CustomerBill required: true in: path schema: type: string requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/CustomerBill_Update" description: The CustomerBill to be updated required: true responses: "200": description: Updated content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/CustomerBill" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" /appliedCustomerBillingRate: get: operationId: listAppliedCustomerBillingRate summary: List or find AppliedCustomerBillingRate objects description: This operation list or find AppliedCustomerBillingRate entities tags: - appliedCustomerBillingRate parameters: - name: fields description: Comma-separated properties to be provided in response required: false in: query schema: type: string - name: offset description: Requested index for start of resources to be provided in response required: false in: query schema: type: integer - name: limit description: Requested number of resources to be provided in response required: false in: query schema: type: integer responses: "200": description: Success headers: X-Result-Count: description: Actual number of items returned in the response body schema: type: integer X-Total-Count: description: Total number of items matching criteria schema: type: integer content: application/json;charset=utf-8: schema: type: array items: $ref: "#/components/schemas/AppliedCustomerBillingRate" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "/appliedCustomerBillingRate/{id}": get: operationId: retrieveAppliedCustomerBillingRate summary: Retrieves a AppliedCustomerBillingRate by ID description: This operation retrieves a AppliedCustomerBillingRate entity. Attribute selection is enabled for all first level attributes. tags: - appliedCustomerBillingRate parameters: - name: id description: Identifier of the AppliedCustomerBillingRate required: true in: path schema: type: string - name: fields description: Comma-separated properties to provide in response required: false in: query schema: type: string responses: "200": description: Success content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/AppliedCustomerBillingRate" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" /hub: post: operationId: registerListener summary: Register a listener description: Sets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. tags: - events subscription requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/EventSubscriptionInput" description: Data containing the callback endpoint to deliver the information required: true responses: "201": description: Subscribed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/EventSubscription" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "/hub/{id}": delete: operationId: unregisterListener summary: Unregister a listener description: Resets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. tags: - events subscription parameters: - name: id required: true in: path description: The id of the registered listener schema: type: string responses: "204": description: Deleted "400": description: Bad request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" servers: - url: https://serverRoot/tmf-api/customerBillManagement/v4 components: schemas: AccountBalance: type: object description: Balances linked to the account required: - amount - balanceType - validFor properties: balanceType: type: string description: "Type of the balance : deposit balance, disputed balance, loyalty balance, receivable balance..." amount: $ref: "#/components/schemas/Money" validFor: $ref: "#/components/schemas/TimePeriod" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name Any: {} AppliedBillingRateCharacteristic: type: object description: An applied billing rate has dynamic characteristics according to the its type (characteristics are based on the service type, line of business or on others parameters) required: - name - value properties: name: type: string description: Name of the characteristic valueType: type: string description: Data type of the value of the characteristic value: $ref: "#/components/schemas/Any" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name AppliedBillingTaxRate: type: object description: The applied billing tax rate represents taxes applied billing rate it refers to. It is calculated during the billing process. properties: taxCategory: type: string description: A categorization of the tax rate taxRate: type: number format: float description: Applied rate taxAmount: $ref: "#/components/schemas/Money" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name AppliedCustomerBillingRate: type: object description: A customer bill displays applied billing rates created before or during the billing process. required: - id properties: id: type: string description: Unique identifier of the customer applied billing rate href: type: string format: uri description: Reference of the customer applied billing rate date: type: string format: date-time description: Creation date of the applied billing rate description: type: string description: Additional data to be displayed on the bill for this customer applied billing rate isBilled: type: boolean description: If isBilled = true then bill should be provided, if false then billingAccount should be provided name: type: string description: Name of the customer applied billing rate type: type: string description: "Type of the applied billing rate : appliedBillingCharge (any kind of charge except taxation charges : recurringCharge, oneTimeCharge, usageCharge), appliedBillingCredit (any kind of credit : rebate or productAlteration) or appliedPenaltyCharge (penalty charges such as late fees, payment rejection fees,...)" appliedTax: type: array items: $ref: "#/components/schemas/AppliedBillingTaxRate" bill: $ref: "#/components/schemas/BillRef" billingAccount: $ref: "#/components/schemas/BillingAccountRef" characteristic: type: array items: $ref: "#/components/schemas/AppliedBillingRateCharacteristic" periodCoverage: $ref: "#/components/schemas/TimePeriod" product: $ref: "#/components/schemas/ProductRef" taxExcludedAmount: $ref: "#/components/schemas/Money" taxIncludedAmount: $ref: "#/components/schemas/Money" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name AppliedPayment: type: object description: The applied payment is the result of lettering process. It enables to assign automatically or manually part of incoming payment amount to a bill. properties: appliedAmount: $ref: "#/components/schemas/Money" payment: $ref: "#/components/schemas/PaymentRef" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name Attachment: type: object description: Complements the description of an element (for instance a product) through video, pictures... properties: id: type: string description: Unique identifier for this particular attachment href: type: string format: uri description: URI for this Attachment attachmentType: type: string description: Attachment type such as video, picture content: type: string description: The actual contents of the attachment object, if embedded, encoded as base64 description: type: string description: A narrative text describing the content of the attachment mimeType: type: string description: Attachment mime type such as extension file for video, picture and document name: type: string description: The name of the attachment url: type: string format: uri description: Uniform Resource Locator, is a web page address (a subset of URI) size: $ref: "#/components/schemas/Quantity" validFor: $ref: "#/components/schemas/TimePeriod" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name AttachmentRef: type: object description: Attachment reference. An attachment complements the description of an element (for instance a product) through video, pictures properties: id: type: string description: Unique-Identifier for this attachment href: type: string format: uri description: URL serving as reference for the attachment resource description: type: string description: A narrative text describing the content of the attachment name: type: string description: Name of the related entity. url: type: string format: uri description: Link to the attachment media/content "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id AttachmentRefOrValue: type: object description: 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 properties: id: type: string description: Unique identifier for this particular attachment href: type: string format: uri description: URI for this Attachment attachmentType: type: string description: Attachment type such as video, picture content: type: string description: The actual contents of the attachment object, if embedded, encoded as base64 description: type: string description: A narrative text describing the content of the attachment mimeType: type: string description: Attachment mime type such as extension file for video, picture and document name: type: string description: The name of the attachment url: type: string format: uri description: Uniform Resource Locator, is a web page address (a subset of URI) size: $ref: "#/components/schemas/Quantity" validFor: $ref: "#/components/schemas/TimePeriod" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. BillRef: type: object description: Bill reference. properties: id: type: string description: Unique-Identifier for this <123> href: type: string format: uri description: URL serving as reference for the resource "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id BillingAccountRef: type: object description: Reference to the billing account in case of not billed item. properties: id: type: string description: Unique-Identifier for this <123> href: type: string format: uri description: URL serving as reference for the resource name: type: string description: Name of the Billingaccount "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id Characteristic: type: object description: Describes a given characteristic of an object or entity through a name/value pair. required: - name - value properties: name: type: string description: Name of the characteristic valueType: type: string description: Data type of the value of the characteristic value: $ref: "#/components/schemas/Any" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name CustomerBill: type: object description: >- 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. properties: id: type: string description: Unique identifier of he bill href: type: string format: uri description: Bill unique reference billDate: type: string format: date-time description: Bill date billNo: type: string description: Bill reference known by the customer or the party and displayed on the bill. Could be different from the id category: type: string description: "Category of the bill produced : normal, duplicate, interim, last, trial customer or credit note for example" lastUpdate: type: string format: date-time description: Date of bill last update nextBillDate: type: string format: date-time description: ). Approximate date of the next bill production given for information (only used for onCycle bill) paymentDueDate: type: string format: date-time description: Date at which the amount due should have been paid runType: type: string description: 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) amountDue: $ref: "#/components/schemas/Money" appliedPayment: type: array items: $ref: "#/components/schemas/AppliedPayment" billDocument: type: array items: $ref: "#/components/schemas/AttachmentRefOrValue" billingAccount: $ref: "#/components/schemas/BillingAccountRef" billingPeriod: $ref: "#/components/schemas/TimePeriod" financialAccount: $ref: "#/components/schemas/FinancialAccountRef" paymentMethod: $ref: "#/components/schemas/PaymentMethodRef" relatedParty: type: array items: $ref: "#/components/schemas/RelatedPartyRef" remainingAmount: $ref: "#/components/schemas/Money" state: $ref: "#/components/schemas/stateValue" taxExcludedAmount: $ref: "#/components/schemas/Money" taxIncludedAmount: $ref: "#/components/schemas/Money" taxItem: type: array items: $ref: "#/components/schemas/TaxItem" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name CustomerBill_Update: type: object description: >- 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. Skipped properties: id,href,amountDue,appliedPayment,billDate,billDocument,billNo,billingAccount,billingPeriod,category,financialAccount,lastUpdate,nextBillDate,paymentDueDate,paymentMethod,relatedParty,remainingAmount,runType,taxExcludedAmount,taxIncludedAmount,taxItem properties: state: $ref: "#/components/schemas/stateValue" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name CustomerBillOnDemand: type: object description: This resource is used to manage the creation request of a customer bill in real-time (on demand). properties: id: type: string description: Unique identifier of the customer bill on demand request given by the server href: type: string format: uri description: Reference of the customer bill on demand request description: type: string description: Additional data describing the customer bill on demand request lastUpdate: type: string description: The last date time when the customer bill on demand has been updated name: type: string description: Friendly name to identify the customer bill on demand request billingAccount: $ref: "#/components/schemas/BillingAccountRef" customerBill: $ref: "#/components/schemas/BillRef" relatedParty: $ref: "#/components/schemas/RelatedPartyRef" state: $ref: "#/components/schemas/StateValues" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name CustomerBillOnDemand_Create: type: object description: >- This resource is used to manage the creation request of a customer bill in real-time (on demand). Skipped properties: id,href properties: description: type: string description: Additional data describing the customer bill on demand request lastUpdate: type: string description: The last date time when the customer bill on demand has been updated name: type: string description: Friendly name to identify the customer bill on demand request billingAccount: $ref: "#/components/schemas/BillingAccountRef" customerBill: $ref: "#/components/schemas/BillRef" relatedParty: $ref: "#/components/schemas/RelatedPartyRef" state: $ref: "#/components/schemas/StateValues" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name EntityRef: type: object description: Entity reference schema to be use for all entityRef class. properties: id: type: string description: Unique identifier of a related entity. href: type: string format: uri description: Reference of the related entity. name: type: string description: Name of the related entity. "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id FinancialAccountRef: type: object description: 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. properties: id: type: string description: Unique identifier of the account href: type: string format: uri description: Unique reference of the account name: type: string description: Name of the account accountBalance: type: array items: $ref: "#/components/schemas/AccountBalance" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id Money: type: object description: A base / value business entity used to represent money properties: unit: type: string description: Currency (ISO4217 norm uses 3 letters to define the currency) value: type: number format: float description: A positive floating point number PaymentMethodRef: type: object description: PaymentMethod reference. A payment method defines a specific mean of payment (e.g direct debit). properties: id: type: string description: Unique identifier of the payment mean href: type: string format: uri description: Reference of the payment mean name: type: string description: Name of the payment mean "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id PaymentRef: type: object description: 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. properties: id: type: string description: Unique identifier of a related entity. href: type: string format: uri description: Reference of the related entity. name: type: string description: A name for the payment "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id ProductRef: type: object properties: id: type: string description: Unique identifier of a related entity. href: type: string format: uri description: Reference of the related entity. name: type: string description: Name of the related entity. "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id Quantity: type: object description: An amount in a given unit properties: amount: default: 1 type: number format: float description: Numeric value in a given unit units: type: string description: Unit Reference: type: object description: General Referencing Resource Schema properties: id: type: string description: Unique-Identifier for this <123> href: type: string format: uri description: URL serving as reference for the resource "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. RelatedPartyRef: type: object description: RelatedParty reference. A related party defines party or party role linked to a specific entity. properties: id: type: string description: Unique identifier of a related party href: type: string format: uri description: Reference of the related party, could be a party reference or a party role reference name: type: string description: Name of the related party role: type: string description: Role of the related party. "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name "@referredType": type: string description: The actual type of the target instance when needed for disambiguation. required: - id StateValues: type: string description: "" enum: - inProgress - rejected - done - terminatedWithError TaxItem: type: object description: A tax item is created for each tax rate and tax type used in the bill. properties: taxCategory: type: string description: Tax category taxRate: type: number format: float description: Applied rate of the tax taxAmount: $ref: "#/components/schemas/Money" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name TimePeriod: type: object description: A period of time, either as a deadline (endDateTime only) a startDateTime only, or both properties: endDateTime: type: string format: date-time description: End of the time period, using IETC-RFC-3339 format startDateTime: type: string format: date-time description: Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end stateValue: type: string description: "" enum: - new - onHold - validated - sent - partiallyPaid - settled EventSubscription: type: object description: Sets the communication endpoint address the service instance must use to deliver notification information required: - id - callback properties: id: type: string description: Id of the listener callback: type: string description: The callback being registered. query: type: string description: additional data to be passed EventSubscriptionInput: type: object description: Sets the communication endpoint address the service instance must use to deliver notification information required: - callback properties: callback: type: string description: The callback being registered. query: type: string description: additional data to be passed Error: description: Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx) type: object required: - code - reason properties: code: type: string description: Application relevant detail, defined in the API or a common list. reason: type: string description: Explanation of the reason for the error which can be shown to a client user. message: type: string description: More details and corrective actions related to the error which can be shown to a client user. status: type: string description: HTTP Error code extension referenceError: type: string format: uri description: URI of documentation describing the error. "@baseType": type: string description: When sub-classing, this defines the super-class. "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name.