Organizations

Overview

Organizations represent businesses and companies associated with your customers. They enable B2B management — group customers by company, view aggregate invoice analytics, and process batch payments.


How It Works

  1. Create an organization - Define a company or institution
  2. Assign customers - Link customers to the organization via their organization_id
  3. View analytics - See customer counts, invoice totals, and outstanding balances per organization
  4. Batch operations - Pay multiple invoices at once for an organization

Example: A university subscribes 50 staff members. Create an "State University" organization, assign all staff as customers, then use the analytics endpoint to see total outstanding invoices across all staff. Use batch pay to settle them all with one check.


API Endpoints

MethodEndpointDescription
GETList organizationsRetrieve a paginated list with analytics

Important Behaviors

  • Account scoping: Organizations are scoped by account. An organization from one account is invisible to another.
  • List includes analytics: The list endpoint includes customers_count, invoices_count, open_invoices_count, and total_net_due_by_currency per organization.

Organization Object

AttributeTypeDescription
idintegerUnique identifier
namestringOrganization name
customers_countintegerNumber of customers (conditional, included on list/show)
invoices_countintegerTotal invoices across customers (conditional, list only)
open_invoices_countintegerOpen invoices count (conditional, list only)
total_net_due_by_currencyobjectOutstanding amounts keyed by currency (conditional, list only)
created_atintegerUnix timestamp of creation
updated_atintegerUnix timestamp of last update