---
title: "Get Failed Payments"
method: GET
path: "/dashboard/failed-attempts"
tags: ["provider", "dashboard"]
---

# Get Failed Payments

`GET /dashboard/failed-attempts`

Get failed payment attempts with pagination and filtering options.

## Query parameters

- `page` integer, nullable
- `per_page` integer, nullable
- `sort_by` string, nullable
- `sort_direction` 'asc' | 'desc', nullable
- `location_id` string, nullable
- `start_date` string, required
- `end_date` string, required
- `location_ids` string[], nullable
- `payment_mediums` string[], nullable
- `tz` string, required
- `limit` integer, nullable

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- FailedPayment
  - `data` FailedPaymentItem[], required
    - `id` string, required
    - `alertId` string, required
    - `actionRequired` boolean, required
    - `patientName` string, required
    - `patientId` string, required
    - `failedReason` string, required
    - `paymentMethod` string, required
    - `paymentMedium` string, required
    - `amount` number, required
    - `dateOfAttempt` string, required
  - `total` integer, required
  - `page` integer, required
  - `perPage` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) · [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decodahealth/decoda-api/revisions/4939a65a89d2/schema)
