1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/openapi/components/schemas/quote.yaml
2023-03-19 11:15:52 +11:00

219 lines
7.9 KiB
YAML

Quote:
properties:
id:
description: 'The unique hashed identifier for the quote'
type: string
example: Opnel5aKBz
user_id:
description: 'The unique hashed identifier for the user who created the quote'
type: string
example: ''
assigned_user_id:
description: 'The unique hashed identifier for the user assigned to the quote'
type: string
example: ''
company_id:
description: 'The unique hashed identifier for the company associated with the quote'
type: string
example: ''
client_id:
description: 'The unique hashed identifier for the client associated with the quote'
type: string
example: ''
status_id:
description: 'The status of the quote represented by a unique identifier'
type: string
example: ''
number:
description: 'The unique alpha-numeric quote number for the quote per company'
type: string
example: QUOTE_101
po_number:
description: 'The purchase order number associated with the quote'
type: string
example: PO-1234
terms:
description: 'The terms and conditions for the quote'
type: string
example: 'These are some quote terms. Valid for 14 days.'
public_notes:
description: 'Publicly visible notes associated with the quote'
type: string
example: 'These are public notes which the client may see'
private_notes:
description: 'Privately visible notes associated with the quote, not disclosed to the client'
type: string
example: 'These are private notes, not to be disclosed to the client'
footer:
description: 'The footer text of the quote'
type: string
example: 'The text goes in the footer of the quote'
custom_value1:
description: 'First custom value field for additional information'
type: string
example: 'A custom value'
custom_value2:
description: 'Second custom value field for additional information'
type: string
example: 'A custom value'
custom_value3:
description: 'Third custom value field for additional information'
type: string
example: 'A custom value'
custom_value4:
description: 'Fourth custom value field for additional information'
type: string
example: 'A custom value'
tax_name1:
description: 'The name of the first tax applied to the quote'
type: string
example: GST
tax_name2:
description: 'The name of the second tax applied to the quote'
type: string
example: VAT
tax_rate1:
description: 'The rate of the first tax applied to the quote'
type: number
format: float
example: 10.00
tax_rate2:
description: 'The rate of the second tax applied to the quote'
type: number
format: float
example: 10.00
tax_name3:
description: 'The name of the third tax applied to the quote'
type: string
example: ''
tax_rate3:
description: 'The rate of the third tax applied to the quote'
type: number
format: float
example: 10.00
total_taxes:
description: 'The total amount of taxes for the quote'
type: number
format: float
example: 10.00
line_items:
type: array
description: 'An array of objects which define the line items of the quote'
items:
$ref: '#/components/schemas/InvoiceItem'
amount:
description: 'The total amount of the quote before taxes and discounts'
type: number
format: float
example: 10.00
balance:
description: 'The balance due for the quote after accounting for payments'
type: number
format: float
example: 10.00
paid_to_date:
description: 'The total amount paid on the quote so far'
type: number
format: float
example: 10.00
discount:
description: 'The discount amount or percentage applied to the quote'
type: number
format: float
example: 10.00
partial:
description: 'The partial or deposit amount for the quote'
type: number
format: float
example: 10.00
is_amount_discount:
description: 'Boolean flag indicating if the discount is a fixed amount or a percentage'
type: boolean
example: true
is_deleted:
description: 'Boolean flag indicating if the quote has been deleted'
type: boolean
example: false
uses_inclusive_taxes:
description: 'Boolean flag indicating if the taxes used are inclusive or exclusive'
type: boolean
example: true
date:
description: 'The date the quote was created'
type: string
format: date
example: '1994-07-30'
last_sent_date:
description: 'The last date the quote was sent to the client'
type: string
format: date
example: '1994-07-30'
next_send_date:
description: 'The next scheduled date for sending a reminder for the quote'
type: string
format: date
example: '1994-07-30'
partial_due_date:
description: 'The due date for the partial or deposit amount'
type: string
format: date
example: '1994-07-30'
due_date:
description: 'The due date for the total amount of the quote'
type: string
format: date
example: '1994-07-30'
settings:
$ref: '#/components/schemas/CompanySettings'
last_viewed:
description: 'The timestamp of the last time the quote was viewed'
type: number
format: integer
example: 1434342123
updated_at:
description: 'The timestamp of the last update to the quote'
type: number
format: integer
example: 1434342123
archived_at:
description: 'The timestamp of when the quote was archived'
type: number
format: integer
example: 1434342123
custom_surcharge1:
description: 'First custom surcharge amount for the quote'
type: number
format: float
example: 10.00
custom_surcharge2:
description: 'Second custom surcharge amount for the quote'
type: number
format: float
example: 10.00
custom_surcharge3:
description: 'Third custom surcharge amount for the quote'
type: number
format: float
example: 10.00
custom_surcharge4:
description: 'Fourth custom surcharge amount for the quote'
type: number
format: float
example: 10.00
custom_surcharge_tax1:
description: 'Boolean flag indicating if taxes are charged on the first custom surcharge amount'
type: boolean
example: true
custom_surcharge_tax2:
description: 'Boolean flag indicating if taxes are charged on the second custom surcharge amount'
type: boolean
example: true
custom_surcharge_tax3:
description: 'Boolean flag indicating if taxes are charged on the third custom surcharge amount'
type: boolean
example: true
custom_surcharge_tax4:
description: 'Boolean flag indicating if taxes are charged on the fourth custom surcharge amount'
type: boolean
example: true
type: object