Reset invoice
Resets an invoice receivable to draft
Request
- Base URLhttps://light.inc (the document declares no server; this is the origin it was published from)
- Auth
- API key in header Authorization
- or HTTP bearer
Path parameters
Response
default response
Unique identifier for the object
ID of the company
ID of the contract, if this is invoice is linked to a contract
ID of the entity
Total invoice amount in smallest denomination, with discounts and tax applied
Payment type for the invoice
- AIRWALLEX - Payment via Airwallex. A payment link will be displayed on the invoice
- BANK_TRANSFER - Payment via bank transfer. Bank information will be displayed on the invoice
- DIRECT_DEBIT - Payment via direct debit. A notice that the amount will be collected automatically will be displayed on the invoice
- STRIPE - Payment via Stripe. A payment link will be sent to the customer
⚠️ This enum is not exhaustive; new values may be added in the future.
ID of the bank account where money should be sent to
Date the invoice was issued
The invoice date shown to customers; falls back to the posting date when the invoice date is not set
Date the invoice is posted to the ledger (drives GL, VAT and revenue recognition)
Date the invoice payment is due
Number of days from the invoice date to when the invoice is due. Updating this field will automatically set the invoice due date
ID of the customer
ID of the invoice template
Text that will added to the additional text section of the invoice template
Invoice number. This number is guaranteed to be unique and sequential per entity. By default Light will generate this number when the invoice is opened, but you can provide your own custom number when creating or updating a draft invoice
Who raised the invoice
- STANDARD - The company raised the invoice
- SELF_BILLED - The customer issued the invoice on the company's behalf and sent it in
⚠️ This enum is not exhaustive; new values may be added in the future.
The invoice state
- CREATED - The invoice document was received and is waiting to be parsed. Next valid state is DRAFT
- DRAFT - The invoice is in draft and can be modified. Next valid states are OPEN_IN_PROGRESS or ARCHIVED
- OPEN_IN_PROGRESS - The invoice is being opened. Next valid state is OPEN or DRAFT
- OPEN - The invoice is open. Next valid states are PAYMENT_PENDING, PARTIALLY_PAID, PAID or ARCHIVED
- PAYMENT_PENDING - The payment was initiated by Light and is waiting to be collected. Next valid state is PAID
- PARTIALLY_PAID - The invoice is partially paid. Next valid state is PAID
- PAID - The invoice is fully paid
- REVERSED - The invoice was reversed by a credit note and reissued as a new invoice; it is locked and cannot be modified
- ARCHIVED - The invoice is archived and cannot be modified
⚠️ This enum is not exhaustive; new values may be added in the future.
Timestamp when the invoice was opened
Purchase order number
Reference number for cross-referencing with procurement and invoicing workflows
Payment reference generated by Light for the customer's bank payment
Description of the invoice
Name of the tax engine to be used
- AVATAX - Avalara AvaTax will be used for tax calculations
- LIGHT - Light built-in tax engine will be used for tax calculations
- SPHERE - Sphere tax engine will be used for tax calculations
⚠️ This enum is not exhaustive; new values may be added in the future.
Whether the invoice line amount is inclusive of tax or not. True means tax is already included in the line amount and will not be added on top, false means tax will be added on top of the line amount
Custom foreign exchange rate for the ledger's local currency. If not provided Light uses official ECB rates
Custom foreign exchange rate for the ledger's group currency. If not provided Light uses official ECB rates
Timestamp when the invoice was created
Timestamp when the invoice was last updated
ID of the user who last updated the invoice
Example response
{
"currency": "USD"
}Changes
No recorded changes to this operation across all 1 revision of this API.