---
title: "Create invoice payable line item"
method: POST
path: "/v1/invoice-payables/{invoicePayableId}/line-items"
tags: ["v1 - Invoice Payables"]
---

# Create invoice payable line item

`POST /v1/invoice-payables/{invoicePayableId}/line-items`

## Request

- Base URL: `https://light.inc` (the document declares no server; this is the origin it was published from)
- URL: `https://light.inc/v1/invoice-payables/{invoicePayableId}/line-items`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Creates an invoice payable line item

## Path parameters

- `invoicePayableId` string, uuid, required

## Request body

- ExternalCreateInvoicePayableLineItemRequestV1Model
  - `amount` integer, 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.
  - `netAmount` integer, 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.
  - `taxAmount` integer, nullable: Tax amount for this line in cents. If omitted, tax may be derived from the configured tax code and base amount.
  - `description` string, nullable: Description for this invoice payable line item.
  - `taxCodeId` string, uuid, nullable: ID of the tax code to apply to this invoice payable line item.
  - `accountId` string, uuid, nullable: ID of the ledger account to book this invoice payable line item against.
  - `amortizationStartDate` string, date, nullable: Start date for amortization of this invoice payable line item.
  - `amortizationEndDate` string, date, nullable: End date for amortization of this invoice payable line item.
  - `amortizationTemplateId` string, uuid, nullable: ID of the amortization template to apply to this line item using Light Ledger.
  - `customProperties` ExternalSetCustomPropertyRequestV1Model[], nullable: Custom properties to set on this invoice payable line item.
    - `groupId` string, uuid: ID of the custom property group.
    - `valueIds` string[]: IDs of the selected custom property values. It behaves as a PUT operation, so if empty the existing ones will be effectively deleted.
    - `inlineValues` string[], nullable: Inline custom property values (used for TEXT/NUMERIC/DATE/etc. groups). It behaves as a PUT operation, so if empty or null the existing ones will be effectively deleted.

## Response `default`

default response

- ExternalInvoicePayableLineItemV1Model
  - `id` string, uuid: ID of the invoice payable line item.
  - `invoicePayableId` string, 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.
  - `metadata` ExternalInvoicePayableLineItemMetadataV1Model, nullable: Metadata for the invoice payable line item (ERP-specific fields and context).
    - `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.
  - `amount` integer, nullable: Amount in cents, including tax. When `lineItemsIncludeTax` is true, `amount` represents the full tax-inclusive amount for this line.
  - `netAmount` integer, nullable: Net line amount in cents, excluding tax. When `lineItemsIncludeTax` is false, `netAmount` represents the base amount on which tax is calculated.
  - `description` string, nullable: Description of this invoice payable line item.
  - `taxCodeId` string, uuid, nullable: ID of the tax code applied to this line item.
  - `taxAmount` integer, nullable: Tax amount in cents for this line item.
  - `accountId` string, uuid, nullable: ID of the ledger account used to book this line item.
  - `costCenterId` string, uuid, nullable: ID of the cost center associated with this line item, if applicable.
  - `amortizationStartDate` string, date, nullable: Start date for amortization of this line item.
  - `amortizationEndDate` string, date, nullable: End date for amortization of this line item.
  - `amortizationTemplateId` string, uuid, nullable: ID of the amortization template to use for this line item within Light Ledger.
  - `customPropertiesOld` ExternalCustomPropertiesObjectValuesV1Model, nullable: Legacy container for custom properties on this line item (deprecated/old format).
    - `items` object
  - `aiValueSuggestions` ExternalAiValueSuggestionV1Model[], nullable: AI-generated suggestions for line item values (e.g. account, cost center, tax code).
    - `field` string
    - `fieldValues` string[]
    - `reasoning` string
  - `customProperties` ExternalCustomPropertyV1Model[], nullable: Custom properties set on this invoice payable line item.
    - `groupId` string, uuid: ID of the custom property group
    - `groupInternalName` string: Internal name of the custom property group
    - `values` ExternalCustomPropertyValueV1Model[]: List of values. Note that this will be a single value unless the group input type supports multiple values
      - `id` string, uuid: Unique identifier for the object
      - `groupId` string, uuid: ID of the custom property group
      - `groupInternalName` string: Internal name of the custom property group
      - `companyId` string, uuid: ID of the company
      - `internalName` string: Internal name of the custom property value
      - `label` string: Label of the custom property value
      - `context` string, nullable: Context/description of the custom property value
      - `createdAt` string, date-time: Timestamp when the custom property value was created
      - `updatedAt` string, date-time: Timestamp when the custom property value was last updated
  - `createdAt` string, date-time: Timestamp when this invoice payable line item was created.
  - `updatedAt` string, date-time: Timestamp when this invoice payable line item was last updated.

---

[API](https://skmtc.dev/light/apis/light-api.md) - [All operations](https://skmtc.dev/light/apis/light-api/llms.txt) - [OpenAPI document](https://skmtc.dev/light/apis/light-api/revisions/84f51306f648?raw)
