Razorpay icon

Razorpay

Interact with Razorpay payment gateway API

Actions10

Payment → Fetch All

AI-generated

Summary

Retrieve a list of payments filtered by optional date range and pagination parameters.

Inputs

  • From Date — Start date to fetch payments from, to filter results.
  • To Date — End date to fetch payments until, to filter results.
  • Count — Number of payments to fetch, between 1 and 100 (default is 10).
  • Skip — Number of payments to skip for pagination (default is 0).

Output shape

a single JSON object containing a list of payments according to the specified parameters.

The output is paginated according to the 'Count' and 'Skip' parameters, and optionally filtered by 'From Date' and 'To Date'. If the operation fails, error details are returned when 'Continue On Fail' is enabled.

Examples

Example 1: Fetch the first 10 payments with no date filter.

Count=10, Skip=0, no From or To date

Example 2: Fetch payments from 2024-01-01 to 2024-01-31, skipping the first 5 results, returning up to 20 payments.

From Date=2024-01-01, To Date=2024-01-31, Count=20, Skip=5

Discussion