Fixes for openapi spec

This commit is contained in:
David Bomba 2024-11-17 21:48:33 +11:00
parent 34064f8b7c
commit 9817158076
3 changed files with 1794 additions and 1723 deletions

View File

@ -1,4 +1,4 @@
openapi: 3.0.0
openapi: 3.0.1
info:
title: 'Invoice Ninja API Reference.'
description: |
@ -71,7 +71,8 @@ info:
license:
name: 'Elastic License'
url: 'https://www.elastic.co/licensing/elastic-license'
version: 5.10.31
version: 5.10.53
servers:
- url: 'https://demo.invoiceninja.com'
description: |
@ -17992,13 +17993,14 @@ components:
- color
CompanySettings:
type: object
required:
- currency_id
properties:
currency_id:
description: "The default currency id"
type: string
example: true
example: "1"
timezone_id:
description: "The timezone id"
type: string
@ -18022,7 +18024,7 @@ components:
payment_terms:
description: "-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days"
type: integer
example: "1"
example: 1
company_gateway_ids:
description: "A commad separate list of available gateways"
type: string
@ -18047,7 +18049,7 @@ components:
description: "The default task rate"
type: number
format: float
example: "10.00"
example: 10.00
send_reminders:
description: "Toggles whether reminders are sent"
type: boolean
@ -18059,11 +18061,13 @@ components:
email_style:
description: "options include plain,light,dark,custom"
type: string
example: light
enum: [plain, light, dark, custom]
example: "light"
reply_to_email:
description: "The reply to email address"
type: string
example: email@gmail.com
format: email
example: "email@gmail.com"
bcc_email:
description: "A comma separate list of BCC emails"
type: string
@ -18081,13 +18085,15 @@ components:
type: string
example: "<HTML></HTML>"
counter_number_applied:
description: "enum when the invoice number counter is set, ie when_saved, when_sent, when_paid"
description: "enum when the invoice number counter is set"
type: string
example: when_sent
enum: [when_saved, when_sent, when_paid]
example: "when_sent"
quote_number_applied:
description: "enum when the quote number counter is set, ie when_saved, when_sent"
description: "enum when the quote number counter is set"
type: string
example: when_sent
enum: [when_saved, when_sent]
example: "when_sent"
custom_message_dashboard:
description: "A custom message which is displayed on the dashboard"
type: string
@ -18106,9 +18112,9 @@ components:
example: "Please approve quote"
lock_invoices:
description: "Toggles whether invoices are locked once sent and cannot be modified further"
type: enum
type: string
enum: [off, when_sent, when_paid, end_of_month]
example: 'off'
example: "off"
auto_archive_invoice:
description: "Toggles whether a invoice is archived immediately following payment"
type: boolean
@ -18128,7 +18134,7 @@ components:
translations:
description: "JSON payload of customized translations"
type: object
example: ""
example: {}
task_number_pattern:
description: "Allows customisation of the task number pattern"
type: string
@ -18136,11 +18142,11 @@ components:
task_number_counter:
description: "The incrementing counter for tasks"
type: integer
example: "1"
example: 1
reminder_send_time:
description: "Time from UTC +0 when the email will be sent to the client"
type: integer
example: "32400"
example: 32400
expense_number_pattern:
description: "Allows customisation of the expense number pattern"
type: string
@ -18148,7 +18154,7 @@ components:
expense_number_counter:
description: "The incrementing counter for expenses"
type: integer
example: "1"
example: 1
vendor_number_pattern:
description: "Allows customisation of the vendor number pattern"
type: string
@ -18156,7 +18162,7 @@ components:
vendor_number_counter:
description: "The incrementing counter for vendors"
type: integer
example: "1"
example: 1
ticket_number_pattern:
description: "Allows customisation of the ticket number pattern"
type: string
@ -18164,7 +18170,7 @@ components:
ticket_number_counter:
description: "The incrementing counter for tickets"
type: integer
example: "1"
example: 1
payment_number_pattern:
description: "Allows customisation of the payment number pattern"
type: string
@ -18172,7 +18178,7 @@ components:
payment_number_counter:
description: "The incrementing counter for payments"
type: integer
example: "1"
example: 1
invoice_number_pattern:
description: "Allows customisation of the invoice number pattern"
type: string
@ -18180,7 +18186,7 @@ components:
invoice_number_counter:
description: "The incrementing counter for invoices"
type: integer
example: "1"
example: 1
quote_number_pattern:
description: "Allows customisation of the quote number pattern"
type: string
@ -18188,7 +18194,7 @@ components:
quote_number_counter:
description: "The incrementing counter for quotes"
type: integer
example: "1"
example: 1
client_number_pattern:
description: "Allows customisation of the client number pattern"
type: string
@ -18196,7 +18202,7 @@ components:
client_number_counter:
description: "The incrementing counter for clients"
type: integer
example: "1"
example: 1
credit_number_pattern:
description: "Allows customisation of the credit number pattern"
type: string
@ -18204,23 +18210,24 @@ components:
credit_number_counter:
description: "The incrementing counter for credits"
type: integer
example: "1"
example: 1
recurring_invoice_number_prefix:
description: "This string is prepended to the recurring invoice number"
type: string
example: R
example: "R"
reset_counter_frequency_id:
description: "CONSTANT which is used to apply the frequency which the counters are reset"
type: integer
example: "1"
example: 1
reset_counter_date:
description: "The explicit date which is used to reset counters"
type: string
format: date
example: "2019-01-01"
counter_padding:
description: "Pads the counter with leading zeros"
type: integer
example: "1"
example: 1
shared_invoice_quote_counter:
description: "Flags whether to share the counter for invoices and quotes"
type: boolean
@ -18247,8 +18254,8 @@ components:
example: "Quote Terms are..."
invoice_taxes:
description: "The number of Taxes that can be applied to the invoice"
type: number
example: "1"
type: integer
example: 1
invoice_design_id:
description: "The default design id (invoice, quote etc)"
type: string
@ -18268,27 +18275,30 @@ components:
tax_rate1:
description: "The tax rate (float)"
type: number
example: "10"
format: float
example: 10
tax_name1:
description: "The tax name"
type: string
example: GST
example: "GST"
tax_rate2:
description: "The tax rate (float)"
type: number
example: "10"
format: float
example: 10
tax_name2:
description: "The tax name"
type: string
example: GST
example: "GST"
tax_rate3:
description: "The tax rate (float)"
type: number
example: "10"
format: float
example: 10
tax_name3:
description: "The tax name"
type: string
example: GST
example: "GST"
payment_type_id:
description: "The default payment type id"
type: string
@ -18302,14 +18312,14 @@ components:
type: string
example: "A default email footer"
email_sending_method:
description: "The email driver to use to send email, options include default, gmail, client_postmark, client_mailgun, client_brevo, office365"
description: "The email driver to use to send email"
type: string
enum: [default, gmail, office365, client_postmark, client_mailgun, mailgun, client_brevo]
example: 'default'
example: "default"
gmail_sending_user_id:
description: "The hashed_id of the user account to send email from"
type: string
example: F76sd34D
example: "F76sd34D"
email_subject_invoice:
description: ""
type: string
@ -18392,12 +18402,13 @@ components:
example: "Acme Co"
company_logo:
description: "The company logo file"
type: object
example: logo.png
type: string
example: "logo.png"
website:
description: "The company website URL"
type: string
example: www.acme.com
format: uri
example: "www.acme.com"
address1:
description: "The company address line 1"
type: string
@ -18409,11 +18420,11 @@ components:
city:
description: "The company city"
type: string
example: Sydney
example: "Sydney"
state:
description: "The company state"
type: string
example: Florisa
example: "Florida"
postal_code:
description: "The company zip/postal code"
type: string
@ -18421,11 +18432,12 @@ components:
phone:
description: "The company phone"
type: string
example: 555-213-3948
example: "555-213-3948"
email:
description: "The company email"
type: string
example: joe@acme.co
format: email
example: "joe@acme.co"
country_id:
description: "The country ID"
type: string
@ -18437,19 +18449,19 @@ components:
page_size:
description: "The default page size"
type: string
example: A4
example: "A4"
font_size:
description: "The font size"
type: number
example: "9"
example: 9
primary_font:
description: "The primary font"
type: string
example: roboto
example: "roboto"
secondary_font:
description: "The secondary font"
type: string
example: roboto
example: "roboto"
hide_paid_to_date:
description: "Flags whether to hide the paid to date field"
type: boolean
@ -18540,39 +18552,45 @@ components:
example: false
num_days_reminder1:
description: "The Reminder interval"
type: number
example: "9"
type: integer
example: 9
num_days_reminder2:
description: "The Reminder interval"
type: number
example: "9"
type: integer
example: 9
num_days_reminder3:
description: "The Reminder interval"
type: number
example: "9"
type: integer
example: 9
schedule_reminder1:
description: "(enum: after_invoice_date, before_due_date, after_due_date)"
type: string
example: after_invoice_date
enum: [after_invoice_date, before_due_date, after_due_date]
example: "after_invoice_date"
schedule_reminder2:
description: "(enum: after_invoice_date, before_due_date, after_due_date)"
type: string
example: after_invoice_date
enum: [after_invoice_date, before_due_date, after_due_date]
example: "after_invoice_date"
schedule_reminder3:
description: "(enum: after_invoice_date, before_due_date, after_due_date)"
type: string
example: after_invoice_date
enum: [after_invoice_date, before_due_date, after_due_date]
example: "after_invoice_date"
late_fee_amount1:
description: "The late fee amount for reminder 1"
type: number
format: float
example: 10
late_fee_amount2:
description: "The late fee amount for reminder 2"
type: number
format: float
example: 20
late_fee_amount3:
description: "The late fee amount for reminder 2"
type: number
format: float
example: 100
endless_reminder_frequency_id:
description: "The frequency id of the endless reminder"
@ -18601,7 +18619,8 @@ components:
mailgun_endpoint:
description: "The mailgun endpoint - used to determine whether US or EU endpoints are used"
type: string
example: "api.mailgun.net or api.eu.mailgun.net"
enum: ["api.mailgun.net", "api.eu.mailgun.net"]
example: "api.mailgun.net"
client_initiated_payments:
description: "Determines if clients can initiate payments directly from the client portal"
type: boolean
@ -18609,6 +18628,7 @@ components:
client_initiated_payments_minimum:
description: "The minimum amount a client can pay"
type: number
format: float
example: 10
sync_invoice_quote_columns:
description: "Determines if invoice and quote columns are synced for the PDF rendering, or if they use their own columns"
@ -18629,6 +18649,7 @@ components:
custom_sending_email:
description: "When using Mailgun or Postmark, the FROM email address can be customized using this setting."
type: string
format: email
example: "bob@gmail.com"
show_paid_stamp:
description: "Determines if the PAID stamp is shown on the invoice"
@ -18640,7 +18661,9 @@ components:
example: false
company_logo_size:
description: "The size of the company logo on the PDF - percentage value between 0 and 100"
type: number
type: integer
minimum: 0
maximum: 100
example: 100
show_email_footer:
description: "Determines if the email footer is shown on emails"
@ -18649,6 +18672,7 @@ components:
email_alignment:
description: "The alignment of the email body text, options include left / center / right"
type: string
enum: [left, center, right]
example: "left"
auto_bill_standard_invoices:
description: "Determines if standard invoices are automatically billed when they are created or due"
@ -18716,11 +18740,12 @@ components:
example: "PO-000000"
purchase_order_number_counter:
description: "The counter for purchase order numbers"
type: number
type: integer
example: 1
page_numbering_alignment:
description: "The alignment for page numbering: options include left / center / right"
type: string
enum: [left, center, right]
example: "left"
page_numbering:
description: "Determines if page numbering is enabled on Document PDFs"
@ -18741,6 +18766,8 @@ components:
entity_send_time:
description: "The time that emails are sent. The time is localized to the clients locale, integer values from 1 - 24"
type: integer
minimum: 1
maximum: 24
example: 9
shared_invoice_credit_counter:
description: "Determines if the invoice and credit counter are shared"
@ -18768,23 +18795,27 @@ components:
example: "R-000000"
recurring_invoice_number_counter:
description: "The counter for recurring invoice numbers"
type: number
type: integer
example: 1
client_portal_under_payment_minimum:
description: "The minimum payment payment"
type: number
format: float
example: 10
auto_bill_date:
description: "Determines when the invoices are auto billed, options are on_send_date (when the invoice is sent) or on_due_date (when the invoice is due))"
description: "Determines when the invoices are auto billed"
type: string
enum: [on_send_date, on_due_date]
example: "on_send_date"
primary_color:
description: "The primary color for the client portal / document highlights"
type: string
pattern: "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
example: "#ffffff"
secondary_color:
description: "The secondary color for the client portal / document highlights"
type: string
pattern: "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
example: "#ffffff"
client_portal_allow_under_payment:
description: "Determines if clients can pay invoices under the invoice amount due"
@ -18795,8 +18826,9 @@ components:
type: boolean
example: false
auto_bill:
description: "Determines how autobilling is applied for recurring invoices. off (no auto billed), always (always auto bill), optin (The user must opt in to auto billing), optout (The user must opt out of auto billing"
description: "Determines how autobilling is applied for recurring invoices"
type: string
enum: [off, always, optin, optout]
example: "off"
client_portal_terms:
description: "The terms which are displayed on the client portal"
@ -18817,10 +18849,12 @@ components:
late_fee_endless_percent:
description: "The late fee percentage for endless late fees"
type: number
format: float
example: 10
late_fee_endless_amount:
description: "The late fee amount for endless late fees"
type: number
format: float
example: 10
auto_email_invoice:
description: "Determines if invoices are automatically emailed when they are created"
@ -18835,16 +18869,17 @@ components:
type: string
example: "individual"
valid_until:
description: 'Default validity period for quotes'
description: "Default validity period for quotes"
type: string
example: "30 days"
credit_terms:
description: 'Default terms for credit notes'
description: "Default terms for credit notes"
type: string
example: "Credit note terms"
credit_footer:
description: 'Default footer for credit notes'
description: "Default footer for credit notes"
type: string
type: object
example: "Credit note footer"
Design:
properties:
id:

