— API & Developers

Build anything on top of Recura

A complete REST API with 120+ endpoints, typed SDKs in 5 languages, webhook documentation, and integration guides for every major platform.

120+ endpointsSDK in 5 languagesWebhook delivery
SDKs & Libraries

Node.js

v4.2.1

Python

v3.1.8

Ruby

v2.8.0

Go

v1.5.2

Laravel

v3.0.2

Java

v1.4.0

Rust

v1.1.5

TypeScript

v2.1.0

C#

v1.8.4

Swift

v2.0.1

Kotlin

v1.2.0

PHP

v2.4.5
Popular Endpoints
MethodEndpointDescriptionAuth
GET/v1/subscriptionsList all subscriptions with pagination, filtering, and searchBEARER
POST/v1/subscriptionsCreate a new subscription with trial, proration, and plan optionsBEARER
PUT/v1/subscriptions/:idUpdate plan, quantity, billing interval, or add-onsBEARER
GET/v1/invoicesList invoices by status, date range, or customer IDBEARER
POST/v1/invoices/:id/payAttempt payment on an outstanding invoiceBEARER
GET/v1/customers/:idRetrieve a customer with subscription and payment method historyBEARER
DEL/v1/subscriptions/:idCancel a subscription immediately or at period endBEARER
Quick Start
quickstart.js
// Install: npm install @recura/sdk
import { Recura } from '@recura/sdk';
const client = new Recura({ apiKey: process.env.RECURA_API_KEY });

// Create a subscription
const sub = await client.subscriptions.create({
  customer_id: 'cus_8f3a1b2c',
  plan_id: 'plan_growth_annual',
  trial_days: 14
});
console.log(sub.id);

Webhooks: subscribing to billing lifecycle events

Set up endpoints, verify signatures, handle retries, and build idempotent event processors for every billing event.

Webhooks11 min

Authentication: API keys, OAuth 2.0, and key scoping

Best practices for API key management, rotating secrets, and restricting key permissions to minimum required scopes.

Auth8 min

Idempotency keys: safely retrying API requests

How to use idempotency keys to prevent duplicate subscriptions, payments, and customers during network failures.

Best practices6 min
Background Pattern
Still Have Questions?

Our billing experts are
one message away

Whether you're evaluating Recura or already a customer, our team is ready to help you get the most out of automated billing.

340+ help articles120+ API endpoints24/7 chat support