Skip to content

Organization

An Organization represents a company or other legal entity within your application. Organizations store legal and business information and can own multiple sub-resources including addresses, contact methods, preferences, and bank accounts. People can be linked to organizations through the organization-person relationship.

Sample Object

{
  "id": "org_abc123def456",
  "name": "Acme Corp",
  "legal_name": "Acme Corporation Inc.",
  "active": true,
  "registration_number": "US123456789",
  "legal_form": "LLC",
  "vat_number": "VAT-US123456",
  "tax_id": "TAX-987654",
  "founded_date": "2010-05-15T00:00:00Z",
  "type": "technology",
  "industry": "software",
  "currency": "USD",
  "size": "MEDIUM",
  "primary_address_id": "adr_xyz789uvw012",
  "primary_contact_method_id": "cnt_mno345pqr678",
  "primary_bank_account_id": "bnk_678stu901vwx"
}

Fields

FieldTypeDescription
idstringUnique identifier for the organization. Auto-generated on create.
namestringCommon name of the organization. Minimum 2 characters.
legal_namestringRegistered legal name of the organization. Minimum 2 characters.
activebooleanWhether the organization is active.
registration_numberstringOfficial business registration number.
legal_formstringLegal structure such as LLC, Corporation, or Partnership.
vat_numberstringValue-added tax identification number.
tax_idstringTaxpayer identification number.
founded_datedatetimeDate the organization was founded. ISO 8601 format.
typestringBusiness type or category.
industrystringIndustry classification.
currencystringDefault currency for the organization. ISO 4217 format.
sizeenumEmployee count range. One of MICRO, SMALL, MEDIUM, LARGE.
primary_address_idnullable stringID of the primary address. Set automatically when an address is marked as primary.
primary_contact_method_idnullable stringID of the primary contact method. Set automatically when a contact method is marked as primary.
primary_bank_account_idnullable stringID of the primary bank account. Set automatically when a bank account is marked as primary.

Actions

Creating an organization

Creates a new organization record. The organization is created in an active state by default.

obx app identity:organizations init
obx app identity:organizations push init

Onboard an organization

Creates an organization together with addresses, contact methods, preferences, and bank accounts in a single request. The first item in each sub-resource collection is automatically set as the primary.

obx app identity:organizations init
obx app identity:organizations push init

Listing all organizations

Returns all organizations. Each organization object includes core fields but not sub-resources.

obx app identity:organizations list

Getting an organization

Returns the full organization object for the given ID. Sub-resources are not included. Use the full details action to include addresses, contact methods, preferences, and bank accounts.

obx app identity:organizations pull org_abc123def456

Getting an organizations full details

Returns the organization object with all associated addresses, contact methods, preferences, and bank accounts embedded.

obx app identity:organizations pull org_abc123def456 --full

Updating an organization

Updates the core fields of an organization. Only the provided fields are modified.

obx app identity:organizations push org_abc123def456

Deleting an organization

Removes an organization and all associated addresses, contact methods, preferences, and bank accounts.

obx app identity:organizations delete org_abc123def456