Structured output invoice Schema
Type: object
Properties
- invoiceNumber
required
- Unique identifier for the invoice
- Type:
string
- invoiceDate
required
- Date the invoice was issued (ISO format)
- Type:
string
- String format must be a "date"
-
dueDate
- Payment due date (ISO format)
- Type:
string
- String format must be a "date"
- billingAddress
required
- Billing address details
- Type:
object
- Properties
- name
required
- Type:
string
- Type:
- street
required
- Type:
string
- Type:
- city
required
- Type:
string
- Type:
-
state
- Type:
string
- Type:
- postalCode
required
- Type:
string
- Type:
- country
required
- Type:
string
- Type:
- name
-
shippingAddress
- Shipping address details
- Type:
object
- Properties
- name
required
- Type:
string
- Type:
- street
required
- Type:
string
- Type:
- city
required
- Type:
string
- Type:
-
state
- Type:
string
- Type:
- postalCode
required
- Type:
string
- Type:
- country
required
- Type:
string
- Type:
- name
- items
required
- List of items included in the invoice
- Type:
array
- Items
- Type:
object
- Properties
- description
required
- Description of the item
- Type:
string
- quantity
required
- Quantity of the item
- Type:
number
- Range: ≥ 1
- unitPrice
required
- Price per unit of the item
- Type:
number
- Range: ≥ 0
- totalPrice
required
- Total price for this item
- Type:
number
- Range: ≥ 0
- description
- subTotal
required
- Subtotal for all items
- Type:
number
- Range: ≥ 0
- tax
required
- Tax details
- Type:
object
- Properties
- rate
required
- Tax rate as a percentage
- Type:
number
- Range: ≥ 0
- amount
required
- Total tax amount
- Type:
number
- Range: ≥ 0
- rate
- total
required
- Total amount due (subtotal + tax)
- Type:
number
- Range: ≥ 0
-
notes
- Additional notes or instructions for the invoice
- Type:
string
- status
required
- Current payment status of the invoice
- Type:
string
- The value is restricted to the following:
- "Paid"
- "Unpaid"
- "Overdue"