This endpoint allows the creation of a new income credit note transaction of accounting type invoice with the unique credit note invoice number. In create Invoice detail credit note item type must be set 1 to create accounting type debit note invoice.
The API will return a confirmation message along with the details of the newly created credit note 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.
cn_item_type
integerÂ
required
Indicates the type of invoice here is must 1, 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.
ledgers
array [object {11}]Â
required
An array of ledgers for accounting invoice
ledger_id
integerÂ
required
Refers to the unique identifier of the ledger account where the transaction is recorded. get it from Ledger List API.
rpu
numberÂ
required
Represents the Rate Per Unit of the ledger, the selling price for the ledger before taxes and discounts.
with_tax
integerÂ
required
This indicates whether the price is inclusive of tax. A value of 0 means the price is exclusive of tax.
discount_type
integerÂ
required
Type of discount applied to the selling price (2 = Percentage, 1 = Fixed amount).
discount_value
number  | nullÂ
optional
Represents the discount amount applied to the ledger.
total
numberÂ
required
This is the final total for the ledger after all calculations, including discounts.
additional_description
string  | nullÂ
optional
Provides any extra details or notes about the ledger being sold.
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.
gst_id
integerÂ
optional
This field refers to the GST tax rate associated with the ledger. get it from Gst Rates API.
cess
integerÂ
optional
Represents the cess (additional tax) applied to the legder.
main_classification_nature_type
stringÂ
required
Describes the nature of the transaction for tax purposes, such as "Intrastate Sales Taxable". you get it from Classification-nature-type
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.