Payments API
Create charges, refunds, and subscriptions with idempotent POST requests and typed error codes.
Inspired by developer-first payment platforms. Copal gives you REST endpoints, webhook events, and typed SDKs so you ship billing without negotiating with banks.
Copal sits beside the stacks you already deploy on.
Terminal
curl https://api.copal.dev/v2/payments \
-H "Authorization: Bearer sk_live_..." \
-d amount=2900 \
-d currency=usd \
-d customer=cus_8f2k9xIdempotent payment endpoints with sandbox keys, rate-limit headers, and structured error codes your CI can parse.
Latency p99
42ms
Uptime
99.99%
Regions
12
Every endpoint your integration needs, grouped in one view.
Create charges, refunds, and subscriptions with idempotent POST requests and typed error codes.
Signed events with replay.
Marketplace payouts and splits.
Block fraud before it hits your ledger with configurable risk scores.
Pay per successful API call. No setup fees on the builder tier.
For side projects and staging environments.
For production apps with real volume.
Custom contracts and compliance reviews.
Engineers who replaced legacy billing with Copal.
“We migrated off a legacy gateway in two sprints. The webhook replay tool alone saved our on-call rotation.”
“Sandbox keys mirror production behavior. Our integration tests finally catch real edge cases.”
“The TypeScript SDK types match the docs exactly. No more guessing field names at 2 a.m.”
Create a sandbox account, run the curl example above, and watch the webhook land in your dashboard.