View File

@ -1,11 +1,12 @@
CompanySettings:
type: object
required:
- currency_id
properties:
currency_id:
description: "The default currency id"
type: string
example: true
example: "1"
timezone_id:
description: "The timezone id"
type: string
@ -29,7 +30,7 @@
payment_terms:
description: "-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days"
type: integer
example: "1"
example: 1
company_gateway_ids:
description: "A commad separate list of available gateways"
type: string
@ -54,7 +55,7 @@
description: "The default task rate"
type: number
format: float
example: "10.00"
example: 10.00
send_reminders:
description: "Toggles whether reminders are sent"
type: boolean
@ -66,11 +67,13 @@
email_style:
description: "options include plain,light,dark,custom"
type: string
example: light
enum: [plain, light, dark, custom]
example: "light"
reply_to_email:
description: "The reply to email address"
type: string
example: email@gmail.com
format: email
example: "email@gmail.com"
bcc_email:
description: "A comma separate list of BCC emails"
type: string
@ -88,13 +91,15 @@
type: string
example: "<HTML></HTML>"
counter_number_applied:
description: "enum when the invoice number counter is set, ie when_saved, when_sent, when_paid"
description: "enum when the invoice number counter is set"
type: string
example: when_sent
enum: [when_saved, when_sent, when_paid]
example: "when_sent"
quote_number_applied:
description: "enum when the quote number counter is set, ie when_saved, when_sent"
description: "enum when the quote number counter is set"
type: string
example: when_sent
enum: [when_saved, when_sent]
example: "when_sent"
custom_message_dashboard:
description: "A custom message which is displayed on the dashboard"
type: string
@ -113,9 +118,9 @@
example: "Please approve quote"
lock_invoices:
description: "Toggles whether invoices are locked once sent and cannot be modified further"
type: enum
type: string
enum: [off, when_sent, when_paid, end_of_month]
example: 'off'
example: "off"
auto_archive_invoice:
description: "Toggles whether a invoice is archived immediately following payment"
type: boolean
@ -135,7 +140,7 @@
translations:
description: "JSON payload of customized translations"
type: object
example: ""
example: {}
task_number_pattern:
description: "Allows customisation of the task number pattern"
type: string
@ -143,11 +148,11 @@
task_number_counter:
description: "The incrementing counter for tasks"
type: integer
example: "1"
example: 1
reminder_send_time:
description: "Time from UTC +0 when the email will be sent to the client"
type: integer
example: "32400"
example: 32400
expense_number_pattern:
description: "Allows customisation of the expense number pattern"
type: string
@ -155,7 +160,7 @@
expense_number_counter:
description: "The incrementing counter for expenses"
type: integer
example: "1"
example: 1
vendor_number_pattern:
description: "Allows customisation of the vendor number pattern"
type: string
@ -163,7 +168,7 @@
vendor_number_counter:
description: "The incrementing counter for vendors"
type: integer
example: "1"
example: 1
ticket_number_pattern:
description: "Allows customisation of the ticket number pattern"
type: string
@ -171,7 +176,7 @@
ticket_number_counter:
description: "The incrementing counter for tickets"
type: integer
example: "1"
example: 1
payment_number_pattern:
description: "Allows customisation of the payment number pattern"
type: string
@ -179,7 +184,7 @@
payment_number_counter:
description: "The incrementing counter for payments"
type: integer
example: "1"
example: 1
invoice_number_pattern:
description: "Allows customisation of the invoice number pattern"
type: string
@ -187,7 +192,7 @@
invoice_number_counter:
description: "The incrementing counter for invoices"
type: integer
example: "1"
example: 1
quote_number_pattern:
description: "Allows customisation of the quote number pattern"
type: string
@ -195,7 +200,7 @@
quote_number_counter:
description: "The incrementing counter for quotes"
type: integer
example: "1"
example: 1
client_number_pattern:
description: "Allows customisation of the client number pattern"
type: string
@ -203,7 +208,7 @@
client_number_counter:
description: "The incrementing counter for clients"
type: integer
example: "1"
example: 1
credit_number_pattern:
description: "Allows customisation of the credit number pattern"
type: string
@ -211,23 +216,24 @@
credit_number_counter:
description: "The incrementing counter for credits"
type: integer
example: "1"
example: 1
recurring_invoice_number_prefix:
description: "This string is prepended to the recurring invoice number"
type: string
example: R
example: "R"
reset_counter_frequency_id:
description: "CONSTANT which is used to apply the frequency which the counters are reset"
type: integer
example: "1"
example: 1
reset_counter_date:
description: "The explicit date which is used to reset counters"
type: string
format: date
example: "2019-01-01"
counter_padding:
description: "Pads the counter with leading zeros"
type: integer
example: "1"
example: 1
shared_invoice_quote_counter:
description: "Flags whether to share the counter for invoices and quotes"
type: boolean
@ -254,8 +260,8 @@
example: "Quote Terms are..."
invoice_taxes:
description: "The number of Taxes that can be applied to the invoice"
type: number
example: "1"
type: integer
example: 1
invoice_design_id:
description: "The default design id (invoice, quote etc)"
type: string
@ -275,27 +281,30 @@
tax_rate1:
description: "The tax rate (float)"
type: number
example: "10"
format: float
example: 10
tax_name1:
description: "The tax name"
type: string
example: GST
example: "GST"
tax_rate2:
description: "The tax rate (float)"
type: number
example: "10"
format: float
example: 10
tax_name2:
description: "The tax name"
type: string
example: GST
example: "GST"
tax_rate3:
description: "The tax rate (float)"
type: number
example: "10"
format: float
example: 10
tax_name3:
description: "The tax name"
type: string
example: GST
example: "GST"
payment_type_id:
description: "The default payment type id"
type: string
@ -309,14 +318,14 @@
type: string
example: "A default email footer"
email_sending_method:
description: "The email driver to use to send email, options include default, gmail, client_postmark, client_mailgun, client_brevo, office365"
description: "The email driver to use to send email"
type: string
enum: [default, gmail, office365, client_postmark, client_mailgun, mailgun, client_brevo]
example: 'default'
example: "default"
gmail_sending_user_id:
description: "The hashed_id of the user account to send email from"
type: string
example: F76sd34D
example: "F76sd34D"
email_subject_invoice:
description: ""
type: string
@ -399,12 +408,13 @@
example: "Acme Co"
company_logo:
description: "The company logo file"
type: object
example: logo.png
type: string
example: "logo.png"
website:
description: "The company website URL"
type: string
example: www.acme.com
format: uri
example: "www.acme.com"
address1:
description: "The company address line 1"
type: string
@ -416,11 +426,11 @@
city:
description: "The company city"
type: string
example: Sydney
example: "Sydney"
state:
description: "The company state"
type: string
example: Florisa
example: "Florida"
postal_code:
description: "The company zip/postal code"
type: string
@ -428,11 +438,12 @@
phone:
description: "The company phone"
type: string
example: 555-213-3948
example: "555-213-3948"
email:
description: "The company email"
type: string
example: joe@acme.co
format: email
example: "joe@acme.co"
country_id:
description: "The country ID"
type: string
@ -444,19 +455,19 @@
page_size:
description: "The default page size"
type: string
example: A4
example: "A4"
font_size:
description: "The font size"
type: number
example: "9"
example: 9
primary_font:
description: "The primary font"
type: string
example: roboto
example: "roboto"
secondary_font:
description: "The secondary font"
type: string
example: roboto
example: "roboto"
hide_paid_to_date:
description: "Flags whether to hide the paid to date field"
type: boolean
@ -547,39 +558,45 @@
example: false
num_days_reminder1:
description: "The Reminder interval"
type: number
example: "9"
type: integer
example: 9
num_days_reminder2:
description: "The Reminder interval"
type: number
example: "9"
type: integer
example: 9
num_days_reminder3:
description: "The Reminder interval"
type: number
example: "9"
type: integer
example: 9
schedule_reminder1:
description: "(enum: after_invoice_date, before_due_date, after_due_date)"
type: string
example: after_invoice_date
enum: [after_invoice_date, before_due_date, after_due_date]
example: "after_invoice_date"
schedule_reminder2:
description: "(enum: after_invoice_date, before_due_date, after_due_date)"
type: string
example: after_invoice_date
enum: [after_invoice_date, before_due_date, after_due_date]
example: "after_invoice_date"
schedule_reminder3:
description: "(enum: after_invoice_date, before_due_date, after_due_date)"
type: string
example: after_invoice_date
enum: [after_invoice_date, before_due_date, after_due_date]
example: "after_invoice_date"
late_fee_amount1:
description: "The late fee amount for reminder 1"
type: number
format: float
example: 10
late_fee_amount2:
description: "The late fee amount for reminder 2"
type: number
format: float
example: 20
late_fee_amount3:
description: "The late fee amount for reminder 2"
type: number
format: float
example: 100
endless_reminder_frequency_id:
description: "The frequency id of the endless reminder"
@ -608,7 +625,8 @@
mailgun_endpoint:
description: "The mailgun endpoint - used to determine whether US or EU endpoints are used"
type: string
example: "api.mailgun.net or api.eu.mailgun.net"
enum: ["api.mailgun.net", "api.eu.mailgun.net"]
example: "api.mailgun.net"
client_initiated_payments:
description: "Determines if clients can initiate payments directly from the client portal"
type: boolean
@ -616,6 +634,7 @@
client_initiated_payments_minimum:
description: "The minimum amount a client can pay"
type: number
format: float
example: 10
sync_invoice_quote_columns:
description: "Determines if invoice and quote columns are synced for the PDF rendering, or if they use their own columns"
@ -636,6 +655,7 @@
custom_sending_email:
description: "When using Mailgun or Postmark, the FROM email address can be customized using this setting."
type: string
format: email
example: "bob@gmail.com"
show_paid_stamp:
description: "Determines if the PAID stamp is shown on the invoice"
@ -647,7 +667,9 @@
example: false
company_logo_size:
description: "The size of the company logo on the PDF - percentage value between 0 and 100"
type: number
type: integer
minimum: 0
maximum: 100
example: 100
show_email_footer:
description: "Determines if the email footer is shown on emails"
@ -656,6 +678,7 @@
email_alignment:
description: "The alignment of the email body text, options include left / center / right"
type: string
enum: [left, center, right]
example: "left"
auto_bill_standard_invoices:
description: "Determines if standard invoices are automatically billed when they are created or due"
@ -723,11 +746,12 @@
example: "PO-000000"
purchase_order_number_counter:
description: "The counter for purchase order numbers"
type: number
type: integer
example: 1
page_numbering_alignment:
description: "The alignment for page numbering: options include left / center / right"
type: string
enum: [left, center, right]
example: "left"
page_numbering:
description: "Determines if page numbering is enabled on Document PDFs"
@ -748,6 +772,8 @@
entity_send_time:
description: "The time that emails are sent. The time is localized to the clients locale, integer values from 1 - 24"
type: integer
minimum: 1
maximum: 24
example: 9
shared_invoice_credit_counter:
description: "Determines if the invoice and credit counter are shared"
@ -775,23 +801,27 @@
example: "R-000000"
recurring_invoice_number_counter:
description: "The counter for recurring invoice numbers"
type: number
type: integer
example: 1
client_portal_under_payment_minimum:
description: "The minimum payment payment"
type: number
format: float
example: 10
auto_bill_date:
description: "Determines when the invoices are auto billed, options are on_send_date (when the invoice is sent) or on_due_date (when the invoice is due))"
description: "Determines when the invoices are auto billed"
type: string
enum: [on_send_date, on_due_date]
example: "on_send_date"
primary_color:
description: "The primary color for the client portal / document highlights"
type: string
pattern: "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
example: "#ffffff"
secondary_color:
description: "The secondary color for the client portal / document highlights"
type: string
pattern: "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
example: "#ffffff"
client_portal_allow_under_payment:
description: "Determines if clients can pay invoices under the invoice amount due"
@ -802,8 +832,9 @@
type: boolean
example: false
auto_bill:
description: "Determines how autobilling is applied for recurring invoices. off (no auto billed), always (always auto bill), optin (The user must opt in to auto billing), optout (The user must opt out of auto billing"
description: "Determines how autobilling is applied for recurring invoices"
type: string
enum: [off, always, optin, optout]
example: "off"
client_portal_terms:
description: "The terms which are displayed on the client portal"
@ -824,10 +855,12 @@
late_fee_endless_percent:
description: "The late fee percentage for endless late fees"
type: number
format: float
example: 10
late_fee_endless_amount:
description: "The late fee amount for endless late fees"
type: number
format: float
example: 10
auto_email_invoice:
description: "Determines if invoices are automatically emailed when they are created"
@ -842,12 +875,14 @@
type: string
example: "individual"
valid_until:
description: 'Default validity period for quotes'
description: "Default validity period for quotes"
type: string
example: "30 days"
credit_terms:
description: 'Default terms for credit notes'
description: "Default terms for credit notes"
type: string
example: "Credit note terms"
credit_footer:
description: 'Default footer for credit notes'
description: "Default footer for credit notes"
type: string
type: object
example: "Credit note footer"

View File

@ -1,4 +1,4 @@
openapi: 3.0.0
openapi: 3.0.1
info:
title: 'Invoice Ninja API Reference.'
description: |
@ -71,7 +71,8 @@ info:
license:
name: 'Elastic License'
url: 'https://www.elastic.co/licensing/elastic-license'
version: 5.10.31
version: 5.10.53
servers:
- url: 'https://demo.invoiceninja.com'
description: |