mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Invoice API Documentation
This commit is contained in:
parent
4f966c775c
commit
9aadac2377
@ -12144,9 +12144,8 @@ paths:
|
|||||||
- invoices
|
- invoices
|
||||||
summary: "List invoices"
|
summary: "List invoices"
|
||||||
description: |
|
description: |
|
||||||
Lists invoices, search and filters allow fine grained lists to be generated.
|
Lists invoices with the option to chain multiple query parameters allowing fine grained filtering of the list.
|
||||||
Query parameters can be added to performed more fine grained filtering of the invoices,
|
|
||||||
these are handled by the InvoiceFilters class which defines the methods available"
|
|
||||||
operationId: getInvoices
|
operationId: getInvoices
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/X-API-TOKEN"
|
- $ref: "#/components/parameters/X-API-TOKEN"
|
||||||
@ -12275,7 +12274,7 @@ paths:
|
|||||||
$ref: "#/components/schemas/FillableInvoice"
|
$ref: "#/components/schemas/FillableInvoice"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "Returns the saved invoice object"
|
description: "Returns the saved invoice entity"
|
||||||
headers:
|
headers:
|
||||||
X-MINIMUM-CLIENT-VERSION:
|
X-MINIMUM-CLIENT-VERSION:
|
||||||
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
|
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
|
||||||
@ -12419,7 +12418,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- invoices
|
- invoices
|
||||||
summary: "Edit invoice"
|
summary: "Edit invoice"
|
||||||
description: "Displays an invoice by id"
|
description: "Displays an invoice by id for editting"
|
||||||
operationId: editInvoice
|
operationId: editInvoice
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/X-API-TOKEN"
|
- $ref: "#/components/parameters/X-API-TOKEN"
|
||||||
@ -12502,16 +12501,66 @@ paths:
|
|||||||
- $ref: "#/components/parameters/X-Requested-With"
|
- $ref: "#/components/parameters/X-Requested-With"
|
||||||
- $ref: "#/components/parameters/index"
|
- $ref: "#/components/parameters/index"
|
||||||
requestBody:
|
requestBody:
|
||||||
description: "User credentials"
|
description: "Bulk action details"
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
action:
|
||||||
|
type: string
|
||||||
|
description: "The action to be performed"
|
||||||
|
examples:
|
||||||
|
bulk_download:
|
||||||
|
value: bulk_download
|
||||||
|
summary: Bulk download an array of invoice PDFs (These are sent to the admin via email.)
|
||||||
|
download:
|
||||||
|
value: download
|
||||||
|
summary: Download a single PDF. (Returns a single PDF object)
|
||||||
|
bulk_print:
|
||||||
|
value: bulk_print
|
||||||
|
summary: Merges an array of Invoice PDFs for easy one click printing.
|
||||||
|
auto_bill:
|
||||||
|
value: auto_bill
|
||||||
|
summary: Attempts to automatically bill the invoices with the payment method on file.
|
||||||
|
clone_to_invoice:
|
||||||
|
value: clone_to_invoice
|
||||||
|
summary: Returns a clone of the invoice.
|
||||||
|
clone_to_quote:
|
||||||
|
value: clone_to_quote
|
||||||
|
summary: Returns a quote cloned using the properties of the given invoice.
|
||||||
|
mark_paid:
|
||||||
|
value: mark_paid
|
||||||
|
summary: Marks an array of invoices as paid.
|
||||||
|
mark_sent:
|
||||||
|
value: mark_sent
|
||||||
|
summary: Marks an array of invoices as sent.
|
||||||
|
restore:
|
||||||
|
value: restore
|
||||||
|
summary: Restores an array of invoices
|
||||||
|
delete:
|
||||||
|
value: delete
|
||||||
|
summary: Deletes an array of invoices
|
||||||
|
archive:
|
||||||
|
value: archive
|
||||||
|
summary: Archives an array of invoices
|
||||||
|
cancel:
|
||||||
|
value: cancel
|
||||||
|
summary: Cancels an array of invoices
|
||||||
|
email:
|
||||||
|
value: email
|
||||||
|
summary: Emails an array of invoices
|
||||||
|
send_email:
|
||||||
|
value: send_email
|
||||||
|
summary: Emails an array of invoices. Requires additional properties to be sent. `email_type`
|
||||||
|
ids:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
description: "Array of hashed IDs to be bulk 'actioned"
|
description: "Array of hashed IDs to be bulk 'actioned"
|
||||||
type: integer
|
type: integer
|
||||||
example: "[0,1,2,3]"
|
example: "[0,1,2,3]"
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "The Bulk Action response"
|
description: "The Bulk Action response"
|
||||||
|
@ -375,12 +375,45 @@
|
|||||||
bulk_download:
|
bulk_download:
|
||||||
value: bulk_download
|
value: bulk_download
|
||||||
summary: Bulk download an array of invoice PDFs (These are sent to the admin via email.)
|
summary: Bulk download an array of invoice PDFs (These are sent to the admin via email.)
|
||||||
account:
|
download:
|
||||||
value: account
|
value: download
|
||||||
summary: The associated Account
|
summary: Download a single PDF. (Returns a single PDF object)
|
||||||
bank_transactions:
|
bulk_print:
|
||||||
value: bank_transactions
|
value: bulk_print
|
||||||
summary: The associated Bank Transactions
|
summary: Merges an array of Invoice PDFs for easy one click printing.
|
||||||
|
auto_bill:
|
||||||
|
value: auto_bill
|
||||||
|
summary: Attempts to automatically bill the invoices with the payment method on file.
|
||||||
|
clone_to_invoice:
|
||||||
|
value: clone_to_invoice
|
||||||
|
summary: Returns a clone of the invoice.
|
||||||
|
clone_to_quote:
|
||||||
|
value: clone_to_quote
|
||||||
|
summary: Returns a quote cloned using the properties of the given invoice.
|
||||||
|
mark_paid:
|
||||||
|
value: mark_paid
|
||||||
|
summary: Marks an array of invoices as paid.
|
||||||
|
mark_sent:
|
||||||
|
value: mark_sent
|
||||||
|
summary: Marks an array of invoices as sent.
|
||||||
|
restore:
|
||||||
|
value: restore
|
||||||
|
summary: Restores an array of invoices
|
||||||
|
delete:
|
||||||
|
value: delete
|
||||||
|
summary: Deletes an array of invoices
|
||||||
|
archive:
|
||||||
|
value: archive
|
||||||
|
summary: Archives an array of invoices
|
||||||
|
cancel:
|
||||||
|
value: cancel
|
||||||
|
summary: Cancels an array of invoices
|
||||||
|
email:
|
||||||
|
value: email
|
||||||
|
summary: Emails an array of invoices
|
||||||
|
send_email:
|
||||||
|
value: send_email
|
||||||
|
summary: Emails an array of invoices. Requires additional properties to be sent. `email_type`
|
||||||
ids:
|
ids:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user