# Pagar.me + ClickHouse

> Automate data ingestion of transactions, charges, and subscriptions from Pagar.me to Clickhouse. Get started for free.

Source: https://www.erathos.com/en/pipelines/pagar-me-clickhouse
Em português: https://www.erathos.com/pipelines/pagar-me-clickhouse

[Pagar.me](http://pagar.me/) is a Brazilian fintech specialized in online payment solutions. It provides services that enable the integration of payment methods into digital platforms, streamlining online transactions for businesses across various sectors. ClickHouse, in turn, is a high-performance, column-oriented database management system designed for online analytical processing (OLAP), enabling robust data storage and large-scale analytical capabilities.

With Erathos, you can integrate data from Pagar.me into ClickHouse in just a few minutes. Our platform manages the entire data movement pipeline into your analytical environment, allowing you to blend your payment data with other sources in your Data Warehouse. This frees up your time to focus on what actually drives value — extracting powerful insights and making data-driven decisions.

### What Pagar.me data does Erathos sync with ClickHouse?

The integration automatically syncs the primary Pagar.me objects:

- **Transactions** — approved, declined, and refunded payments
- **Subscriptions** — plans, status, MRR, and renewal dates
- **Charges** — invoices, bank slips (boletos), and recurring billing data
- **Refunds** — chargebacks and disputes with full context
- **Customers** — profile data and payment history
- **Webhook events** — payment approved, failed, subscription canceled, and more

### Why sync Pagar.me with ClickHouse?

With ClickHouse, you can run OLAP queries on your Pagar.me data in milliseconds, making it the perfect fit for high-concurrency dashboards and high-volume time-series data.

### How it works

Erathos connects to Pagar.me via its official API and syncs your data incrementally — only new or updated records are processed on each run, keeping pipelines fast and ClickHouse costs predictable. You choose the sync frequency (ranging from every 5 minutes to daily), the objects to sync, and the destination dataset. Every execution is logged with full observability: runtime, rows processed, contextual error logs, and instant Slack or email alerts if anything goes wrong.

## Data in your data warehouse in minutes

### Ready-to-use Pagar.me connector

Connect Pagar.me to ClickHouse and automatically sync transactions, subscriptions, charges, and refunds. Reliable and auditable financial data in your data warehouse.

### Total control over your Pagar.me pipelines

Configure frequency and sync mode on a per-table basis. Data lands in ClickHouse optimized for OLAP queries, delivering millisecond-level analytics even across millions of rows.

### End-to-end observability

Stop finding out about Pagar.me failures only after the business team complains. Every run is logged with runtime, rows processed, and error context. Automated alerts via Slack, Discord, or email the moment something goes off track — so critical financial data is always available and auditable.

## Centralizing Pagar.me data in ClickHouse has never been easier

Erathos is a data ingestion platform built for financial and data teams. With the Pagar.me connector, you can automatically sync transactions, subscriptions, charges, and refunds to ClickHouse — delivering auditable, reliable, and always up-to-date financial data.

## FAQ

### What is Erathos and how can it help my company?

Erathos is a data ingestion platform built for reliability, transparency, and control. We help data teams connect tools like Pagar.me to their data warehouse — with full observability of every run, zero maintenance, and without the opacity of traditional market tools.

### What Pagar.me data does Erathos sync to ClickHouse?

Erathos syncs Transactions, Subscriptions, Charges, Refunds, Plans, and Customer data from Pagar.me to Clickhouse. Webhook events like approved or failed payments and chargebacks are also captured automatically.

### How often does Erathos sync data from Pagar.me to ClickHouse?

You can configure the sync frequency from every 5 minutes to daily, at the table level. Erathos uses incremental sync—only new or updated records are processed in each run, keeping your Pagar.me pipeline efficient and your Clickhouse costs predictable.

### What happens if a Pagar.me sync fails?

Erathos automatically detects failures and sends alerts to your email, Slack, or Discord with full context — not just "job failed." Smart retries handle transient errors, and every run is logged with runtime, rows processed, and error context so your team can debug in minutes, not hours.

### Is there a free trial period for the Pagar.me connector?

Yes. Every Erathos connector comes with a 14-day free trial. Connect Pagar.me to Clickhouse and start syncing immediately — no credit card required.
