v1 - Invoice Payables

Update invoice payable line item

Updates an invoice payable line item

put/v1/invoice-payables/{invoicePayableId}/line-items/{lineItemId}

Request

  • Base URL
    https://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

invoicePayableIdstring uuid required
lineItemIdstring uuid required

Request body

amountinteger nullable

Gross line amount in cents, including tax. Set this when the parent invoice header field lineItemsIncludeTax is true. When lineItemsIncludeTax is false, prefer using netAmount instead and avoid sending both.

netAmountinteger nullable

Net line amount in cents, excluding tax. Set this when the parent invoice header field lineItemsIncludeTax is false. When lineItemsIncludeTax is true, prefer using amount instead and avoid sending both.

taxAmountinteger nullable

Tax amount for this line in cents. If omitted, tax may be derived from the configured tax code and base amount.

descriptionstring nullable

Description for this invoice payable line item.

taxCodeIdstring uuid nullable

ID of the tax code to apply to this invoice payable line item.

accountIdstring uuid nullable

ID of the ledger account to book this invoice payable line item against.

amortizationStartDatestring date nullable

Start date for amortization of this invoice payable line item.

amortizationEndDatestring date nullable

End date for amortization of this invoice payable line item.

amortizationTemplateIdstring uuid nullable

ID of the amortization template to apply to this line item using Light Ledger.

Response

default response

idstring uuid

ID of the invoice payable line item.

invoicePayableIdstring uuid

ID of the invoice payable this line item belongs to.

type'REIMBURSEMENT' | 'SELF_BILLED' | 'VENDOR_INVOICE'

Type of the invoice payable line item (vendor invoice or reimbursement).

⚠️ This enum is not exhaustive; new values may be added in the future.

amountinteger nullable

Amount in cents, including tax. When lineItemsIncludeTax is true, amount represents the full tax-inclusive amount for this line.

netAmountinteger nullable

Net line amount in cents, excluding tax. When lineItemsIncludeTax is false, netAmount represents the base amount on which tax is calculated.

descriptionstring nullable

Description of this invoice payable line item.

taxCodeIdstring uuid nullable

ID of the tax code applied to this line item.

taxAmountinteger nullable

Tax amount in cents for this line item.

accountIdstring uuid nullable

ID of the ledger account used to book this line item.

costCenterIdstring uuid nullable

ID of the cost center associated with this line item, if applicable.

amortizationStartDatestring date nullable

Start date for amortization of this line item.

amortizationEndDatestring date nullable

End date for amortization of this line item.

amortizationTemplateIdstring uuid nullable

ID of the amortization template to use for this line item within Light Ledger.

createdAtstring date-time

Timestamp when this invoice payable line item was created.

updatedAtstring date-time

Timestamp when this invoice payable line item was last updated.

Changes

No recorded changes to this operation across all 1 revision of this API.