Concepts
This page defines the key objects used throughout the API.
Partner
Section titled “Partner”A partner integration represents your application credentials and access scope.
- identified by
partnerId(your client ID) - can be enabled or disabled
- contains assigned company access in
allowedCompanies
Company
Section titled “Company”A company is a customer account you are allowed to access.
- represented by
companyId - associated with a provider and provider company ID
- can contain one or more locations
Location
Section titled “Location”A location is an optional child scope under a company.
- represented by
locationId - can be passed to variant lookups for location-scoped data
- if
locationIdis omitted in batch lookups, responses are company-scoped
Variant
Section titled “Variant”A variant is the product record returned by batch lookups and webhook payloads.
Variant data includes:
- identity fields like barcode, name, brand, and manufacturer
- product classification fields such as
productType,variantType, andstrainType - potency and terpene fields such as
thc,cbd, andtotalTerpene - optional lifestyle and merchandising fields such as aromas, effects, and tags
classification is deprecated and retained for backward compatibility.
Webhook
Section titled “Webhook”Webhook settings are configured on your partner configuration.
webhook.url: destination URLwebhook.enabled: delivery toggle
Webhook payloads include partner scope, company scope, and an array of variant changes.
Allowed Fields
Section titled “Allowed Fields”Company and location configuration can include allowedFields. These values indicate which optional feature fields are enabled for your integration.
Overrides and Fallback
Section titled “Overrides and Fallback”Config, variant data, and assets all use a layered resolution: default -> company -> location. Location overrides company, company overrides defaults.
See Location Config & Overrides for the full details on how configs are merged and how variant fields are resolved.