Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

682 B
Raw Blame
from datetime import timedelta

from products.warehouse_sources.sources.sdk import incremental_field

BASE_URL = "https://api-gw.payclip.com"
TRANSACTION_WINDOW = timedelta(days=30)
SETTLEMENT_HISTORY_DAYS = 89
ENDPOINTS = {
    "transactions": ["receipt_no"],
    "settlements": ["settlement_report_id"],
    "settlement_payments": ["settlement_report_id", "receipt_no"],
}
INCREMENTAL_FIELDS = {"transactions": [incremental_field("created_at")]}
AUTH_ERROR = "Clip rejected your credentials. Check your API key and secret key in the Clip developer dashboard."
PERMISSION_ERROR = "Clip denied access. Check your API permissions. Deposit tables require access to the deposits API."