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
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.
Make the first read
The following request lists catalog items without changing organization state.Walk a collection without losing your place
Collection operations acceptpage 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.
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.