What is an organization?
An organization in Nocotax represents a business entity - either a company or an individual person. Every organization can participate in transactions as either a buyer or seller of goods and services. Organizations are the foundation of invoicing in Nocotax:- Every invoice has a supplier (seller) and customer (buyer)
- Both are represented as organizations
- Organizations track tax registrations, addresses, and balances
Organization types: self vs external
Every organization has anownership field that determines its type:
Your organizations (ownership=self)
This are your platform’s business entities. You currently have one self organization per mode (testmode and livemode).- Represents your company
- Only one per mode (for the moment)
- Cannot be deleted
- Where you configure your tax registrations
- Your identity on invoices
External organizations (ownership=external)
These are the entities you do business with - your customers and suppliers.- Represent customers, suppliers, partners
- Unlimited number
- Can be created, updated, deleted
- Each has specific roles
- Can have their own tax registrations
Organization roles
External organizations have roles that define their relationship with your platform:BUYER role
Organizations you sell to. They buy from your platform.- Sales invoices (you invoice them)
- Tracking accounts receivable (money owed to you)
- Customer management
MERCHANT role
Organizations you buy from - your suppliers, vendors, or marketplace sellers.- Purchase invoices (they invoice you, or you self-bill)
- Tracking accounts payable (money you owe them)
- Supplier management
- Marketplace seller payouts
Both roles
An organization can have both CUSTOMER and MERCHANT roles simultaneously:The role determines what the organization can do, not what they’re actively doing. You can set the role even before any transactions occur.
Organizations in invoicing
Organizations play two positions on every invoice: supplier and customer.The supplier_id
The organization providing goods or services (the seller). In sales invoices: Usually your platformThe customer_id
The organization receiving goods or services (the buyer). In sales invoices: Your customerRole vs position
| Role | Can be supplier_id? | Can be customer_id? |
|---|---|---|
| Your platform (self) | ✓ Yes (sales) | ✓ Yes (purchases) |
| BUYER | ✗ No* | ✓ Yes |
| MERCHANT | ✓ Yes | ✗ Yes** |
| Both roles | ✓ Yes | ✓ Yes |
Organization hierarchy
Common patterns
E-commerce platform
- Your platform:
ownership=self - Customers:
ownership=external,role=BUYER - Invoices: You → Customers (sales flow)
Marketplace (commission agent)
- Your platform:
ownership=self - Sellers:
ownership=external,role=MERCHANT - Buyers:
ownership=external,role=BUYER - Commission invoices: Your platform → Sellers (commission flow)
- Optional: Sellers → Buyers (white label invoicing)
Buy and resell (undisclosed agent)
- Your platform:
ownership=self - Suppliers:
ownership=external,role=MERCHANT - Customers:
ownership=external,role=CUSTOMER - Purchase invoices: Suppliers → Your platform (purchases flow)
- Sales invoices: Your platform → Customers (sales flow)
Service platform with suppliers
- Your platform:
ownership=self - Service providers:
ownership=external,role=MERCHANT - Customers:
ownership=external,role=CUSTOMER - May need dual-role if providers also buy services from you
Key attributes
Every organization can have:| Attribute | Description |
|---|---|
name | Full legal entity name (business or person) |
billing_address | Invoicing address |
tax_registrations[] | List of tax registrations |
Best practices
- Set clear, descriptive names for easy identification
- Assign roles when creating organizations, even before first transaction
- Use dual roles for partners you both buy from and sell to
- Keep tax numbers and addresses updated
- Use metadata to link to external systems (Stripe, CRM, etc.)
Next steps
Tax Registrations
Configure tax registrations for organizations
API Reference
Organizations API documentation
