Cashfree Payments icon

Cashfree Payments

Interact with Cashfree Payments API

Get All Refunds for Order

AI-generated

Summary

Get All Refunds for Order

Inputs

  • get_refunds_order_id (required) — The ID of the order to get refunds for
  • get_refunds_request_id — Request ID for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to Cashfree (optional)
  • get_refunds_idempotency_key — An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions (optional)

Output shape

Array of refund objects

The response body from the GET /orders/{orderId}/refunds endpoint is returned as JSON array items.

Examples

Example 1: Fetch all refunds for order 'ORD_12345'

Set get_refunds_order_id = 'ORD_12345' (optionally provide request id and idempotency key).

Discussion