Party
A Party is any actor in the system — your tenant, your customers,
your suppliers, your users. One unified model with a kind
discriminator.
| Field | Type | Notes |
|---|---|---|
id | integer | Stockaj internal id |
kind | enum | TENANT, RENTER, SUPPLIER, USER |
name | string | |
gln | string(13) | Global Location Number, optional |
gs1_company_prefix | string | Tenant-owned GS1 prefix (BYO), optional |
email | string | E-164/RFC 5321 |
phone | string | E.164 |
country | string | ISO 3166-1 alpha-2 |
tz | string | IANA tz database identifier |
vat_number | string | Optional |
metadata | object | Per-vertical custom fields |
GLN / GS1 prefix
A party that participates in commerce (issues invoices, ships goods) should have a GLN. Stockaj allocates one from its Swiss GS1 pool if the tenant does not bring its own prefix.
Privacy
Parties of kind=RENTER typically include personal data. They are
subject to retention rules per the GDPR / FADP
section. Soft-deleted parties are purged after 30 days.