Skip to main content
POST
Line Item Create Api

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

invoice_uuid
string
required

Body

application/json

Input schema for creating a line item.

name
string
required

Name of the line item

Example:

"Product A"

unit_price
number
required

Price per unit

Example:

100

description
string | null

Additional details about the line item

Example:

"Detailed description of the product or service"

quantity
integer
default:1

Quantity of units

Required range: x >= 1
Example:

2

flat_fee
number | null

Fixed flat fee amount

Example:

10

discount_amount
number | null

Discount amount in currency

Example:

5

discount_percent
number | null

Discount percentage (0-100)

Required range: 0 <= x <= 100
Example:

10

tax_rate
number | null

Tax rate percentage (0-100)

Required range: 0 <= x <= 100
Example:

10

tax_name
string | null

Name of the tax applied

Example:

"Sales Tax"

service_start_date
string<date> | null

Service period start date

Example:

"2024-03-01"

service_end_date
string<date> | null

Service period end date

Example:

"2024-03-31"

display_order
integer | null

Display order for line item

Required range: x >= 1

Response

Line item created successfully

Output schema for invoice line items with UUID for external API.

uuid
string<uuid>
name
string | null
Maximum string length: 255
unit_price
number | null
quantity
integer | null
default:1
amount
number | null
currency
string | null
default:USD
Maximum string length: 3
description
string | null

The description of the line item

flat_fee
number | null

Fixed flat fee added to the line item amount

tax_rate
number | null
default:0
tax_amount
number | null
default:0
tax_name
string | null
Maximum string length: 255
discount_amount
number | null
discount_percent
number | null
service_start_date
string<date> | null

The date the service starts for the item

service_end_date
string<date> | null

The date the service ends for the item

display_order
integer | null

The order in which the line item will be displayed in the UI/pdf