Developers

Built for developers

RESTful API. OpenAPI 3.0 spec. SDKs for every language. Process your first payment in minutes.

Quick start

Create a payment in a single API call.

POST /v2/payments
curl -X POST https://api.perfectpay.ai/v2/payments \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 5000,
    "currency": "usd",
    "payment_method": "card",
    "routing": "smart"
  }'

SDKs for every stack

Official client libraries maintained by the PerfectPay team.

P
Python
N
Node.js
G
Go
R
Ruby
P
PHP
J
Java
R
Rust
.
.NET

API features

Everything you need to build world-class payment experiences.

OpenAPI 3.0

Full spec with interactive docs. Import into Postman, Insomnia, or generate clients automatically.

Webhooks

Real-time event notifications with automatic retries, signature verification, and delivery logs.

Idempotency

Safe retries built-in. Every mutating endpoint supports idempotency keys to prevent duplicate operations.

Smart Routing API

Programmatic routing rules. Define processor priority, volume splits, and fallback logic via API.

Agent Commerce API

ACP/UCP protocol endpoints for AI agent payment initiation, authorization, and settlement.

Sandbox

Full test environment with simulated processors, test cards, and webhook event replay.

Stop overpaying.
Start settling instantly.

Join the merchants, platforms, and developers switching to smarter payments infrastructure.