How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

LeafLink Traceability API

The traceability API from LeafLink — 22 operation(s) for traceability.

LeafLink Traceability API is one of 88 APIs that LeafLink publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Traceability. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, rate-limit docs, and authentication docs.

This API exposes 28 operations across 22 paths, and defines 68 schemas. It is described by OpenAPI 3.2.0, at version 2022-10-31.

Requests are made against 2 base URLs: https://api.leaflink.com, https://staging-api.leaflink.com.

28 operations 22 paths 68 schemas 1 DELETE15 GET6 PATCH6 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2022-10-31
Base URL
https://api.leaflink.com
Authentication
HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

LeafLink Traceability API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). An API key is passed in the header as Authorization (tokenAuth). By default, every request must be authenticated.

  • bearerAuth — Authentication is done via access tokens (JWTs). See the [API authentication doc](/api/getting-started/authentication) for more information.
  • tokenAuth — Token-based authentication with required prefix "Token"

Paths & Operations 28

Across 22 paths, the API surfaces 28 operations — 1 DELETE, 15 GET, 6 PATCH, 6 POST. Each is listed below with its method, path, parameters, and response codes.

traceability 28
PATCH
/traceability/actions/refresh_products_packages
Reconcile inventory for products, utilizes marketplace celery tasks + traceability service data.
traceability_actions_refresh_products_packages_partial_update 2 params body → 200429
GET
/traceability/actions/refresh_resources
Perform refresh for specified resource types and optional datetime.
traceability_actions_refresh_resources_retrieve 5 params → 200429
POST
/traceability/companies
Create a new company in the traceability service.
traceability_companies_create 2 params body → 201429
GET
/traceability/companies/{id}
Get company by ID.
traceability_companies_retrieve 3 params → 200429
PATCH
/traceability/companies/{id}
Update a company in the traceability service.
traceability_companies_partial_update 3 params body → 200429
GET
/traceability/company_customers
Get company customers.
traceability_company_customers_list 6 params → 200429
GET
/traceability/company_customers/{id}
Get company customer by ID.
traceability_company_customers_retrieve 3 params → 200429
POST
/traceability/company_licenses/
Get company licenses
traceability_company_licenses_create 2 params body → 200429
DELETE
/traceability/company_setting/{id}
Delete a company's integration.
traceability_company_setting_destroy 3 params → 200429
GET
/traceability/drivers
Get all drivers for company
traceability_drivers_list 6 params → 200429
POST
/traceability/drivers
Create a new driver in the traceability service.
traceability_drivers_create 2 params body → 200429
PATCH
/traceability/drivers/{external_id}
Update a driver in the traceability service.
traceability_drivers_partial_update 3 params body → 200429
GET
/traceability/items
Get all items from the traceability service for a company.
traceability_items_list 7 params → 200429
GET
/traceability/orders_by_package_labels
Unified API Orders by Package Labels.
traceability_orders_by_package_labels_list 5 params → 200429
GET
/traceability/orders_by_package_labels/{id}
Unified API Orders by Package Labels.
traceability_orders_by_package_labels_retrieve 2 params → 200429
GET
/traceability/packages
Get company packages
traceability_packages_list 26 params → 200429
GET
/traceability/refresh_requests
Get all refreshrequests from the traceability service for a company.
traceability_refresh_requests_list 8 params → 200429
GET
/traceability/templates
Get templates from the traceability service for company.
traceability_templates_list 8 params → 200429
POST
/traceability/templates
Create a new Template in the traceability service.
traceability_templates_create 2 params body → 201429
GET
/traceability/templates/{id}
Get template by ID for company.
traceability_templates_retrieve 3 params → 200429
PATCH
/traceability/templates/{id}
Update a template in the traceability service.
traceability_templates_partial_update 3 params body → 200429
GET
/traceability/transfer_companies
Get origin/destination companies of a transfer + their associated license
traceability_transfer_companies_list 9 params → 200429
GET
/traceability/transfers
Get traceability transfer data. Note: resourcetype fields will not be present in the payloads. They are just needed to help define polymorphic fields.
traceability_transfers_list 24 params → 200429
POST
/traceability/transfers
Create a new manifest in the traceability service.
traceability_transfers_create 2 params body → 201429
PATCH
/traceability/transfers/{id}
Update a transfer in the traceability service.
traceability_transfers_partial_update 3 params body → 200429
GET
/traceability/vehicles
Get all vehicles
traceability_vehicles_list 6 params → 200429
POST
/traceability/vehicles
Create a new vehicle in the traceability service.
traceability_vehicles_create 2 params body → 200429
PATCH
/traceability/vehicles/{external_id}
Update a vehicle in the traceability service.
traceability_vehicles_partial_update 3 params body → 200429

Schemas 68

The contract defines 68 schemas that model the data the API accepts and returns. The most detailed are MetrcPackage (28 properties), TraceabilityItem (28 properties), TraceabilityTransfer (28 properties), TraceabilityTemplateDetail (25 properties). Each schema is shown below with its type and property counts.

