/home/techb158/ileadtechnology.com/vendor/razorpay/razorpay/documents
NameSizeModeActions
addon.md45330644editdlrm
card.md176900644editdlrm
customer.md42420644editdlrm
emandate.md159870644editdlrm
fund.md25060644editdlrm
invoice.md187340644editdlrm
item.md55570644editdlrm
order.md76070644editdlrm
papernach.md220800644editdlrm
payment.md227750644editdlrm
paymentLink.md342210644editdlrm
paymentVerfication.md38820644editdlrm
plan.md46290644editdlrm
qrcode.md142520644editdlrm
refund.md80800644editdlrm
registeremandate.md147910644editdlrm
registernach.md194490644editdlrm
settlement.md128260644editdlrm
subscription.md212200644editdlrm
token.md61610644editdlrm
transfer.md226620644editdlrm
upi.md172010644editdlrm
virtualaccount.md160580644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/razorpay/razorpay/documents/item.md (5557B)
## items ### Create item ```php $api->Item->create(array("name" => "Book / English August","description" => "An indian story, Booker prize winner.","amount" => 20000,"currency" => "INR")); ``` **Parameters:** | Name | Type | Description | |-----------------|---------|------------------------------------------------------------------------------| | name* | string | Name of the item. | | description | string | A brief description of the item. | | amount* | integer | Amount of the order to be paid | | currency* | string | Currency of the order. Currently only `INR` is supported. | **Response:** ```json { "id": "item_JInaSLODeDUQiQ", "active": true, "name": "Book / English August", "description": "An indian story, Booker prize winner.", "amount": 20000, "unit_amount": 20000, "currency": "INR", "type": "invoice", "unit": null, "tax_inclusive": false, "hsn_code": null, "sac_code": null, "tax_rate": null, "tax_id": null, "tax_group_id": null, "created_at": 1649843796 } ``` ------------------------------------------------------------------------------------------------------- ### Fetch all items ```php $api->Item->all($options); ``` **Parameters:** | Name | Type | Description | |-------|-----------|--------------------------------------------------| | from | timestamp | timestamp after which the item were created | | to | timestamp | timestamp before which the item were created | | count | integer | number of item to fetch (default: 10) | | skip | integer | number of item to be skipped (default: 0) | | active | boolean | Possible values is `0` or `1` | **Response:** ```json { "entity": "collection", "count": 2, "items": [ { "id": "item_JInaSLODeDUQiQ", "active": true, "name": "Book / English August", "description": "An indian story, Booker prize winner.", "amount": 20000, "unit_amount": 20000, "currency": "INR", "type": "invoice", "unit": null, "tax_inclusive": false, "hsn_code": null, "sac_code": null, "tax_rate": null, "tax_id": null, "tax_group_id": null, "created_at": 1649843796 }, { "id": "item_JIPSg5L06yhHie", "active": false, "name": "Book / Ignited Minds - Updated name!", "description": "New descirption too. :).", "amount": 20000, "unit_amount": 20000, "currency": "INR", "type": "invoice", "unit": null, "tax_inclusive": false, "hsn_code": null, "sac_code": null, "tax_rate": null, "tax_id": null, "tax_group_id": null, "created_at": 1649758835 } ] } ``` ------------------------------------------------------------------------------------------------------- ### Fetch particular item ```php $api->Item->fetch($itemId); ``` **Parameters** | Name | Type | Description | |----------|--------|-------------------------------------| | itemId* | string | The id of the item to be fetched | **Response:** ```json { "id": "item_JInaSLODeDUQiQ", "active": true, "name": "Book / English August", "description": "An indian story, Booker prize winner.", "amount": 20000, "unit_amount": 20000, "currency": "INR", "type": "invoice", "unit": null, "tax_inclusive": false, "hsn_code": null, "sac_code": null, "tax_rate": null, "tax_id": null, "tax_group_id": null, "created_at": 1649843796 } ``` ------------------------------------------------------------------------------------------------------- ### Update item ```php $api->Item->fetch($itemId)->edit(array("name" => "Book / Ignited Minds - Updated name!","description" => "New descirption too. :).","amount" => 20000,"currency" => "INR","active" => true )); ``` **Parameters** | Name | Type | Description | |----------|--------|-------------------------------------| | itemId* | string | The id of the item to be fetched | | name | string | Name of the item. | | description | string | A brief description of the item. | | amount | integer | Amount of the order to be paid | | currency | string | Currency of the order. Currently only `INR` is supported. | | active | boolean | Possible values is `0` or `1` | **Response:** ```json { "id": "item_JInaSLODeDUQiQ", "active": true, "name": "Book / Ignited Minds - Updated name!", "description": "New descirption too. :).", "amount": 20000, "unit_amount": 20000, "currency": "INR", "type": "invoice", "unit": null, "tax_inclusive": false, "hsn_code": null, "sac_code": null, "tax_rate": null, "tax_id": null, "tax_group_id": null, "created_at": 1649843796 } ``` ------------------------------------------------------------------------------------------------------- ### Delete item ```php $api->Item->fetch($itemId)->delete(); ``` **Parameters** | Name | Type | Description | |----------|--------|-------------------------------------| | itemId* | string | The id of the item to be fetched | **Response:** ```json [] ``` ------------------------------------------------------------------------------------------------------- **PN: * indicates mandatory fields**

**For reference click [here](https://razorpay.com/docs/api/items)**