Skip to main content

Response

Entity

Parameters

id : string The unique identifier of the created add-on. For example, ao_00000000000001. item : object Details of the created add-on. id : string The unique identifier of the created item. For example, item_00000000000001. active : boolean Indicates whether the add-on is active. Here, the value is true. name : string Name of the add-on. For example, Extra muffin. description : string Description for the add-on. For example, extra muffin with meals. amount : integer Amount for the add-on in currency subunit that is to be charged for the Subscription in the next billing cycle. For example, 30000. In the case of three decimal currencies, such as KWD, BHD and OMR, to refund a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to refund a payment of 295, pass the value as 295.
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.currency : string The currency in which the customer should be charged for the add-on. For example, INR. Know more about supported currencies.
Handy Tips
Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about Currency Conversion (May 2024).created_at : integer The Unix timestamp indicates when the item was created. For example, 1581597318.quantity : integer This specifies the number of units of the add-on to be charged to the customer. For example, 2. The total amount is calculated as amount * quantity.created_at : integer The Unix timestamp, indicates when the add-on was created. For example, 1581597318.subscription_id : string The unique identifier of the Subscription to which the add-on is being added. For example, sub_00000000000001.invoice_id : string The add-on is added to the next invoice that is generated after it is created. This field is populated only after the invoice is generated. Until then, it is null. Once the add-on is linked to an invoice, it cannot be deleted.