# Pagar.me + PostgreSQL

> Automate the ingestion of transactions, charges, and subscriptions from Pagar.me into PostgreSQL. Start for free.

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

[Pagar.me](http://pagar.me/) is a Brazilian company specializing in online payment solutions. It offers services that enable payment integration into digital platforms, facilitating online transactions for businesses across various sectors. Amazon Redshift, on the other hand, is a cloud data warehouse designed for fast and efficient analysis of large data volumes.

With Erathos, your Pagar.me data is delivered to PostgreSQL as a reliable operational source, ready to power internal applications or standard SQL reports, without manual synchronization scripts.

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

The integration automatically syncs the primary Pagar.me objects:

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

### Why sync Pagar.me with PostgreSQL?

In PostgreSQL, your Pagar.me data becomes available as a reliable operational source, ready to power internal applications or standard SQL analytics.

### How it works

Erathos connects to Pagar.me via official API and syncs your data incrementally: only new or updated records are processed in each run, keeping pipelines fast and PostgreSQL costs predictable. You choose the sync frequency (ranging from 5 minutes to daily), the objects to sync, and the target dataset. Every run is logged with complete observability: execution time, rows processed, error context, and instant alerts via Slack or email if anything goes wrong.

## Data in your data warehouse in minutes

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

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

### Total control over your Pagar.me pipelines

Configure sync frequency and type by table. Erathos uses intelligent UPSERT in PostgreSQL—ensuring data consistency even during reprocessing.

### 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 PostgreSQL has never been easier

Erathos is a data ingestion platform for finance and data teams. With the Pagar.me connector, you automatically sync transactions, subscriptions, charges, and refunds to PostgreSQL—auditable, reliable financial data that is always up to date.

## 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 into every run, zero maintenance, and none of the opacity of traditional market tools.

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

Erathos syncs Transactions, Subscriptions, Charges, Refunds, Plans, and Customer data from Pagar.me to PostgreSQL. Webhook events such as approved and failed payments, as well as chargebacks, are also automatically captured.

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

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

### What happens if a Pagar.me synchronization 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 execution is logged with run time, processed rows, 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 includes a 14-day free trial. Connect Pagar.me to PostgreSQL and start syncing immediately—no credit card required.
