API Reference
Complete API reference documentation is available through the interactive OpenAPI reference below.Base URL
- Production:
https://api.reevit.io - Sandbox:
https://api.reevit.io(usepfk_test_...secretkeys)
Authentication
All API requests require authentication using API keys. See Authentication for details.Rate Limits
- Default: 100 requests per minute per API key
- Burst: Up to 200 requests in a 10-second window
- Rate limit headers are included in all responses:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Remaining requests in windowX-RateLimit-Reset: Unix timestamp when limit resets
Idempotency
All mutation endpoints (POST, PATCH, DELETE) support idempotency via theIdempotency-Key header. See Authentication for details.
Error Responses
All errors follow this format:Billing enforcement (402)
Some endpoints enforce plan and feature access. When enforcement blocks a request, the API returns 402 Payment Required with one of these codes:| Code | Status | When it happens |
|---|---|---|
plan_required | 402 | Feature/live mode requires a paid plan |
subscription_inactive | 402 | Subscription is past due or otherwise inactive |
limit_exceeded | 402 | A metered limit was reached (details include metric, used, limit, and optionally reset) |
Common Error Codes
| Code | Status | Description |
|---|---|---|
unauthorized | 401 | Invalid or missing API key |
forbidden | 403 | Missing required scope |
not_found | 404 | Resource not found |
validation_error | 400 | Invalid request data |
rate_limited | 429 | Too many requests |
server_error | 500 | Internal server error |
Endpoints
Payments
POST /v1/payments/intents- Create payment intentGET /v1/payments- List paymentsGET /v1/payments/{id}- Get paymentPOST /v1/payments/{id}/confirm- Confirm paymentPOST /v1/payments/{id}/confirm-intent- Confirm payment intent (Public)POST /v1/payments/{id}/retry- Retry paymentPOST /v1/payments/{id}/cancel- Cancel paymentPOST /v1/payments/{id}/refund- Refund paymentGET /v1/payments/stats- Get payment statistics
Connections
POST /v1/connections- Create connectionGET /v1/connections- List connectionsGET /v1/connections/{id}- Get connectionPOST /v1/connections/test- Test connectionPATCH /v1/connections/{id}/status- Update connection statusDELETE /v1/connections/{id}- Delete connection
Subscriptions
POST /v1/subscriptions- Create subscriptionGET /v1/subscriptions- List subscriptionsGET /v1/subscriptions/{id}- Get subscriptionPATCH /v1/subscriptions/{id}- Update subscriptionPOST /v1/subscriptions/{id}/cancel- Cancel subscriptionPOST /v1/subscriptions/{id}/resume- Resume subscription
Invoices
GET /v1/invoices- List invoicesGET /v1/invoices/{id}- Get invoicePOST /v1/invoices/{id}/retry- Retry invoicePOST /v1/invoices/{id}/cancel- Cancel invoice
Routing Rules
GET /v1/routing-rules- List routing rulesPOST /v1/routing-rules- Create routing ruleGET /v1/routing-rules/{id}- Get routing rulePATCH /v1/routing-rules/{id}- Update routing ruleDELETE /v1/routing-rules/{id}- Delete routing rule
Webhooks
GET /v1/webhooks/config- Get webhook configurationPOST /v1/webhooks/config- Update webhook configurationGET /v1/webhooks/events- List webhook eventsGET /v1/webhooks/events/{id}- Get webhook eventPOST /v1/webhooks/events/{id}/replay- Replay webhook event
Policies
GET /v1/policies/fraud- Get fraud policyPOST /v1/policies/fraud- Update fraud policyGET /v1/policies/retry- Get retry policyPOST /v1/policies/retry- Update retry policy
Workflows
GET /v1/workflows/integrations- List integrationsPOST /v1/workflows/integrations- Create integrationGET /v1/workflows/templates- List templatesPOST /v1/workflows/templates- Create templateGET /v1/workflows/rules- List workflow rulesPOST /v1/workflows/rules- Create workflow rule
SDKs
We provide official SDKs for popular languages. See SDKs for details.Support
- 📖 Documentation - Complete guides
- 💬 Support - Email support
- 🐛 GitHub Issues - Report bugs

