Skip to main content

Internal organization object with comprehensive administrative and operational details

_id
string
required

Unique identifier for the organization (MongoDB ObjectId). Example: 61a712ddec0441328052f262

user
object
required

Primary user information associated with the organization

status
enum<string>
required

Current organization status. Example: verified

Available options:
pending,
active,
suspended,
inactive,
verified
productId
string
required

Product ID for the organization's subscription. Example: prod_free or prod_OaZOlUL01AiiNl

eligible
boolean
required

Whether organization is eligible for certain features or benefits. Example: true

createdTime
string<date-time>
required

ISO 8601 timestamp when the organization was created. Example: 2021-12-01T06:14:53.684Z

updatedTime
string<date-time>
required

ISO 8601 timestamp when the organization was last updated. Example: 2024-09-13T08:29:24.650Z

billingMode
enum<string>

Billing mode for the organization. Example: INTL

Available options:
LOCAL,
INTL
productName
string

Name of the subscribed product/plan. Example: Free Plan

licenseCode
string

License code identifier for organization features. Example: task-demo

customerId
object

Payment gateway customer identifiers

curPeriodStartTime
string<date-time> | null

Current billing period start time. Example: 2025-01-01T00:00:00+00:00

curPeriodEndTime
string<date-time> | null

Current billing period end time. Example: 2025-02-01T00:00:00+00:00

useBigData
boolean

Whether organization has access to big data features. Example: true

isDoTask
boolean

Flag indicating if organization can perform tasks. Example: true

configuration
object

Organization-specific configuration settings

country
object

Country information for the organization

verifiedTime
string<date-time> | null

Timestamp when organization was verified. Example: 2021-12-01T06:15:55+00:00

isDeleted
boolean

Soft delete flag for data retention. Default: false

deletedTime
string<date-time> | null

Timestamp when the organization was soft deleted

limits
object

Organization usage limits based on subscription

usage
object

Current usage statistics

subscription
object

Subscription information from payment gateway

billing
object

Billing information

integrations
object

Third-party integrations

metadata
object

Additional metadata for internal use

failedCode
enum<string>

Oraganization Module business failedCode that indicate specific failure conditions or business rule violations during organization module operations. These codes help identify the failed operation of organization-related and provide standardized failure identification across the system.

Possible values:

  • org-031: Duplicate entry - Organization name already exists
  • org-032: Invalid state/condition - Organization state invalid
  • org-033: Organization not found - Organization does not exist
  • org-034: Verification failed - Organization verification error
  • org-035: Access forbidden - User lacks organization permission
  • org-036: Organization creation failed - Failed to create organization
  • org-037: Organization update failed - Failed to update organization
  • org-038: Organization delete failed - Failed to delete organization
  • org-039: Subscription error - Organization subscription issue
  • org-040: Limit exceeded - Organization usage limit reached
  • org-041: Payment error - Organization billing/payment failure
  • org-042: License error - Organization license validation failed
  • org-043: Integration error - External service integration failure
  • org-044: Compliance error - Regulatory compliance violation
  • org-045: Server error - Internal server failure
Available options:
org-031,
org-032,
org-033,
org-034,
org-035,
org-036,
org-037,
org-038,
org-039,
org-040,
org-041,
org-042,
org-043,
org-044,
org-045