> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment attempts

> Checkout payment attempts: total, unique, failed and successful, and authorization rates, by method, card, wallet and channel.

Checkout payment attempts: total, unique, failed and successful, and authorization rates, by method, card, wallet and channel.

## Example

```sql theme={null}
FROM payment_attempts
  SHOW total_payment_attempts, unique_payment_attempts
  GROUP BY payment_method
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY total_payment_attempts DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `total_payment_attempts` | Number | Payment attempts at checkout, retries counted each time. |
| `unique_payment_attempts` | Number | Purchases attempted, retries counted once. |
| `failed_payment_attempts` | Number | Payment attempts that failed. |
| `successful_payments` | Number | Payment attempts that succeeded. |
| `payment_authorization_rate` | Percent | Purchases whose payment went through, retries counted once. |
| `payment_authorization_rate_raw` | Percent | Successful attempts as a share of every attempt, retries included. |

## Dimensions

| Dimension | Description |
| - | - |
| `payment_method` | Card, PayPal, Klarna, and so on. |
| `payment_card_brand` | The card's brand. |
| `payment_card_wallet` | The wallet used, if any. |
| `payment_channel` | Online or in person. |
| `payment_card_bin_country` | The country that issued the card. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `payment_method` | Text | Card, PayPal, Klarna, and so on. |
| `payment_card_brand` | Text | The card's brand. |
| `payment_card_wallet` | Text | The wallet used, if any. |
| `payment_channel` | Text | Online or in person. |
| `payment_card_bin_country` | Text | The country that issued the card. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `shop.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Payments](https://docs.queryful.app/queryfulql/datasets/payments.md)
* [Payouts](https://docs.queryful.app/queryfulql/datasets/payouts.md)
* [Payout transactions](https://docs.queryful.app/queryfulql/datasets/balance_transactions.md)
* [Disputes](https://docs.queryful.app/queryfulql/datasets/disputes.md)
* [Chargebacks](https://docs.queryful.app/queryfulql/datasets/chargebacks.md)
* [Gift cards](https://docs.queryful.app/queryfulql/datasets/gift_cards.md)
* [Store credit transactions](https://docs.queryful.app/queryfulql/datasets/store_credit_transactions.md)
* [Store credit balance](https://docs.queryful.app/queryfulql/datasets/store_credit_summaries.md)
* [Receivables](https://docs.queryful.app/queryfulql/datasets/receivables.md)
* [Payments balance](https://docs.queryful.app/queryfulql/datasets/payments_balance.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.