Skip to main content
The reference is organized around the path money and access take through Ruba. Start with the authority your code should have, then move into the resource group that owns the state you need.

Choose the authority boundary first

Ruba exposes two API surfaces. They share the same versioned base URL but represent different actors. Use an organization credential only from trusted server-side code. When browser code needs customer-owned billing data, create a customer session on your server and pass its customer access token to the portal API.
Organization request
Never place an Organization Access Token in browser code, public source, analytics payloads, or application logs.

Pick the environment deliberately

Sandbox and production do not share organizations, records, or credentials. Create a token in each environment and keep the variables separate. See Build Safely in the Sandbox.

Follow the request cycle

Every endpoint page is arranged in the same working order:
1

Read the intent

Confirm that the operation owns the state transition or lookup your integration needs.
2

Check the access boundary

Match the credential type and required scopes before constructing the request.
3

Build the request

Select the environment, fill path and query values, and supply the documented body when one is required.
4

Inspect every documented result

Use the success schema for normal processing and handle the listed error responses explicitly.
The Try it workspace keeps this sequence together. It does not change the endpoint contract; it gives you an interactive way to assemble the same request shown in the code examples.

Make the first read

The following request lists catalog items without changing organization state.

Walk a collection without losing your place

Collection operations accept page and limit. The response includes: Continue until the requested page reaches max_page. Official SDK pagination helpers can perform this iteration for you.

Budget requests and retries

Rate limits are applied per organization, customer, or OAuth client:
  • Production: 500 requests per minute.
  • Sandbox: 100 requests per minute.
  • Unauthenticated license-key validation, activation, and deactivation: 3 requests per second in either environment.
When the budget is exhausted, Ruba returns 429 Too Many Requests. Wait for the number of seconds supplied in Retry-After before sending the next attempt.

Start from an official SDK

Enter through the transaction journey

Create a sale

Catalog, checkout sessions, buy links, discounts, and checkout fields.

Manage recurring revenue

Subscriptions, usage events, meters, balances, and seat assignments.

Model customer access

Customer records, members, benefits, licenses, and files.

React to state changes

Webhook payloads for customer, billing, fulfillment, and organization events.