Skip to main content
GET
/
v1
/
refunds
List Refunds
curl --request GET \
  --url https://api.withflex.com/v1/refunds \
  --header 'Authorization: Bearer <token>'
{
  "refunds": [
    {
      "refund_id": "<string>",
      "amount": 123,
      "created_at": "<string>",
      "status": "pending",
      "test_mode": true,
      "payment_intent_id": "<string>",
      "reason": "duplicate",
      "metadata": {},
      "reference_id": "<string>",
      "reference_type": "acquirer_reference_number",
      "reference_status": "available",
      "items": [],
      "subscription_id": "<string>",
      "invoice_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Query Parameters

status
enum<string> | null
Available options:
pending,
requires_action,
succeeded,
failed,
canceled
payment_intent
string | null
checkout_session
string | null
starting_after
string | null

A cursor for use in pagination. starting_after is a refund ID that defines your place in the list. For instance, if you make a list request and receive 20 refunds, ending with fre_xyz, your subsequent call can include starting_after=fre_xyz to fetch the next page.

ending_before
string | null

A cursor for use in pagination. ending_before is a refund ID that defines your place in the list. For instance, if you make a list request and receive 20 refunds, starting with fre_abc, your subsequent call can include ending_before=fre_abc to fetch the previous page.

limit
integer<int32> | null

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

Required range: 1 <= x <= 100

Response

refunds
object[]
required