Invoice (v1.0.0)

Represents a bill issued to a customer, detailing charges for products or services.

Overview

The Invoice entity represents a formal request for payment issued by the business to a customer. It details the products, services, quantities, prices, taxes, and total amount due, along with payment terms.

Entity Properties

NameTypeRequiredDescription
invoiceIdUUIDRequiredUnique identifier for the invoice.
customerIdUUIDRequiredIdentifier of the customer being invoiced
orderIdUUIDOptionalIdentifier of the associated order, if applicable.
subscriptionIdUUIDOptionalIdentifier of the associated subscription, if applicable.
invoiceNumberstringRequiredHuman-readable, sequential identifier for the invoice (may have specific format).
issueDateDateRequiredDate the invoice was generated and issued.
dueDateDateRequiredDate by which the payment for the invoice is due.
totalAmountdecimalRequiredThe total amount due on the invoice.
currencystringRequiredCurrency of the invoice amount.
statusstringRequiredCurrent status of the invoice.
billingAddressIdUUIDRequiredIdentifier for the billing address used on this invoice.
lineItemsarrayRequiredList of individual items or services being charged on the invoice.
createdAtDateTimeRequiredTimestamp when the invoice record was created.
paidAtDateTimeOptionalTimestamp when the invoice was marked as paid.

Relationships

  • Customer: An invoice is issued to one Customer.
  • Order/Subscription: An invoice may be related to one or more Orders or a specific Subscription period.
  • Payment: An invoice is settled by one or more Payment transactions.
  • InvoiceLineItem: An invoice contains multiple InvoiceLineItems detailing the charges.
  • BillingProfile: Invoice generation often uses details from the customer’s BillingProfile.

Examples

  • Invoice #INV-00123 issued to Jane Doe for her monthly subscription renewal, due in 15 days.
  • Invoice #INV-00124 issued to Acme Corp for consulting services rendered in the previous month, status Paid.