PaginatedTraceabilityDriverList
object
4 properties 2 required
PolymorphicVehicleVendorFields
PatchedTransferUpdateInputRequest
object
11 properties
CompanyCreateRequest
object
7 properties 4 required
PaginatedTraceabilityTemplateList
object
4 properties 2 required
TraceabilityPackage
object
Traceability package fields from the Traceability.commonpackage and Traceability.metrcpackage tables.
19 properties 19 required
PolymorphicDeliveryPackageVendorFields
PatchedTemplateUpdateRequest
object
9 properties
TraceabilityDelivery
object
Serializer for traceability Deliveries. Uses CommonDelivery + vendor-specific data. Metrc will return one instance and BioTrack will have none as there is no u…
11 properties 8 required
TraceabilityCompany
object
13 properties 11 required
PaginatedUnifiedTraceabilityPackageOrdersList
object
4 properties 2 required
PatchedTraceabilityVehicleCreateUpdateInputRequest
object
7 properties
MetrcVehicle
object
1 property 1 required
TraceabilityVehicle
object
11 properties 11 required
PolymorphicTransferVendorFields
LicenseApiKeyRequest
object
1 property 1 required
BiotrackDriver
object
6 properties 6 required
TraceabilityItem
object
28 properties 28 required
PaginatedUnifiedTraceabilityCompanyCustomerList
object
4 properties 2 required
TraceabilityCompanyIncludedLocation
object
4 properties 4 required
PolymorphicDriverVendorFields
InternalCompanyLicense
object
Serializer for the Company License model.
9 properties 7 required
MetrcPackage
object
Metrc package fields from the Traceability.metrcpackage table.
28 properties 27 required
BiotrackTransfer
object
1 property 1 required
PaginatedTraceabilityItemList
object
4 properties 2 required
TemplateCreateRequest
object
12 properties 1 required
MetrcDriver
object
4 properties 4 required
CompanyWriteSuccessResponse
object
1 property 1 required
PatchedTraceabilityRefreshProductsPackagesRequest
object
1 property
PolymorphicCreateUpdateTransferResponse
LightCompany
object
Company serializer contains only basic fields.
3 properties 2 required
BiotrackVehicle
object
6 properties 6 required
TraceabilityOrder
object
3 properties 3 required
PaginatedTraceabilityRefreshRequestList
object
4 properties 2 required
TransferCompany
object
Name + licensenumber combination of a shipper or recipient from the Traceability.transfer table.
2 properties 2 required
UnifiedTraceabilityPackageOrders
object
3 properties 3 required
TraceabilityStrain
object
10 properties 10 required
TraceabilityTemplate
object
25 properties 22 required
TraceabilityLicense
object
4 properties 4 required
InternalCompanyAPIConfig
object
Internal serializer for traceability API config.
5 properties 5 required
TraceabilityLocation
object
Location object from the Traceability.commonlocation and Traceability.(vendor)location tables.
10 properties 9 required
TemplateWriteSuccessResponse
object
1 property 1 required
CompanyApiKeyRequest
object
3 properties 2 required
PaginatedTraceabilityTransferList
object
5 properties 2 required
MetrcDelivery
object
Metrc-specific transfer fields serializer.
9 properties 6 required
MetrcDeliveryPackage
object
Metrc-specific DeliveryPackage fields serializer.
20 properties 20 required
TraceabilityDeliveryPackage
object
Serializer for traceability DeliveryPackages.
12 properties 11 required
TraceabilityDriverCreateUpdateInputRequest
object
6 properties 6 required
TraceabilityTransfer
object
Serializer for traceability transfers. Composed of CommonTransfer + vendor-specific transfer data.
28 properties 14 required
TransferCreateInputRequest
object
9 properties 9 required
TraceabilityTransferBuyer
object
1 property 1 required
PaginatedTraceabilityPackageList
object
4 properties 2 required
TransferCreateUpdatePackageRequest
object
1 property 1 required
TraceabilityVehicleCreateUpdateInputRequest
object
7 properties 7 required
MetrcTransfer
object
Metrc-specific transfer fields serializer.
7 properties 1 required
TypeCodeEnum
string
BiotrackDeliveryPackage
object
BioTrack-specific DeliveryPackage fields serializer.
6 properties 6 required
PatchedTraceabilityDriverCreateUpdateInputRequest
object
6 properties
PaginatedTraceabilityVehicleList
object
4 properties 2 required
InternalLicenseTypeResponse
object
Internal serializer for LicenseTypes filtered by state.
7 properties 5 required
TraceabilityTemplateDetail
object
25 properties 25 required
TraceabilityDriver
object
10 properties 10 required
UnifiedTraceabilityCompanyCustomer
object
Traceability Company Customer Serializer - returns very limited information
4 properties 4 required
PaginatedTransferCompanyList
object
4 properties 2 required
MetrcLocation
object
Metrc specific location fields from the Traceability.metrclocation table.
7 properties 3 required
TraceabilityRefreshRequest
object
6 properties 6 required
PatchedCompanyUpdateRequest
object
7 properties
TraceabilityLicenses
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

leaflink-traceability-api-openapi.yml Raw ↑

Other APIs LeafLink publishes across the network.

LeafLink Active Entry API
LeafLink Activity Entries API
LeafLink Batch API
LeafLink Batch Documents API
LeafLink Batches API
LeafLink Brand API
LeafLink Brands API
LeafLink Buyer Orders API
LeafLink Buyer Product Image API
LeafLink Chats API
LeafLink Companies API
LeafLink Company API
Where this information came from

This is an independent, third-party profile of LeafLink Traceability API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.