Skip to content

Customers

Customer is the top-level tenant/organization entity. Usually represents a legal entity, but can also represent several legal entities. All data in MDS is partitioned by customer_id.

Storage Location

{customer_id}-customer.json

Fields

FieldTypeRequiredDescription
idintegerYesUnique ID of customer. Also used as the container name and partition key.
namestringYesCustomer/organization name.
formal_namestringNoLegal name used in official registry.
company_numberstringNoCompany number reference from official registry (e.g., org.nr in Norway).
parent_customer_idintegerNoReference to parent customer (in group of companies).

Example

json
{
  "id": "10352",
  "company_number": "990 834 490",
  "name": "BrødBakerne (Kanelsnurren, Steam, Mjøl & Encore)",
  "formal_name": "Brød Bakerne AS"
}

Multi-Tenant Architecture

The customer_id is the primary partition key for all data in MDS:

  • Each customer has their own Azure Blob Storage container
  • Container name equals customer_id
  • All entities reference customer_id for tenant isolation
  • Access is controlled per customer via SAS tokens

Technical documentation for partners and integrators