This endpoint makes an HTTP POST request to create a new sale transaction of item invoice type. in create invoice detail item type must set 2 for create item type sale invoice.
The request body must include the details of the sale transaction, including the customer information, items sold, payment details, and other details related to the item type invoice.
The API will return a confirmation message along with the details of the newly created sale transaction.
Request
Authorization
Add parameter in header
ApiKey
Example:
ApiKey: ********************
Body Params application/json
invoice_number
stringÂ
required
The unique invoice number is system-generated and assigned to each invoice and Typically fetched from the Next Invoice Number API.
date
stringÂ
required
The invoice date represents the date on which an invoice is issued, and the date is set within the applicable financial year.
customer_ledger_id
integerÂ
required
Represents the unique identifier of the customer for whom the invoice is being created, linking the invoice to the relevant business entity. you get it from Ledger List API.
billing_address
objectÂ
required
Represents the billing address of the customer for invoicing purposes.
country_id
integerÂ
required
Reference ID for the country. it get from Country API.
state_id
integerÂ
required
Reference ID for the state of the selected country. it get from State API.
address_1
stringÂ
optional
Primary address line (e.g., office or building name).
address_2
stringÂ
optional
Secondary address line, often for road or area name.
city_id
integerÂ
optional
Reference ID for the city of the selected state. it get from City API.
pin_code
stringÂ
optional
Postal code of the address.
sales_item_type
integer  | nullÂ
optional
Indicates the type of invoice here is must 2, such as item invoice (2) and accounting invoice (1). This field is nullable. If no specific type is provided, the system will automatically assign the item invoice (2) type by default.
Default:
2
items
array [object {16}]Â
required
An array of items for item invoice.
quantity
integerÂ
required
Indicates the number of items being sold in the transaction
with_tax
integerÂ
required
This indicates whether the price is inclusive of tax. A value of 0 means the price is exclusive of tax.
rpu
number <double>
required
Represents the Rate Per Unit of the item, the selling price for each unit before taxes and discounts.
item_id
integer  | nullÂ
optional
The unique identifier for the item being added to the sales invoice. This field is nullable but required if sku is not provided. you get it from Item List.
sku
string  | nullÂ
optional
The Stock Keeping Unit (SKU) associated with the item. This field is nullable but required if item_id is not provided. It must be a string and is used for inventory tracking and product identification.
ledger_id
integer  | nullÂ
optional
The unique identifier for the ledger account associated with the item. This field is nullable. If no specific ledger is provided, the system will automatically assign the default sale ledger ID.
unit_id
integer  | nullÂ
optional
The unique identifier for the unit of measurement (UOM) associated with the item. This field is nullable. If no specific unit is provided, the system will automatically assign the primary UOM of the item.
total
integer  | nullÂ
optional
This is the final total for the item after all calculations, including discounts. This field is nullable. If no total amount is provided, the system will automatically calculate it for item.
gst_id
integerÂ
optional
This field represents the GST tax rate for the item and is required if your company is GST applicable.It should be retrieved from Gst Rates API.
additional_description
string  | nullÂ
optional
Provides any extra details or notes about the item being sold.
mrp
integer  | nullÂ
optional
Refers to the Maximum Retail Price of the item.
discount_type
integer  | nullÂ
optional
The type of discount applied to the selling price. Options include 2 = Percentage and 1 = Fixed amount. This field is nullable. If no specific discount type is provided, the system will automatically assign 1 (Fixed amount) as the default.
discount_value
integer  | nullÂ
optional
Represents the discount amount applied to the item.
discount_type_2
integer  | nullÂ
optional
Similar to discount_type applicable on the second discount amount.
discount_value_2
number  | nullÂ
optional
Represents the second discount amount applied.
cess
integer  | nullÂ
optional
Represents the cess (additional tax) applied to the item.
main_classification_nature_type
stringÂ
required
Describes the nature of the sale for tax purposes, such as "Intrastate Sales Taxable". you get it from Classification-nature-type
gross_value
number <double>
required
Represents the total value of the transaction before applying any discounts, taxes, or additional charges.
taxable_value
number <double>
required
The total value of the invoice, after applying discounts and additional charges but before adding any taxes.
cgst
numberÂ
required
These fields represent the Central GST
sgst
numberÂ
required
These fields represent the State GST
igst
numberÂ
required
These fields represent the Integrated GST
cess
numberÂ
required
Represents the cess (additional tax) applied to the transaction.
is_rcm_applicable
booleanÂ
required
Indicates whether the Reverse Charge Mechanism (RCM) is applicable, it is a tax mechanism where the buyer, rather than the seller, is liable to pay the tax.
Default:
false
rounding_amount
integerÂ
required
The rounding adjustment to make the total amount a round figure. This is usually done for simplifying invoice totals.
grand_total
integerÂ
required
The final amount of the invoice, which includes all items, taxes, additional charges, and rounding adjustments.