Skip to main content
POST
Available in🇮🇳 India🇲🇾 Malaysia
Use this endpoint to create an item with basic details such as name and amount. After an item is created, it appears on the list of created items and in the drop-down menu at the time of invoice creation.

Request Parameters

integer
required
The price of the item.
Watch Out!As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to refund a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as 99990 and not 99991.
string
required
The currency in which the amount should be charged. Check the list of supported currencies.
Handy TipsRazorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR. Know more about Currency Conversion (May 2024).
string
A brief description about the item.
string
required
Name of the item.

Response Parameters

boolean
Indicates the status of the item. Possible values:
  • true (default): Item is in the active state.
  • false: Item is in the inactive state.
integer
The price of the item.
integer
Unix timestamp, at which the item was created. For example, 1649843796.
string
The currency in which the amount should be charged. Check the list of supported currencies.
string
A text description about the item.
string
The Harmonised System of Nomenclature (HSN) code used to classify the product, as a string of up to 8 digits. For example, "85171300". null when not set.
string
The unique identifier of the item.
string
The name of the item.
string
The Services Accounting Code (SAC) used to classify the service, as a string of up to 8 digits. For example, "998314". null when not set.
string
The identification number for the tax group. A tax group is a collection of taxes that can be applied as a single set of rules.
string
The identification number that gets displayed on invoices issued to the customer.
boolean
Indicates whether the base amount includes tax.
  • true: The base amount includes tax.
  • false: The base amount does not include tax. By default, the value is set to false.
integer
The tax rate applied to the item, as an integer in basis points. For example, 1800 is 18%. Maximum 10000 (100%). null when not set.
string
Here, it must be invoice.
string
The unit of measure the item is billed in, as a string. For example, pcs, kg or box. null when not set.
integer
The per unit billing amount for each individual unit.

Errors

Code: 4xxThe API credentials passed in the API call differ from the ones generated on the Dashboard.
  • Different keys for test mode and live modes.
  • Expired API key.
Solution: The API keys must be active and entered correctly with no whitespace before or after the keys.
Code: 400The currency field is blank.Solution: Ensure that the currency field is added with a valid currency code.
Code: 400This happens when an international currency code is added.Solution: Ensure that the currency field is added with a valid currency code.
Code: 400This happens when the amount added in the amount field is less than INR 1.Solution: Ensure that the amount is INR 1 or greater.
Code: 400The name field was not included in the request body, or the body was empty.Solution: Always pass name in the request body.
Code: 400Neither the amount field nor unit_amount field was included in the request body.Solution: Pass either amount (in currency subunits) or unit_amount.
Code: 400The name value exceeds the 512-character limit.Solution: Keep name to 512 characters or fewer.
Code: BAD_REQUEST_ERROR
Code: BAD_REQUEST_ERRORThe request body is larger than 1 MiB. The request is rejected before the body is read.Solution: Send a smaller body. An invoice with the maximum number of line items is far below the limit.
Code: SERVER_ERROR
Last modified on December 4, 2026