Skip to main content

Organisation

Organisations represent parties in the supply chain including manufacturers, suppliers, distributors, and retailers in the TrackVision system.

The organisation Object

Organisations store information about business parties in the supply chain including company details, contact information, and relationships.

Field NameTypeDescription
idstringPrimary key for the organisation. Auto set if using GS1 IDs.
user_createdobjectUser who created the organisation. Read-only. Links to directus_users.
date_createddatetimeTimestamp in ISO 8601 when the organisation was created. Read-only.
user_updatedobjectUser who last updated the organisation. Read-only. Links to directus_users.
date_updateddatetimeTimestamp in ISO 8601 when the organisation was last updated. Read-only.
organisation_namestringThe legal or trading name of the organisation.
organisation_company_prefixstringGS1 Company Prefix for the organisation.
organisation_roleobjectJSON array containing the role(s) this organisation plays (e.g., DISTRIBUTOR, SUPPLIER, RETAILER, MANUFACTURER_OF_GOODS).
pglnstringGS1 Party Global Location Number (Party GLN) for the organisation.
custom_idstringAn optional field that can hold a non-GS1 custom ID for the org. Hidden in the UI by default.
digital_linkstringGS1 Digital Link URL for the organisation. Auto generated if using GS1 IDs.
organisation_redirection_urlstringURL where the organisation should redirect when scanned.
addressstringStreet address of the organisation.
citystringCity where the organisation is located.
statestringState, province, or region of the organisation.
postal_codestringPostal or ZIP code of the organisation.
primary_contact_telephonestringPrimary telephone number for the organisation.
primary_contact_emailstringPrimary email address for the organisation.
primary_contact_urlstringPrimary website URL for the organisation.
use_gs1_identifiersbooleanWhether GS1 identifiers are used for this organisation.
country_codeobjectISO country code reference for the organisation. Links to ref_country.
parent_organisationobjectReference to the parent organisation in a hierarchy. Links to organisation.
accountobjectAccount associated with this organisation. (Multi-tenant installations only)
primary_imageobjectPrimary image file for the organisation (e.g. logo). Links to directus_files.
organisation_redirection_ruleobjectFlow rule for advanced redirection logic. Links to directus_flows.
translationsarray of objectsTranslations for multi-lingual organisation content.
certificationsarray of objectsCertifications associated with this organisation.

Sub-Objects

User Object (user_created, user_updated)

See Users for the full schema.

Account Object (account)

See Account for the full schema.

File Object (primary_image)

See Files for the full schema.

Country Object (country_code)

See Country for the full schema.

Organisation Object (parent_organisation)

See Organisation for the full schema.

Organisation Translation Object (translations)

FieldTypeDescription
idintegerUnique identifier of the translation record.
languages_codestringLanguage code for this translation (e.g., "en-US").
organisation_descriptionstringTranslated organisation description.
organisation_contentstringTranslated organisation content.

List Organisations

List existing organisations.

GET /items/organisation

Query Parameters

Supports all global query parameters.

Returns

An array of up to limit organisation objects. If no items are available, data will be an empty array.


Retrieve an Organisation

Retrieve a specific organisation by ID.

GET /items/organisation/:id

Returns

Returns an organisation object if a valid primary key was provided.


Create an Organisation

Create a new organisation.

POST /items/organisation

{
"organisation_name": "TrackVision Solutions Ltd",
"organisation_type": "manufacturer",
"gln": "1234567890123",
"registration_number": "12345678",
"contact_email": "contact@trackvision.com",
"contact_phone": "+1-555-0123",
"website": "https://trackvision.com",
"address": "123 Business Street",
"city": "Tech City",
"country": "United States",
"postal_code": "12345",
"account": "f1b2c3d4-e5f6-7890-1234-567890abcdef"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial organisation object.

Returns

Returns the organisation object for the created organisation.


Update an Organisation

Update an existing organisation.

PATCH /items/organisation/:id

{
"organisation_name": "TrackVision Solutions Ltd - Updated",
"contact_email": "info@trackvision.com",
"website": "https://www.trackvision.com"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial organisation object.

Returns

Returns the organisation object for the updated organisation.


Delete an Organisation

Delete an existing organisation.

DELETE /items/organisation/:id

Returns

Empty body.