Skip to main content
Sets global SDK configuration options (organization ID and optional settings). Typically called once during initialization.
It’s recommended to call configure() once with your orgId so you don’t need to pass it every time.

Parameters

orgId
string
required
Your organization’s ID (required for all operations). Must be provided either in configure() or in each API call.
baseUrl
string
default:"https://billing.funnelfox.com"
Custom API base URL if you are pointing to a non-default backend.
region
string
default:"default"
Deployment region to use (if applicable).

Returns

This function does not return a value. The configuration is stored globally and applied to all subsequent SDK operations.

Example

import { configure } from '@funnelfox/billing';

configure({
  orgId: 'your-org-id',       // Required: your organization ID
  baseUrl: 'https://custom.api', // Optional: custom API endpoint (default is https://billing.funnelfox.com)
  region: 'us-east-1',        // Optional: region identifier (default is "default")
});
I