Entity🔗
Every API response contains entities shared across different endpoints. There are some common attributes for every entity.
entitystringIndicates the type of the entity.idintegerA unique identifier of the entity.
In an entity, the attributes can be used to make entity-specific API calls. For example, you can fetch the payment ID from an order.paid webhook and use it to initiate a refund for that payment.
Collection Entity🔗
Razorpay API also supports returning multiple entities for a single request. This response also has another entity collection. For the collection entity, the following parameters are common.
entitystringIndicates the type of the entity. For example,collection.countintegerIndicates the number ofitemsare returned. For example,2.itemsarrayThe list of entities.