RevKeen Docs
Developers

API Reference

Complete REST API documentation for the RevKeen platform

The RevKeen API v2 is organized around REST. Built with OpenAPI 3.1, our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Environments

EnvironmentBase URLPurpose
Productionhttps://api.revkeen.com/v2Live transactions, real money
Sandboxhttps://sandbox-api.revkeen.com/v2Test environment, no real charges
Mock Serverhttps://mock-api.revkeen.com/v2Schema validation with mock responses

Authentication

Include your API key in the x-api-key header:

x-api-key: rk_sandbox_your_api_key
PrefixEnvironment
rk_live_*Production API key
rk_sandbox_*Sandbox API key

Core Resources

ResourceDescriptionReference
CustomersCustomer management and payment methodsCustomers
ProductsProduct catalog and pricingProducts
PricesFixed, PWYW, and free pricing modelsPrices
SubscriptionsRecurring billing managementSubscriptions
InvoicesInvoice creation and payment processingInvoices
OrdersOne-off purchases with lifecycle opsOrders

Payments and Billing

ResourceDescriptionReference
ChargesOne-time charges for existing customersCharges
Payment LinksShareable payment pagesPayment Links
Checkout SessionsHosted checkout experiencesCheckout
RefundsRefund management and trackingRefunds
DisputesChargeback handling with evidenceDisputes
PayoutsSettlement batches and trackingPayouts

Configuration and Analytics

ResourceDescriptionReference
DiscountsPercentage and fixed amount discountsDiscounts
Tax RatesManual tax rate overridesTax Rates
WebhooksEvent notificationsWebhooks

Interactive API Reference

Explore the complete API with interactive examples, try requests directly from the documentation, and generate code snippets for multiple languages.

Response Codes

CodeDescription
200OK -- The request was successful
201Created -- A new resource was created
400Bad Request -- The request was malformed
401Unauthorized -- Invalid or missing API key
403Forbidden -- Insufficient permissions
404Not Found -- Resource does not exist
422Unprocessable Entity -- Validation failed
429Too Many Requests -- Rate limit exceeded
500Internal Server Error -- Something went wrong

Rate Limiting

The RevKeen API implements rate limiting to ensure fair usage. Rate limits are applied per API key:

  • Standard tier: 1,000 requests per minute
  • Pro tier: 5,000 requests per minute
  • Enterprise: Custom limits available

Rate limit headers are included in all responses: X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset.

SDKs and Libraries

All SDKs are auto-generated from the OpenAPI specification using Fern.

SDKPackageDocumentation
TypeScript@revkeen/sdk on npmTypeScript SDK
Pythonrevkeen on PyPIPython SDK
PHPrevkeen/sdk-php on PackagistPHP SDK

On this page