Every API response contains entities shared across different endpoints. There are some common attributes for every entity.
stringIndicates the type of the entity.
integerA 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.
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.
stringIndicates the type of the entity. For example,
integerIndicates the number of
itemsare returned. For example,
arrayThe list of entities.