Create Invoice Line Item

Create a new invoice line item

post/invoices/{invoice_id}/invoice_line_items

Request

  • Base URL
    https://app.moderntreasury.com/api
  • URL
    https://app.moderntreasury.com/api/invoices/{invoice_id}/invoice_line_items
  • Auth
    HTTP basic

Path parameters

invoice_idstring required

The ID of the invoice the line item belongs to.

Request body

namestring required

Name of the line item, typically a product or SKU name.

descriptionstring

An optional free-form description of the line item.

quantityinteger

The number of units of a product or service that this line item is for. Must be a whole number. Defaults to 1 if not provided.

unit_amountinteger

The cost per unit of the product or service that this line item is for, specified in the invoice currency's smallest unit.

unit_amount_decimalstring

The cost per unit of the product or service that this line item is for, specified in the invoice currency's smallest unit. Accepts decimal strings with up to 12 decimals.

direction'debit' | 'credit'

debit indicates that the counterparty owes the business money and increases the invoice's total_amount due. credit has the opposite intention and effect.

metadatastring json

Additional data represented as key-value pairs. Both the key and value must be strings. See Metadata.

Changes

No recorded changes to this operation across all 2 revisions of this API.