PHPackages                             revkeen/sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. revkeen/sdk-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

revkeen/sdk-php
===============

RevKeen is a fintech-grade API for payments, subscriptions, invoices, and billing. The canonical production MCP server is available at `https://mcp.revkeen.com/mcp`. \*\*API Version:\*\* `2026-05-01` — Pin with the `RevKeen-Version` header. \*\*Quick Links:\*\* \[Full Documentation\](https://docs.revkeen.com) | \[Authentication\](https://docs.revkeen.com/authentication) | \[OAuth\](https://docs.revkeen.com/oauth) | \[SDKs\](https://docs.revkeen.com/sdks) | \[Webhooks\](#webhooks) | \[MCP Guide\](https://docs.revkeen.com/mcp) ## Authentication Two authentication methods are supported: ### API Keys (recommended for server-to-server REST API integrations) Send your API key in the `x-api-key` header. Get keys from the \[Dashboard\](https://app.revkeen.com/settings/api-keys). Use `rk\_sandbox\_\*` for test mode and `rk\_live\_\*` for production. ### OAuth 2.1 (recommended for MCP and third-party integrations) Use OAuth 2.1 with PKCE for authorization code flow or client credentials for server-to-server. Tokens are sent via `Authorization: Bearer rk\_oauth\_\*`. See the \[OAuth guide\](https://docs.revkeen.com/oauth) for setup. - \*\*Authorization Code + PKCE\*\* — user-facing integrations, MCP hosts - \*\*Client Credentials\*\* — server-to-server, automated workflows - \*\*Dynamic Client Registration\*\* — MCP hosts that auto-register ## MCP Integration RevKeen's canonical production MCP server is `https://mcp.revkeen.com/mcp` using Streamable HTTP and OAuth 2.1 bearer tokens. - \*\*Customer launch surface\*\* — read-first customer v1 tools with least-privilege scopes - \*\*Host setup guide\*\* — see the \[MCP guide\](https://docs.revkeen.com/mcp) for ChatGPT, Claude, and compatible MCP hosts ## API Key Scopes Scopes follow `{resource}:{action}` format (e.g., `invoices:read`, `customers:\*`). See \[full scope reference\](https://docs.revkeen.com/authentication#scopes). | Category | Scope | Description | |----------|-------|-------------| | \*\*Payments &amp; Checkout\*\* | `checkout:read` | View checkout session details | | | `checkout:write` | Create and manage checkout sessions | | | `cart:read` | View cart session details (REV-3511) | | | `cart:write` | Create and mutate cart sessions, line items, add-ons (REV-3511) | | | `payment\_links:read` | View payment links | | | `payment\_links:write` | Create and manage payment links | | | `charges:read` | View one-time charges | | | `charges:write` | Create one-time charges for customers | | | `payments:read` | View payment details | | | `payments:write` | Capture or void payments | | | `payment\_intents:read` | View payment intent details | | | `payment\_intents:write` | Create, confirm, capture, and cancel payment intents | | | `setup\_intents:read` | View setup intent details | | | `setup\_intents:write` | Create, confirm, and cancel setup intents | | | `payment\_methods:read` | View saved payment methods | | | `payment\_methods:write` | Attach and detach payment methods | | \*\*Billing\*\* | `invoices:read` | View invoices | | | `invoices:write` | Create, update, and manage invoices | | | `subscriptions:read` | View subscriptions | | | `subscriptions:write` | Create, update, pause, and cancel subscriptions | | | `subscription\_schedules:read` | View subscription schedule details | | | `subscription\_schedules:write` | Create, update, cancel, and release subscription schedules | | | `orders:read` | View orders | | | `orders:write` | Create and manage orders | | | `credit\_notes:read` | View credit notes | | | `credit\_notes:write` | Create and void credit notes | | \*\*Products &amp; Pricing\*\* | `products:read` | View product catalog | | | `products:write` | Create and update products | | | `prices:read` | View pricing information | | | `prices:write` | Create and update prices | | | `discounts:read` | View discount codes | | | `discounts:write` | Create and manage discount codes | | | `tax\_rates:read` | View tax rate configurations | | | `tax\_rates:write` | Configure tax rates | | \*\*Usage &amp; Metering\*\* | `meters:read` | View meter configurations | | | `meters:write` | Create and update meters | | | `usage:read` | View usage events and balances | | | `usage:write` | Ingest usage events | | \*\*Customers\*\* | `customers:read` | View customer information | | | `customers:write` | Create and update customers | | | `entitlements:read` | View customer entitlements / feature access | | | `entitlements:write` | Grant and revoke customer entitlements | | | `businesses:read` | View business entities | | | `businesses:write` | Manage business entities | | \*\*Money Movement\*\* | `refunds:read` | View refund details | | | `refunds:write` | Issue refunds | | | `voids:read` | View voided transactions | | | `voids:write` | Void unsettled transactions | | | `disputes:read` | View chargebacks and disputes | | | `disputes:write` | Respond to disputes | | | `payouts:read` | View payout and settlement data | | \*\*Direct Debit\*\* | `mandates:read` | View Direct Debit mandates and collection status | | | `mandates:write` | Create, suspend, reinstate, and cancel Direct Debit mandates | | \*\*Terminal\*\* | `terminal:read` | View terminal devices and card-present payments | | | `terminal:write` | Initiate, cancel, refund, and void terminal payments | | \*\*Data Exchange\*\* | `exports:read` | View and download data exports | | | `exports:write` | Create data exports | | | `imports:read` | View import status and history | | | `imports:write` | Upload and run data imports | | \*\*Analytics &amp; Reporting\*\* | `analytics:read` | View analytics and reports | | | `finance:read` | View financial reports | | \*\*Communication\*\* | `comms:read` | View SMS and email delivery logs | | | `comms:write` | Send SMS, email, and WhatsApp messages | | | `automations:read` | View automations, runs, approvals, and traces | | | `automations:write` | Create automations and trigger runs | | \*\*Integrations\*\* | `apps:read` | View connected applications | | | `apps:write` | Manage app connections | | | `webhooks:read` | View webhook endpoints | | | `webhooks:write` | Manage webhook endpoints | | | `integrations:read` | View integration status and sync logs | | | `integrations:write` | Activate, configure, and sync integrations | | | `events:read` | View webhook event logs | | | `events:write` | Resend and test webhook events | | | `sync:read` | View sync watermarks and state | | | `sync:write` | Update sync watermarks | ## Environments | Environment | Base URL | API Key Prefix | |-------------|----------|----------------| | \*\*Staging\*\* | `https://staging-api.revkeen.com/v2` | `rk\_sandbox\_\*` | | \*\*Production\*\* | `https://api.revkeen.com/v2` | `rk\_live\_\*` | ## Idempotency Include `Idempotency-Key` header (UUID) on mutation requests. Keys are valid for 24 hours. ## Rate Limits | Plan | Requests/min | Burst | |------|-------------|-------| | \*\*Staging\*\* | 100 | 200 | | \*\*Production\*\* | 1000 | 2000 | | \*\*Enterprise\*\* | Custom | Custom |

1.20260819.1529(6d ago)08↑2525%[1 PRs](https://github.com/RevKeen/sdk-php/pulls)unlicensePHPPHP ^8.1CI passing

Since Mar 12Pushed yesterdayCompare

[ Source](https://github.com/RevKeen/sdk-php)[ Packagist](https://packagist.org/packages/revkeen/sdk-php)[ Docs](https://openapi-generator.tech)[ RSS](/packages/revkeen-sdk-php/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (333)Used By (0)

RevKeen PHP SDK
===============

[](#revkeen-php-sdk)

Important

This repository is a generated release mirror. Propose source changes in [RevKeen/revkeen](https://github.com/RevKeen/revkeen); `main` here is updated only by an explicit reviewed SDK release.

[![Packagist Version](https://camo.githubusercontent.com/874911e3faf8bd672d480053b642c5e65ac7cf802db48a6c99302f4000b2cde1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7265766b65656e2f73646b2d7068702e737667)](https://packagist.org/packages/revkeen/sdk-php)[![PHP Version](https://camo.githubusercontent.com/7ba669f3247a5eb656772bbc52a31ea86d353236c3a08484e8e1d5fb3bbc7b36/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7265766b65656e2f73646b2d7068702e737667)](https://packagist.org/packages/revkeen/sdk-php)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Official PHP client for the [RevKeen API](https://docs.revkeen.com/api-reference/openapi) — auto-generated from the OpenAPI specification via [OpenAPI Generator](https://openapi-generator.tech).

Installation
------------

[](#installation)

```
composer require revkeen/sdk-php
```

Requires PHP 8.1 or later.

Quick Start
-----------

[](#quick-start)

```
