openapi: 3.0.0 info: title: LeafLink Marketplace V2 API description: > # Introduction ## HTTP Request Notes All endpoints covered in this document are preceded by `https://{{domain}}/api/v2/` unless otherwise noted. Available domains - `www.leaflink.com` - production environment - `sandbox.leaflink.com` - sandbox environment - `leaflink-integrations.leaflink.com` - integrations sandbox environment [Learn more about sandbox environments](https://developer.leaflink.com/brands/api/authorization/#sandbox-environments) Request paths must end in a slash character ('/'). Those that do not will return a 400 (Bad Request) response. ## Dynamic Responses Some of our API endpoints support dynamic responses. These are responses that vary in content and/or object level payload size according to request path or query parameters. Available parameters are listed beneath endpoint definitions. version: '' termsOfService: https://leaflink.com/terms-and-conditions/ contact: email: support@leaflink.com servers: - url: https://www.leaflink.com/api/v2 tags: - description: Access the order object name: orders-received - description: >- The `CompanyActivityEntry` model represents a CRM action taken by a staff member that relates to a customer, with an optional description. name: activity-entries - description: >- The Customer model represents a business relationship between a buyer and seller on LeafLink. name: customers - description: >- The `CompanyCustomerStatus` represents a set of customizable states for customers in the sales funnel. name: customer-statuses - description: >- The LineItem model represents a single entry in an itemized purchase order. name: line-items - description: >- The Product model represents a physical product offered for sale by a Company. name: products - description: Product information for a retailer company. name: retailer-inventory - description: >- The `Contact` model represents the contact information a user has stored as a company resource within LeafLink. name: contacts - name: batches - description: >- The Promocode model represents a promotional discount code for a specific Brand. name: promocodes - name: product-lines - description: >- Product images for display in the marketplace. Each product may have up to 5 images. name: product-images - description: Manage assignments. name: product-batches - description: >- The `InventoryItem` model represents items of a particular inventory batch at a given facility. name: inventory-items x-displayName: Inventory Items - name: batch-documents - name: order-sales-reps - name: order-payments - name: strains - description: The Report model represents a report download initiated by a User name: reports - name: brands - name: company-staff - description: >- The `CompanyCustomerTier` represents a set of read only objects depicting a customer's tier in relationship to a company. name: customer-tiers - description: >- The License model represents a single state-issued license held by a Company. name: licenses - name: product-categories - name: product-subcategories - description: The LicenseType model represents a category of state-issued licenses. name: license-types - description: The `Facility` model represents a location where inventory is located. name: facilities x-displayName: Facilities - name: companies - name: order-event-logs - name: buyer-orders - description: | name: customer-object x-displayName: The customer object - description: | name: order-object x-displayName: The order object - description: | name: buyer-order-object x-displayName: The buyer order object - description: | name: line-item-object x-displayName: The line item object - description: | name: product-object x-displayName: The product object - name: listing-states - description: | name: batch-object x-displayName: The batch object - description: | The product batch object assigns a batch to a product. name: product-batch-object x-displayName: The product batch object - description: | name: batch-document-object x-displayName: The batch document object - description: | name: inventory-item-object x-displayName: The inventory item object - description: | name: facility-object x-displayName: The facility object paths: /activity-entries: parameters: [] get: tags: - activity-entries summary: List operationId: Activityentries_getAll description: |- List all `CompanyActivityEntry` objects of companies the requester has CRM management access for. parameters: - description: Filter by entered activity datetime, less than. name: date__lt in: query required: false schema: type: string - description: Filter by entered activity datetime, less than or equal to. name: date__lte in: query required: false schema: type: string - description: Filter by entered activity datetime, greater than. name: date__gt in: query required: false schema: type: string - description: Filter by entered activity datetime, greater than or equal to. name: date__gte in: query required: false schema: type: string - description: Filter by activity entry descriptions. name: entry in: query required: false schema: type: string - description: Filter by entry__in name: entry__in in: query required: false schema: type: string - description: Filter by entry__startswith name: entry__startswith in: query required: false schema: type: string - description: Filter by the datetime the object was last modified, less than. name: modified__lt in: query required: false schema: type: string - description: >- Filter by the datetime the object was last modified, less than or equal to. name: modified__lte in: query required: false schema: type: string - description: Filter by the datetime the object was last modified, greater than. name: modified__gt in: query required: false schema: type: string - description: >- Filter by the datetime the object was last modified, greater than or equal to. name: modified__gte in: query required: false schema: type: string - description: Filter by id name: id in: query required: false schema: type: number - description: Filter by created_on datetime, less than. name: created_on__lt in: query required: false schema: type: string - description: Filter by created_on datetime, less than or equal to. name: created_on__lte in: query required: false schema: type: string - description: Filter by created_on datetime, greater than. name: created_on__gt in: query required: false schema: type: string - description: Filter by created_on datetime, greater than or equal to. name: created_on__gte in: query required: false schema: type: string - description: Filter by owner ID. name: owner in: query required: false schema: type: number - description: Filter by author ID. name: author in: query required: false schema: type: number - description: Filter by associated company ID. name: company in: query required: false schema: type: number - description: Filter by associated customer ID. name: customer in: query required: false schema: type: number - description: Filter by associated staff ID. name: staff in: query required: false schema: type: number - description: Filter by activity type. name: type in: query required: false schema: type: string - description: Filter by associated brand ID. name: brand in: query required: false schema: type: number - description: Filter by associated contact ID. name: contact in: query required: false schema: type: number - description: Filter by Company slug name: company_slug in: query required: false schema: type: string - description: Filter by deleted or non-deleted entries. name: delete in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ActivityentriesGetAllResponse' post: tags: - activity-entries summary: Create operationId: Activityentries_createEntry description: |- Create a new `CompanyActivityEntry` object for a company you have CRM management access for. requestBody: $ref: '#/components/requestBodies/CompanyActivityEntry' responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyActivityEntry' /activity-entries/{id}: parameters: - description: A unique integer value identifying this company activity entry. name: id in: path required: true schema: type: integer get: tags: - activity-entries summary: Read operationId: Activityentries_readById description: Get a `CompanyActivityEntry` by ID. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyActivityEntry' patch: tags: - activity-entries summary: Update operationId: Activityentries_updateById description: Update an individual `CompanyActivityEntry` by ID. requestBody: $ref: '#/components/requestBodies/CompanyActivityEntry' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyActivityEntry' delete: tags: - activity-entries summary: Delete operationId: Activityentries_deleteFlag description: |- Set the `delete` flag on a `CompanyActivityEntry` to true. These can be filtered out in list requests. responses: '204': description: '' /batch-documents: get: tags: - batch-documents summary: List batch documents operationId: Batchdocuments_listAllDocuments description: List all batch documents. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BatchdocumentsListAllDocumentsResponse' operationID: batch-documents_list post: tags: - batch-documents summary: Upload a batch document operationId: Batchdocuments_uploadNewDocument description: Upload a new batch document. requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/BatchdocumentsUploadNewDocumentRequest' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/BatchDocumentNew' operationID: batch-documents_create /batch-documents/{id}: parameters: - description: The id for the batch document. name: id in: path required: true schema: type: integer get: tags: - batch-documents summary: Retrieve a batch document operationId: Batchdocuments_getIndividualDocument description: Retrieve an individual batch document. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BatchDocumentNew' delete: tags: - batch-documents summary: Delete a batch document operationId: Batchdocuments_deleteDocument description: Delete a batch document. responses: '204': description: '' /batches: parameters: [] get: tags: - batches summary: List batches operationId: batches_list description: >- List all batches.

For legacy auth, retrieved per company with the owner query parameter or with the following path parameter, /companies/{company_id}/batches/ parameters: - description: Filter by batch_date__lt name: batch_date__lt in: query required: false schema: type: string - description: Filter by batch_date__lte name: batch_date__lte in: query required: false schema: type: string - description: Filter by batch_date__gt name: batch_date__gt in: query required: false schema: type: string - description: Filter by batch_date__gte name: batch_date__gte in: query required: false schema: type: string - description: Filter by one or multiple batch ids, separated by commas. name: id in: query required: false schema: type: number - description: Filter by one or multiple company ids, separated by commas. name: owner in: query required: false schema: type: number - description: Filter by owner company slug. name: company_slug in: query required: false schema: type: string - description: >- Filter by one or multiple production_batch_numbers, separated by commas. name: production_batch_number in: query required: false schema: type: string - description: Filter by one or multiple product ids, separated by commas. name: products in: query required: false schema: type: number - description: Filter by a range of THC percent. name: thc in: query required: false schema: type: string - description: Filter by a range of THCa percent. name: thca in: query required: false schema: type: string - description: Filter by a range of total THC percent. name: total_thc in: query required: false schema: type: string - description: Filter by a range of CBD percent. name: cbd in: query required: false schema: type: string - description: Filter by a range of CBDa percent. name: cbda in: query required: false schema: type: string - description: Filter by a range of CBG percent. name: cbg in: query required: false schema: type: string - description: Filter by a range of CBN percent. name: cbn in: query required: false schema: type: string - description: Filter by a range of total cannabinoids percent. name: total_cannabinoids in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BatchesListResponse' post: tags: - batches summary: Create a batch operationId: batches_create description: Create a new batch. requestBody: content: application/json: schema: $ref: '#/components/schemas/BatchCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/BatchResponse' /batches/{id}: parameters: - description: The id for the batch. name: id in: path required: true schema: type: string get: tags: - batches summary: Retrieve a batch operationId: Batches_getBatch description: Retrieve an individual batch. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BatchResponse' patch: tags: - batches summary: Update a batch operationId: Batches_updateBatch description: Update an existing batch. requestBody: content: application/json: schema: $ref: '#/components/schemas/BatchUpdate' required: true responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BatchResponse' delete: tags: - batches summary: Delete a batch operationId: Batches_deleteBatch description: Delete a batch. responses: '204': description: '' /inventory/items: parameters: [] get: tags: - inventory-items summary: List operationId: Inventoryitems_listAllItems description: > List all inventory items. By default this returns non-archived items - you can query for archived items by including the "include_archived" query parameter. __⚠️ WARNING - BETA FEATURE:__ This API is in active development and is subject to change. parameters: - description: Filter by archived status name: include_archived in: query required: false schema: type: boolean - description: Filter by product ID name: product in: query required: false schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/InventoryitemsListAllItemsResponse' post: tags: - inventory-items summary: Create operationId: Inventoryitems_createItem description: > Create an inventory item. __NOTE__: If a non-archived inventory item is found with the same product and facility but no batch, it will be marked as "archived" and a new inventory item will be created. As a result, subsequent GET requests will no longer return the old inventory item. As mentioned in the GET method description, you can query for archived items by including the "include_archived" query parameter. __⚠️ WARNING - BETA FEATURE:__ This API is in active development and is subject to change. requestBody: content: application/json: schema: $ref: '#/components/schemas/InventoryItemCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/InventoryItem' /inventory/items/{id}: get: tags: - inventory-items summary: Read operationId: Inventoryitems_getById description: > Get inventory item by ID. __⚠️ WARNING - BETA FEATURE:__ This API is in active development and is subject to change. parameters: - description: A unique integer value identifying this inventory item. name: id in: path required: true schema: type: integer - description: Filter by the archived status. (False by default.) name: include_archived in: query required: false schema: type: boolean responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/InventoryItem' patch: tags: - inventory-items summary: Update operationId: Inventoryitems_updateById description: > Update an existing inventory item by ID. __⚠️ WARNING - BETA FEATURE:__ This API is in active development and is subject to change. parameters: - description: A unique integer value identifying this inventory item. name: id in: path required: true schema: type: integer - description: Filter by the archived status. (False by default.) name: include_archived in: query required: false schema: type: boolean requestBody: content: application/json: schema: $ref: '#/components/schemas/InventoryItemUpdate' required: true responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/InventoryItem' /inventory/facilities: get: tags: - facilities summary: List operationId: facilities_list description: > List all facilities. __⚠️ WARNING - BETA FEATURE:__ This API is in active development and is subject to change. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/FacilitiesListResponse' /inventory/facilities/{id}: get: tags: - facilities summary: Read operationId: facilities_read description: > Get facility by ID. __⚠️ WARNING - BETA FEATURE:__ This API is in active development and is subject to change. parameters: - description: A unique integer value identifying this facility. name: id in: path required: true schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Facility' /brands: parameters: [] get: tags: - brands summary: List brands operationId: brands_list description: >- List all brands.

Retrieved per company with the company query parameter or with the following path parameter, /companies/{company_id}/brands/ parameters: - description: Filter by a list of company ids. name: company__in in: query required: false schema: type: string - description: Filter by company id. name: company in: query required: false schema: type: string - description: Filter by a company slug. name: company_slug in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BrandsListResponse' /brands/{id}: parameters: - description: The id for the brand. name: id in: path required: true schema: type: integer get: tags: - brands summary: Retrieve a brand operationId: brands_read description: Retrieve an individual brand. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BrandResponse' /companies: parameters: [] get: tags: - companies summary: List companies operationId: companies_list description: List companies the requesting user is a staff member of. parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompaniesListResponse' /companies/{id}: parameters: - description: The id for the company. name: id in: path required: true schema: type: integer get: tags: - companies summary: Retrieve a company operationId: companies_read description: Retrieve an individual company. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyResponse' /company-staff: parameters: [] get: tags: - company-staff summary: List staff members operationId: Companystaff_listStaffMembers description: List all staff members. parameters: - description: Filter by company id name: company in: query required: false schema: type: string - description: Filter by admin status, `true` or `false` name: is_admin in: query required: false schema: type: string - description: Filter by active status, `true` or `false` name: is_active in: query required: false schema: type: string - description: Filter by company slug name: company_slug in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanystaffListStaffMembersResponse' /company-staff/{id}: parameters: - description: The staff member id. name: id in: path required: true schema: type: integer get: tags: - company-staff summary: Retrieve a staff member operationId: Companystaff_getStaffMember description: Retrieve an individual staff member. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyStaffResponse' /contacts: parameters: [] get: tags: - contacts summary: List operationId: contacts_list description: >- List all contacts for all active companies where the user has the MANAGE_CRM permission. Can be filtered by id, creation date, last modified date, first name, and last name. The contact's associated `CompanyCustomer`s can be retrieved at `/api/v2/contacts/{id}/customers/?` parameters: - description: Filter by modified__lt name: modified__lt in: query required: false schema: type: string - description: Filter by modified__lte name: modified__lte in: query required: false schema: type: string - description: Filter by modified__gt name: modified__gt in: query required: false schema: type: string - description: Filter by modified__gte name: modified__gte in: query required: false schema: type: string - description: Filter by the exact id of the contact name: id in: query required: false schema: type: number - description: Filter by the last name of a contact. name: last_name in: query required: false schema: type: string - description: Filter by last_name__in name: last_name__in in: query required: false schema: type: string - description: Filter by last_name__startswith name: last_name__startswith in: query required: false schema: type: string - description: Filter by created_on datetime, less than. name: created_on__lt in: query required: false schema: type: string - description: Filter by created_on datetime, less than or equal to. name: created_on__lte in: query required: false schema: type: string - description: Filter by created_on datetime, greater than. name: created_on__gt in: query required: false schema: type: string - description: Filter by created_on datetime, greater than or equal to. name: created_on__gte in: query required: false schema: type: string - description: Filter by owner Company slug. name: company_slug in: query required: false schema: type: string - description: Filter by the first name of a contact. name: first_name in: query required: false schema: type: string - description: Filter by first_name__in name: first_name__in in: query required: false schema: type: string - description: Filter by first_name__startswith name: first_name__startswith in: query required: false schema: type: string - description: Filter by one or multiple company ids, separated by commas. name: owner in: query required: false schema: type: number - description: Filter by contact deletion status name: delete in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ContactsListResponse' post: tags: - contacts summary: Create operationId: contacts_create description: Create a new contact. requestBody: $ref: '#/components/requestBodies/Contact' responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/Contact' /contacts/{id}: parameters: - description: A unique integer value identifying this contact. name: id in: path required: true schema: type: integer get: tags: - contacts summary: Read operationId: contacts_read description: Retrieve an individual contact by ID. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Contact' patch: tags: - contacts summary: Update operationId: Contacts_updateById description: Update an existing contact by ID. requestBody: $ref: '#/components/requestBodies/Contact' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Contact' delete: tags: - contacts summary: Delete operationId: contacts_delete description: >- Set the `delete` flag to True on a contact by ID. Deleted objects can be filtered out in lists with query parameters. responses: '204': description: '' /customer-status: parameters: [] get: tags: - customer-statuses summary: List operationId: Customerstatuses_listAllAvailableObjects description: List all `CompanyCustomerStatus` objects available for use. parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: >- #/components/schemas/CustomerstatusesListAllAvailableObjectsResponse post: tags: - customer-statuses summary: Create operationId: Customerstatuses_createNewStatus description: Create a new customer status. requestBody: $ref: '#/components/requestBodies/CompanyCustomerStatus' responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyCustomerStatus' /customer-statuses/{id}: parameters: - description: A unique integer value identifying this company customer status. name: id in: path required: true schema: type: integer get: tags: - customer-statuses summary: Read operationId: Customerstatuses_getById description: Retrieve a `CompanyCustomerStatus` by ID. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyCustomerStatus' patch: tags: - customer-statuses summary: Update operationId: Customerstatuses_updateById description: Update an existing customer status by ID. requestBody: $ref: '#/components/requestBodies/CompanyCustomerStatus' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyCustomerStatus' delete: tags: - customer-statuses summary: Delete operationId: Customerstatuses_deleteById description: Delete a customer status by ID. responses: '204': description: '' /customer-tiers: parameters: [] get: tags: - customer-tiers summary: List operationId: Customertiers_listAllAvailableObjects description: List all `CompanyCustomerTier` objects available for use. parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: >- #/components/schemas/CustomertiersListAllAvailableObjectsResponse /customer-tiers/{id}: parameters: - description: A unique integer value identifying this company customer tier. name: id in: path required: true schema: type: integer get: tags: - customer-tiers summary: Read operationId: Customertiers_getById description: Retrieve a `CompanyCustomerTier` by ID. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CompanyCustomerTier' /customers: parameters: [] get: tags: - customers summary: List customers operationId: customers_list description: List customers for all active companies where the user is a member of. parameters: - description: Include only specific fields in the response, separated by commas. name: fields_include in: query schema: type: string - description: Exclude specific fields in the response, separated by commas. name: fields_exclude in: query schema: type: string - description: >- Include additional fields in the response. Available values include `tags`, `service_zone`, `managers`, `contacts`, and `license_type` name: include_children in: query schema: type: string - description: Filter by the customer's nickname. name: nickname in: query required: false schema: type: string - description: Filter by nickname__in name: nickname__in in: query required: false schema: type: string - description: Filter by nickname__startswith name: nickname__startswith in: query required: false schema: type: string - description: Filter by the customer's business phone number. name: phone in: query required: false schema: type: string - description: Filter by phone__in name: phone__in in: query required: false schema: type: string - description: Filter by phone__startswith name: phone__startswith in: query required: false schema: type: string - description: Filter by the customer's dba. name: dba in: query required: false schema: type: string - description: Filter by dba__in name: dba__in in: query required: false schema: type: string - description: Filter by dba__startswith name: dba__startswith in: query required: false schema: type: string - description: Filter by the slug of the Company that owns this Customer record. name: owner__slug in: query required: false schema: type: string - description: Filter by id__in name: id__in in: query required: false schema: type: number - description: Filter by id name: id in: query required: false schema: type: number - description: Filter by next_contact_date__lt name: next_contact_date__lt in: query required: false schema: type: string - description: Filter by next_contact_date__lte name: next_contact_date__lte in: query required: false schema: type: string - description: Filter by next_contact_date__gt name: next_contact_date__gt in: query required: false schema: type: string - description: Filter by next_contact_date__gte name: next_contact_date__gte in: query required: false schema: type: string - description: Filter by the slug of the Company that owns this Customer record. name: company_slug in: query required: false schema: type: string - description: Filter by the customer's external id. name: external_id in: query required: false schema: type: string - description: Filter by external_id__in name: external_id__in in: query required: false schema: type: string - description: Filter by external_id__startswith name: external_id__startswith in: query required: false schema: type: string - description: Filter by the customer's EIN. name: ein in: query required: false schema: type: string - description: Filter by ein__in name: ein__in in: query required: false schema: type: string - description: Filter by ein__startswith name: ein__startswith in: query required: false schema: type: string - description: Filter by discount_percent__lt name: discount_percent__lt in: query required: false schema: type: number - description: Filter by discount_percent__lte name: discount_percent__lte in: query required: false schema: type: number - description: Filter by discount_percent__gt name: discount_percent__gt in: query required: false schema: type: number - description: Filter by discount_percent__gte name: discount_percent__gte in: query required: false schema: type: number - description: Filter by the customer's previous license number. name: old_license_number in: query required: false schema: type: string - description: Filter by old_license_number__in name: old_license_number__in in: query required: false schema: type: string - description: Filter by old_license_number__startswith name: old_license_number__startswith in: query required: false schema: type: string - description: Filter by the datetime the object was last modified, less than. name: modified__lt in: query required: false schema: type: string - description: >- Filter by the datetime the object was last modified, less than or equal to. name: modified__lte in: query required: false schema: type: string - description: Filter by the datetime the object was last modified, greater than. name: modified__gt in: query required: false schema: type: string - description: >- Filter by the datetime the object was last modified, greater than or equal to. name: modified__gte in: query required: false schema: type: string - description: Filter by the customer's associated brand. name: brand in: query required: false schema: type: string - description: Filter by brand__in name: brand__in in: query required: false schema: type: string - description: Filter by brand__startswith name: brand__startswith in: query required: false schema: type: string - description: Filter by created_on datetime, less than. name: created_on__lt in: query required: false schema: type: string - description: Filter by created_on datetime, less than or equal to. name: created_on__lte in: query required: false schema: type: string - description: Filter by created_on datetime, greater than. name: created_on__gt in: query required: false schema: type: string - description: Filter by created_on datetime, greater than or equal to. name: created_on__gte in: query required: false schema: type: string - description: Filter by the customer's address. name: address in: query required: false schema: type: string - description: Filter by address__in name: address__in in: query required: false schema: type: string - description: Filter by address__startswith name: address__startswith in: query required: false schema: type: string - description: Filter by the customer's business license name. name: business_license_name in: query required: false schema: type: string - description: Filter by business_license_name__in name: business_license_name__in in: query required: false schema: type: string - description: Filter by business_license_name__startswith name: business_license_name__startswith in: query required: false schema: type: string - description: Filter by the customer's name. name: name in: query required: false schema: type: string - description: Filter by name__in name: name__in in: query required: false schema: type: string - description: Filter by name__startswith name: name__startswith in: query required: false schema: type: string - description: Filter by the customer's business identifier. name: business_identifier in: query required: false schema: type: string - description: Filter by business_identifier__in name: business_identifier__in in: query required: false schema: type: string - description: Filter by business_identifier__startswith name: business_identifier__startswith in: query required: false schema: type: string - description: Filter by the customer's license number. name: license_number in: query required: false schema: type: string - description: Filter by license_number__in name: license_number__in in: query required: false schema: type: string - description: Filter by license_number__startswith name: license_number__startswith in: query required: false schema: type: string - description: Filter by the customer's external account id. name: ext_acct_id in: query required: false schema: type: string - description: Filter by ext_acct_id__in name: ext_acct_id__in in: query required: false schema: type: string - description: Filter by ext_acct_id__startswith name: ext_acct_id__startswith in: query required: false schema: type: string - description: Filter by ext_acct_id__isnull name: ext_acct_id__isnull in: query required: false schema: type: string - description: Filter by the customer's email. name: email in: query required: false schema: type: string - description: Filter by email__in name: email__in in: query required: false schema: type: string - description: Filter by email__startswith name: email__startswith in: query required: false schema: type: string - description: Filter by the customer's website. name: website in: query required: false schema: type: string - description: Filter by website__in name: website__in in: query required: false schema: type: string - description: Filter by website__startswith name: website__startswith in: query required: false schema: type: string - description: Filter by owner ID. name: owner in: query required: false schema: type: number - description: Filter by partner ID. name: partner in: query required: false schema: type: number - description: Filter by the ID of a customer's tier. name: tier in: query required: false schema: type: number - description: Filter by the ID of a customer's price schedule. name: price_schedule in: query required: false schema: type: number - description: Filter by the ID of a customer's service zone. name: service_zone in: query required: false schema: type: number - description: Filter by the ID of a customer's license type. name: license_type in: query required: false schema: type: number - description: Filter by the whether a customer's license is active. name: license_inactive in: query required: false schema: type: string - $ref: '#/components/parameters/PaymentTermFilter' - $ref: '#/components/parameters/PaymentMethodFilter' - description: Filter by the ID of a customer's status. name: status in: query required: false schema: type: number - description: Filter by the ID of a customer's state. name: state in: query required: false schema: type: number - description: Filter by whether the customer was added by LeafLink. name: leaflink_source in: query required: false schema: type: string - description: Filter by whether the customer has been archived. name: archived in: query required: false schema: type: string - description: Filter by whether the customer is delinquent. name: delinquent in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer - description: >- Filter for orders that match external_ids key:values. Must be used with external_id_values. name: external_id_key in: query schema: type: string - description: >- Filter for orders that match external_ids key:values. Multiple values separated by a comma. Must be used with external_id_key. name: external_id_values in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CustomersListResponse' post: tags: - customers summary: Create a customer operationId: customers_create description: Create a new customer. requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomerCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/CustomerResponse' /customers/{id}: parameters: - description: A unique integer value identifying this company customer. name: id in: path required: true schema: type: integer get: tags: - customers summary: Retrieve a customer operationId: customers_read description: Retrieve a customer by ID. parameters: - description: Include only specific fields in the response, separated by commas. name: fields_include in: query schema: type: string - description: Exclude specific fields in the response, separated by commas. name: fields_exclude in: query schema: type: string - description: >- Include additional fields in the response. Available values include `tags`, `service_zone`, `managers`, `contacts`, and `license_type` name: include_children in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CustomerResponse' patch: tags: - customers summary: Update a customer operationId: Customers_updateById description: Update a customer by ID. requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomerUpdate' required: true responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/CustomerResponse' delete: tags: - customers summary: Archive a customer operationId: customers_delete description: Archive a customer by ID. responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/CustomerResponse' /license-types: parameters: [] get: tags: - license-types summary: List operationId: Licensetypes_listAll description: |- List all licenses types available on LeafLink.
You can list the license types associated with a company's products at /companies/{company_id}/license-types parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/LicensetypesListAllResponse' /license-types/{id}: parameters: - description: A unique integer value identifying this license type. name: id in: path required: true schema: type: integer get: tags: - license-types summary: Read operationId: Licensetypes_getById description: Retrieve an individual license type by ID. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/LicenseType' /licenses: parameters: [] get: tags: - licenses summary: List operationId: licenses_list description: |- List all licenses for a user's companies.
You can list the licenses associated with a company's products at /companies/{company_id}/licenses parameters: - description: Filter by number__in name: number__in in: query required: false schema: type: string - description: Filter by number name: number in: query required: false schema: type: string - description: Filter by company_slug name: company_slug in: query required: false schema: type: string - description: Filter by id name: id in: query required: false schema: type: number - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/LicensesListResponse' /licenses/{id}: parameters: - description: A unique integer value identifying this license. name: id in: path required: true schema: type: integer get: tags: - licenses summary: Read operationId: licenses_read description: Retrieve an individual license by ID. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ComplianceLicense' /line-items: get: tags: - line-items summary: List line items operationId: Lineitems_listAllActiveCompanies description: >- List line items for all active companies where the user has the Manage Orders Received permission.

Line items can also be retrieved by order via /orders-received/{order_number}/line-items
or by company via /companies/{company_id}/line-items/ parameters: - description: >- Expand an id field into its full object. Supported values include `product`. name: expand in: query required: false schema: type: string - description: Filter by id name: id in: query required: false schema: type: number - description: Filter by product name. name: product__name in: query required: false schema: type: string - description: Filter by product id. name: product_id in: query required: false schema: type: string - description: >- Filter by order number or external_id_seller. Multiple values may be separated by commas. name: order in: query required: false schema: type: string - description: Filter by sample status. name: is_sample in: query required: false schema: type: string - description: Filter by Order created_on, greater than or equal to name: order__created_on__gte in: query required: false schema: type: string - description: Filter by Order created_on, less than or equal to name: order__created_on__lte in: query required: false schema: type: string - description: Filter by Order ship_date, greater than or equal to name: order__ship_date__gte in: query required: false schema: type: string - description: Filter by Order ship_date, less than or equal to name: order__ship_date__lte in: query required: false schema: type: string - description: Filter by Order modified, greater than or equal to name: order__modified__gte in: query required: false schema: type: string - description: Filter by Order modified, less than or equal to name: order__modified__lte in: query required: false schema: type: string - description: Filter by Order Customer cities, separated by commas. name: order__customer__cities in: query required: false schema: type: string - description: Filter by Order Customer managers, separated by commas. name: order__customer__managers in: query required: false schema: type: string - description: Filter by Order Customer, separated by commas. name: order__customers in: query required: false schema: type: string - description: Filter by seller company slug name: company_slug in: query required: false schema: type: string - description: Filter by order__service_zone name: order__service_zone in: query required: false schema: type: number - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/LineitemsListAllActiveCompaniesResponse' post: tags: - line-items summary: Create line item operationId: Lineitems_createNewLineItem description: | Create a line item for an existing order. > ⚠️ **WARNING - BETA FEATURE** > > This API is in active development and is subject to change. requestBody: content: application/json: schema: $ref: '#/components/schemas/LineItemCreate' example: product: 2093 quantity: 10 notes: Please include sample ordered_unit_price: amount: 108 currency: USD sale_price: amount: 99 currency: USD order: 93b532b3-a125-4cd2-9b71-9996b1e164ce x-s2o-overloaded: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/LineItemResponse' x-s2o-warning: Operation line-items_create has multiple requestBodies /line-items/{id}: parameters: - description: A unique integer value identifying this ordered product. name: id in: path required: true schema: type: integer get: tags: - line-items summary: Retrieve a line item operationId: Lineitems_getById description: Retrieve an individual line item parameters: - description: >- Expand an id field into its full object. Supported values include `product`. name: expand in: query required: false schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/LineItemResponse' patch: tags: - line-items summary: Update a line item operationId: Lineitems_updateLineItem description: Update an existing line item requestBody: content: application/json: schema: $ref: '#/components/schemas/LineItemUpdate' required: true responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/LineItemResponse' delete: tags: - line-items summary: Delete a line item operationId: Lineitems_deleteLineItem description: Delete a line item responses: '204': description: '' /order-event-logs: parameters: [] get: tags: - order-event-logs summary: List operationId: Ordereventlogs_listAllLogs description: List all order event logs. parameters: - description: Filter by id name: id in: query required: false schema: type: number - description: >- Filter Event Logs by the username, first name, or last name of the person whose event created it. name: by in: query required: false schema: type: string - description: Filter Event Logs by their associated order number. name: order in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrdereventlogsListAllLogsResponse' /order-event-logs/{id}: parameters: - description: A unique integer value identifying this order event log. name: id in: path required: true schema: type: integer get: tags: - order-event-logs summary: Read operationId: Ordereventlogs_getById description: Retrieve an individual order event log by id. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderEventLog' /order-payments: parameters: [] get: tags: - order-payments summary: List payments operationId: Orderpayments_listAllActiveCompanies description: >- List payments for all active companies where the user has the Manage Orders Received permission.

Filter by order with /orders-received/{order_number}/payments/ parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: >- #/components/schemas/OrderpaymentsListAllActiveCompaniesResponse post: tags: - order-payments summary: Create a payment operationId: Orderpayments_createPayment description: Create a new payment requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderPaymentCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderPaymentResponse' /order-payments/{id}: parameters: - description: A unique integer value identifying the order payment. name: id in: path required: true schema: type: integer get: tags: - order-payments summary: Retrieve a payment operationId: Orderpayments_getById description: Retrieve a payment by id. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderPaymentResponse' /order-sales-reps: parameters: [] get: tags: - order-sales-reps summary: List operationId: Ordersalesreps_listAll description: >- List all OrderSalesReps under the company access scope. For legacy auth, includes companies where the user has the `Can Manage Orders Received` permission. parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrdersalesrepsListAllResponse' post: tags: - order-sales-reps summary: Create operationId: Ordersalesreps_createNewSalesRep description: Create a new OrderSalesRep. requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderSalesRepSerialzer' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderSalesRepSerialzer' /order-sales-reps/{id}: parameters: - description: A unique integer value identifying this order sales rep. name: id in: path required: true schema: type: integer get: tags: - order-sales-reps summary: Read operationId: Ordersalesreps_getById description: Retrieve an individual OrderSalesRep by ID. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderSalesRepSerialzer' delete: tags: - order-sales-reps summary: Delete operationId: Ordersalesreps_removeById description: Remove OrderSalesRep object by ID. responses: '204': description: '' /buyer/orders: get: tags: - buyer-orders summary: List orders operationId: Buyerorders_listOrdersSent description: List orders sent parameters: - description: Filter results by seller id name: seller in: query schema: type: string - description: Include only specific fields in the response, separated by commas. name: fields_include in: query schema: type: string - description: Exclude specific fields in the response, separated by commas. name: fields_exclude in: query schema: type: string - description: >- Include additional fields in the response. Available values include `created_by` and `last_changed_by` name: fields_add in: query schema: type: string - description: >- Include additional fields in the response. Available values include `line_items`, `customer`, and `sales_reps` name: include_children in: query schema: type: string - description: >- Filter results the company slug on the seller side of the order. Case-insensitive exact match. name: seller__slug__iexact in: query required: false schema: type: string - description: Filter by the modified date, greater than or equal to name: modified__gte in: query required: false schema: type: string - description: Filter by the modified date, less than or equal to name: modified__lte in: query required: false schema: type: string - description: Filter by the modified date, greater than name: modified__gt in: query required: false schema: type: string - description: Filter by the modified date, less than name: modified__lt in: query required: false schema: type: string - description: Filter by the number assigned to the order by the seller company name: external_id_seller in: query required: false schema: type: string - description: >- Filter by the number assigned to the order by the seller company. Case-insensitive containment match: returns orders that contain the string name: external_id_seller__icontains in: query required: false schema: type: string - description: Filter by the created_on date, greater than or equal to name: created_on__gte in: query required: false schema: type: string - description: Filter by the created_on date, less than or equal to name: created_on__lte in: query required: false schema: type: string - description: Filter by the created_on date, greater than name: created_on__gt in: query required: false schema: type: string - description: Filter by the created_on date, less than name: created_on__lt in: query required: false schema: type: string - description: Filter by the external_id_seller or the number name: order_id in: query required: false schema: type: string - description: Filter by the unique order number generated by LeafLink. name: number in: query required: false schema: type: string - description: Filter by status. name: status in: query required: false schema: type: string enum: - submitted - accepted - backorder - fulfilled - shipped - complete - rejected - combined - cancelled - description: Filter by brand id name: brand in: query required: false schema: type: number - description: Filter by multiple brand ids, separated by commas name: brand__in in: query required: false schema: type: number - description: Filter by paid status name: paid in: query required: false schema: type: string - description: >- Filter by the user id of the sales rep assigned to an order. This is the id field on the company-staff object. name: sales_rep in: query required: false schema: type: number - description: >- Filter by the classification of the license-type associated to the order name: classification in: query required: false schema: type: string - description: >- Filter by the username, first name, or last name of the last person who edited the order name: user in: query required: false schema: type: string - description: >- Filter by whether or not they have metrc packages associated with their line items name: connected_to_metrc in: query required: false schema: type: string - description: >- Filter by whether or not orders were manually created by the company on the seller side of the order name: manual in: query required: false schema: type: string - description: Filter by the slug of seller company name: company_slug in: query required: false schema: type: string - description: Filter Orders by service zone of customers name: service_zone in: query required: false schema: type: number - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer - description: >- Filter for orders that match external_ids key:values. Must be used with external_id_values. name: external_id_key in: query schema: type: string - description: >- Filter for orders that match external_ids key:values. Multiple values separated by a comma. Must be used with external_id_key. name: external_id_values in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/BuyerordersListOrdersSentResponse' /orders-received: get: tags: - orders-received summary: List orders operationId: Ordersreceived_listAllActiveCompanies description: >- List received orders for all active companies where the user has the Manage Orders Received permission.

Per company via /companies/{company_id}/orders-received/ parameters: - description: Include only specific fields in the response, separated by commas. name: fields_include in: query schema: type: string - description: Exclude specific fields in the response, separated by commas. name: fields_exclude in: query schema: type: string - description: >- Include additional fields in the response. Available values include `created_by` and `last_changed_by` name: fields_add in: query schema: type: string - description: >- Include additional fields in the response. Available values include `line_items`, `customer`, and `sales_reps` name: include_children in: query schema: type: string - description: >- Filter results the company slug on the seller side of the order. Case-insensitive exact match. name: seller__slug__iexact in: query required: false schema: type: string - description: Filter by the modified date, greater than or equal to name: modified__gte in: query required: false schema: type: string - description: Filter by the modified date, less than or equal to name: modified__lte in: query required: false schema: type: string - description: Filter by the modified date, greater than name: modified__gt in: query required: false schema: type: string - description: Filter by the modified date, less than name: modified__lt in: query required: false schema: type: string - description: Filter by the number assigned to the order by the seller company name: external_id_seller in: query required: false schema: type: string - description: >- Filter by the number assigned to the order by the seller company. Case-insensitive containment match: returns orders that contain the string name: external_id_seller__icontains in: query required: false schema: type: string - description: Filter by the created_on date, greater than or equal to name: created_on__gte in: query required: false schema: type: string - description: Filter by the created_on date, less than or equal to name: created_on__lte in: query required: false schema: type: string - description: Filter by the created_on date, greater than name: created_on__gt in: query required: false schema: type: string - description: Filter by the created_on date, less than name: created_on__lt in: query required: false schema: type: string - description: Filter by the external_id_seller or the number name: order_id in: query required: false schema: type: string - description: Filter by the unique order number generated by LeafLink. name: number in: query required: false schema: type: string - description: >- Filter by status. Multiple statuses can be submitted as comma-separated list. Case Insensitive. name: status in: query required: false schema: type: string enum: - draft - submitted - accepted - backorder - fulfilled - shipped - complete - rejected - combined - cancelled - description: >- Exclude by order status. Multiple statuses can be submitted as a comma-separated list. Case Insensitive. name: status__not in: query required: false schema: type: string enum: - draft - submitted - accepted - backorder - fulfilled - shipped - complete - rejected - combined - cancelled - description: Filter by brand id name: brand in: query required: false schema: type: number - description: Filter by multiple brand ids, separated by commas name: brand__in in: query required: false schema: type: number - description: Filter by the id of the company on the buyer side of the order name: buyer in: query required: false schema: type: string - description: Filter by paid status name: paid in: query required: false schema: type: string - description: >- Filter by the customer name or nickname for the company on the buyer side of the order name: customer in: query required: false schema: type: string - description: >- Filter by the user id of the sales rep assigned to an order. This is the id field on the company-staff object. name: sales_rep in: query required: false schema: type: number - description: >- Filter by the classification of the license-type associated to the order name: classification in: query required: false schema: type: string - description: >- Filter by the username, first name, or last name of the last person who edited the order name: user in: query required: false schema: type: string - description: >- Filter by whether or not they have metrc packages associated with their line items name: connected_to_metrc in: query required: false schema: type: string - description: >- Filter by whether or not orders were manually created by the company on the seller side of the order name: manual in: query required: false schema: type: string - description: Filter by the slug of seller company name: company_slug in: query required: false schema: type: string - description: Filter Orders by service zone of customers name: service_zone in: query required: false schema: type: number - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer - description: >- Filter for orders that match external_ids key:values. Must be used with external_id_values. name: external_id_key in: query schema: type: string - description: >- Filter for orders that match external_ids key:values. Multiple values separated by a comma. Must be used with external_id_key. name: external_id_values in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: >- #/components/schemas/OrdersreceivedListAllActiveCompaniesResponse post: tags: - orders-received summary: Create an order operationId: Ordersreceived_createOrderWithLineItems description: > Create an Order. May create child LineItem objects in the same request. __WARNING - BETA FEATURE:__ This API is in active development and is subject to change. requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderCreate' example: external_id_seller: INV-1092 ext_acct_id: null seller: 1 customer: id: 148515 line_items: - product: 2093 quantity: 10 notes: Please include sample ordered_unit_price: amount: 108 currency: USD sale_price: amount: 99 currency: USD status: Draft discount: 0 discount_type: '%' tax_amount: 0 tax_type: '%' shipping_charge: amount: 0 currency: USD payment_term: Net 7 selected_payment_option: payment_method_id: 4 payment_term_id: 3 delivery_preferences: Monday - Wednesday Only Please sales_reps: - id: 13 facility_id: 123 responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderResponse' /orders-received/{number}: parameters: - description: Order number name: number in: path required: true schema: type: string format: uuid get: tags: - orders-received summary: Retrieve an order operationId: Ordersreceived_getOrder description: Retrieve an individual order. parameters: - description: Include only specific fields in the response, separated by commas. name: fields_include in: query schema: type: string - description: Exclude specific fields in the response, separated by commas. name: fields_exclude in: query schema: type: string - description: >- Include additional fields in the response. Available values include `created_by` and `last_changed_by` name: fields_add in: query schema: type: string - description: >- Include additional fields in the response. Available values include `line_items`, `customer`, and `sales_reps` name: include_children in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderResponse' patch: tags: - orders-received summary: Update an order operationId: Ordersreceived_updateOrder description: Update an Order. May update child LineItem objects in the same request. requestBody: content: application/json: schema: $ref: '#/components/schemas/OrderUpdate' example: discount: 15 discount_type: $ responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderResponse' delete: tags: - orders-received summary: Delete a draft order operationId: Ordersreceived_deleteDraftOrder description: >- Delete a draft order. This operation is only available for draft orders. responses: '204': description: '' /orders-received/{number}/transition/{action}: parameters: - description: Order number name: number in: path required: true schema: type: string - description: >- Order transition action. Available values include `submit`, `accept`, `fulfill`, `cancel`, `reject`, `ship`, and `complete` name: action in: path required: true schema: type: string post: tags: - orders-received summary: Transition an order operationId: Ordersreceived_transitionOrder description: Perform an order transition action. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OrderResponse' /product-batches: parameters: [] get: tags: - product-batches summary: List assignments operationId: Productbatches_listAssignments parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductbatchesListAssignmentsResponse' post: tags: - product-batches summary: Create an assignment operationId: Productbatches_createAssignment requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductBatchCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductBatchResponse' /product-batches/{id}: parameters: - description: The id for the assignment. name: id in: path required: true schema: type: string get: tags: - product-batches summary: Retrieve an assignment operationId: Productbatches_getAssignment responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductBatchResponse' delete: tags: - product-batches summary: Delete an assignment operationId: Productbatches_deleteAssignment responses: '204': description: '' /product-categories: parameters: [] get: tags: - product-categories summary: List categories operationId: Productcategories_listCategories description: List all categories. parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductcategoriesListCategoriesResponse' /product-categories/{id}: parameters: - description: The id for the category. name: id in: path required: true schema: type: integer get: tags: - product-categories summary: Retrieve a category operationId: Productcategories_getCategory description: Retrieve an individual category. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductCategoryResponse' /product-images: parameters: [] get: tags: - product-images summary: List images operationId: Productimages_listImages description: >- List all all images.

Retrieved per product via the product query parameter or with the following path parameter, /products/{product_id}/images parameters: - description: Filter by product id. name: product in: query required: false schema: type: number - description: Filter by image id. name: id in: query required: false schema: type: number - description: Filter by company slug. name: company_slug in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductimagesListImagesResponse' post: tags: - product-images summary: Upload an image operationId: Productimages_uploadNewImage description: Upload a new product image. This request requires multipart form data. requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/ProductimagesUploadNewImageRequest' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductImageResponse' /product-images/{id}: parameters: - description: The id for the image. name: id in: path required: true schema: type: integer get: tags: - product-images summary: Retrieve an image operationId: Productimages_getImage description: Retrieve an individual image. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductImageResponse' delete: tags: - product-images summary: Delete an image operationId: Productimages_deleteImage description: Delete an image. responses: '204': description: '' /product-lines: parameters: [] get: tags: - product-lines summary: List product lines operationId: Productlines_list description: >- List all product lines.
Retrieved per company with the company query parameter or with the following path parameter, /companies/{company_id}/product-lines/ parameters: - description: Filter by brand name: brand in: query required: false schema: type: string - description: Filter by id name: id in: query required: false schema: type: number - description: Filter by company name: company in: query required: false schema: type: number - description: Filter by owner company slug. name: company_slug in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductlinesListResponse' post: tags: - product-lines summary: Create a product line operationId: Productlines_createNewProductLine description: Create a new product line. requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductLineCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductLineResponse' /product-lines/{id}: parameters: - description: The id for the product line. name: id in: path required: true schema: type: integer get: tags: - product-lines summary: Retrieve a product line operationId: Productlines_getProductLine description: Retrieve an individual product line. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductLineResponse' patch: tags: - product-lines summary: Update a product line operationId: Productlines_updateProductLine description: Update an existing product line. requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductLineUpdate' required: true responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductLineResponse' /product-subcategories: parameters: [] get: tags: - product-subcategories summary: List subcategories operationId: Productsubcategories_listSubcategories description: List all subcategories. parameters: - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: >- #/components/schemas/ProductsubcategoriesListSubcategoriesResponse /product-subcategories/{id}: parameters: - description: The id for the product subcategory. name: id in: path required: true schema: type: integer get: tags: - product-subcategories summary: Retrieve a subcategory operationId: Productsubcategories_getSubcategory description: Retrieve an individual subcategory. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductSubcategoryResponse' /products: parameters: [] get: tags: - products summary: List products operationId: products_list description: >- List products for all active companies where the user has the Manage Inventory permission.

Products can also be retrieved by company via /companies/{company_id}/products/
or by parent product via /products/{parent_product_id}/products/ parameters: - description: Filter by one or more sku, separated by commas. name: sku in: query schema: type: string - description: Include only specific fields in the response, separated by commas. name: fields_include in: query schema: type: string - description: Exclude specific fields in the response, separated by commas. name: fields_exclude in: query schema: type: string - description: >- Include additional fields in the response. Available values include `images`, `volume_discounts`, and `strains` name: include_children in: query schema: type: string - description: Filter by the modified date, less than name: modified__lt in: query required: false schema: type: string - description: Filter by the modified date, less than or equal to name: modified__lte in: query required: false schema: type: string - description: Filter by the modified on date, greater than name: modified__gt in: query required: false schema: type: string - description: Filter by the modified date, greater than or equal to name: modified__gte in: query required: false schema: type: string - description: Filter by last edit date, less than name: last_edit__lt in: query required: false schema: type: string - description: Filter by last edit date, less than or equal to name: last_edit__lte in: query required: false schema: type: string - description: Filter by last edit date, greater than name: last_edit__gt in: query required: false schema: type: string - description: Filter by last edit date, greater than or equal to name: last_edit__gte in: query required: false schema: type: string - description: Filter by created on date, less than name: created_on__lt in: query required: false schema: type: string - description: Filter by created on date, less than or equal to name: created_on__lte in: query required: false schema: type: string - description: Filter by created on date, greater than name: created_on__gt in: query required: false schema: type: string - description: Filter by created on date, greater than or equal to name: created_on__gte in: query required: false schema: type: string - description: Filter by product id name: id in: query required: false schema: type: number - description: Filter by name, case insensitive name: name in: query required: false schema: type: string - description: Filter by a search term name: search in: query required: false schema: type: string - description: Filter by display name, case insensitive name: display_name in: query required: false schema: type: string - description: Filter by brand. Multiple values separated by commas. name: brand in: query required: false schema: type: number - description: Filter by company id. Multiple values separated by commas. name: company in: query required: false schema: type: number - description: Filter by whether or not products have children name: has_children in: query required: false schema: type: string - description: Filter by parent product id. Multiple values separated by commas. name: parent in: query required: false schema: type: number - description: >- Filter by whether or not products are parent products. A null value for parent indicated a parent product. name: parent__isnull in: query required: false schema: type: string - description: >- Filter by whether or not products have sub-categories assigned. Values can be `true` or `false` name: sub_category__isnull in: query required: false schema: type: string - description: Filter by product line id. Multiple values separated by commas. name: product_line in: query required: false schema: type: number - description: >- Filter by strain id. Values available at the /strains/ endpoint. Multiple values separated by commas. name: strains in: query required: false schema: type: number - description: >- Filter by category id. Values available at the /product-categories/ endpoint. Multiple values separated by commas. name: category in: query required: false schema: type: number - description: >- Filter by sub_category id. Values available at the /product-subcategories/ endpoint. Multiple values separated by commas. name: sub_category in: query required: false schema: type: number - description: >- Filter by license id. Values available at the /licenses/ endpoint. Multiple values separated by commas. name: license in: query required: false schema: type: number - description: Filter by license__isnull name: license__isnull in: query required: false schema: type: string - description: >- Filter by license type display name. Values available at /license-types/ endpoint. Multiple values separated by commas. name: license__type in: query required: false schema: type: number - description: >- Filter by listing state id. Values available at /listing-states/ endpoint. Multiple values separated by commas. name: listing_state in: query required: false schema: type: string - description: Filter by whether or not the product is archived name: archived in: query required: false schema: type: string - description: >- Filter by id for a specific buyer, view the products available to this buyer and the unique price_schedule_price if applicable name: buyer in: query required: false schema: type: number - description: Filter by s2s_connected name: s2s_connected in: query required: false schema: type: string - description: Filter by the seller company slug name: company_slug in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer - description: >- Filter for orders that match external_ids key:values. Must be used with external_id_values. name: external_id_key in: query schema: type: string - description: >- Filter for orders that match external_ids key:values. Multiple values separated by a comma. Must be used with external_id_key. name: external_id_values in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductsListResponse' post: tags: - products summary: Create a product operationId: products_create description: Create a new product. requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductCreate' responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductResponse' /products/{id}: parameters: - description: The id for the product. name: id in: path required: true schema: type: integer get: tags: - products summary: Retrieve a product operationId: products_read description: Retrieve an individual product. parameters: - description: Include only specific fields in the response, separated by commas. name: fields_include in: query schema: type: string - description: Exclude specific fields in the response, separated by commas. name: fields_exclude in: query schema: type: string - description: >- Include additional fields in the response. Available values include `images`, `volume_discounts`, and `strains` name: include_children in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductResponse' patch: tags: - products summary: Update a product operationId: Products_updateProduct description: Update an existing product. requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductUpdate' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductUpdateResponse' delete: tags: - products summary: Archive a product operationId: products_delete description: Archive a product. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ProductArchiveResponse' /promocodes: parameters: [] get: tags: - promocodes summary: List operationId: promocodes_list description: >- View all promotional codes associated with brands under the company access scope. parameters: - description: Filter by company_slug name: company_slug in: query required: false schema: type: string - description: Filter by brand name: brand in: query required: false schema: type: string - description: Filter by code name: code in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/PromocodesListResponse' post: tags: - promocodes summary: Create operationId: promocodes_create description: Create a new promotional code, unique to brand and code. requestBody: $ref: '#/components/requestBodies/PromoCode' responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/PromoCode' /promocodes/{id}: parameters: - name: id in: path required: true schema: type: string get: tags: - promocodes summary: Read operationId: Promocodes_getSpecificCode description: |- View a specific promotional code to which the current user has access. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/PromoCode' patch: tags: - promocodes summary: Update operationId: Promocodes_updateDateFields description: Update a promotional code's start date and end date fields. requestBody: $ref: '#/components/requestBodies/PromoCode' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/PromoCode' delete: tags: - promocodes summary: Delete operationId: Promocodes_remove description: Remove a promotional code entirely. responses: '204': description: '' /reports: parameters: [] get: tags: - reports summary: List operationId: reports_list description: >- List all reports generated under the company access scope. For legacy auth, only reports of types to which the user has permissions will be shown in the list. parameters: - description: Filter by company slug. name: company_slug in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ReportsListResponse' post: tags: - reports summary: Create operationId: reports_create description: Report download viewset requestBody: content: application/json: schema: $ref: '#/components/schemas/ReportDownload' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/ReportDownload' /reports/{number}: parameters: - name: number in: path required: true schema: type: string format: uuid get: tags: - reports summary: Read operationId: Reports_getReportById description: Retrieve an individual report by ID responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/ReportDownload' /strains: parameters: [] get: tags: - strains summary: List strains operationId: strains_list description: List all strains. parameters: - description: Filter by strain id name: id in: query required: false schema: type: number - description: Filter by strain name name: name in: query required: false schema: type: string - description: Filter by company ids, separated by commas name: company in: query required: false schema: type: number - description: Filter by company slug name: company_slug in: query required: false schema: type: string - description: Filter by company__isnull name: company__isnull in: query required: false schema: type: string - description: Filter by parent strain ids, separated by commas name: parents in: query required: false schema: type: number - description: Filter by strain classifications, separated by commas. name: strain_classification in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/StrainsListResponse' post: tags: - strains summary: Create a strain operationId: strains_create description: Create a new strain. requestBody: content: application/json: schema: $ref: '#/components/schemas/StrainCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/StrainResponse' /strains/{id}: get: tags: - strains summary: Retrieve a strain operationId: strains_read description: Retrieve an individual Strain. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/StrainResponse' /retailer-inventory: parameters: [] get: tags: - retailer-inventory summary: List products operationId: Retailerinventory_listProducts description: List all products. parameters: - description: Filter by company id. name: company in: query required: false schema: type: string - description: Number of results to return per page. name: limit in: query required: false schema: type: integer - description: The initial index from which to return the results. name: offset in: query required: false schema: type: integer responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/RetailerinventoryListProductsResponse' post: tags: - retailer-inventory summary: Create a product operationId: Retailerinventory_createProduct description: Create a new product. requestBody: content: application/json: schema: $ref: '#/components/schemas/RetailerInventoryCreate' required: true responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/RetailerInventoryResponse' /retailer-inventory/{id}: parameters: - description: The id for the product. name: id in: path required: true schema: type: integer get: tags: - retailer-inventory summary: Retrieve a product operationId: Retailerinventory_getProduct description: Retrieve an individual product. responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/RetailerInventoryResponse' patch: tags: - retailer-inventory summary: Update a product operationId: Retailerinventory_updateProduct description: Update an existing product. requestBody: content: application/json: schema: $ref: '#/components/schemas/RetailerInventoryUpdate' required: true responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/RetailerInventoryResponse' delete: tags: - retailer-inventory summary: Delete a product operationId: Retailerinventory_deleteProduct description: Delete a product. responses: '204': description: '' components: parameters: PaymentTerm: title: Payment Term description: >- Deprecated field, please use payment_option instead
Customer's payment terms
Enum: "llf" "cod" "net3" "net7" "net10" "net14" "net15" "net20" "net30" "net60" "net90" "prepay" "consign"
Deprecated values (will be mapped appropriately):
(1, "Cash") replaced with "cod"
(2, "Net 7") replaced with "net7"
(3, "Net 15") replaced with "net15",
(4, "Net 30") replaced with "net30"
(5, "Net 10") replaced with "net10"
(6, "Net 20") replaced with "net20
(7, "Net 60") replaced with "net60"
(8, "Net 3") replaced with "net3"
(9, "Net 14") replaced with "net14"
(10, "Pre-Payment") replaced with "prepay"
(11, "LeafLink Financial - Net 30") replaced with "llf" with payment_methods ["ach"]
(12, "Consignment") replaced with "consign"
(13, "LeafLink Financial - Net 15") replaced with "llf" with payment_methods ["ach"]
(14, "Net 90") replaced with "net90"
(15, "Wire on Delivery") replaced with "cod" with payment_methods ["wire"]
(20, "COD") replaced with "cod"
(21, "LeafLink Financial") replaced with "llf" with payment_methods ["ach"]
name: payment_term schema: type: string PaymentMethods: title: Payment Methods description: >- Deprecated field, please use payment_option instead
Customer's payment method
Enum: "cash" "check" "wire" "ach" name: payment_methods schema: type: array items: type: string PaymentMethod: name: payment_method tile: Payment Method Description: Payment method chosen for payment option schema: type: string AvailablePaymentOptionsCustomer: title: Customer Payment Option description: Payment option available for customer name: available_payment_options required: - payment_term_id - payment_method_id schema: type: array items: properties: id: title: Id test for Customer description: id for payment option type: integer readOnly: true is_default: title: Is that payment option a deafult one type: bool default: false payment_method: $ref: '#/components/parameters/PaymentMethod' payment_method_id: title: Payment method id for payment option type: integer payment_program: title: Payment program for payment option type: object payment_strategy: title: Payment strategy for payment option type: object payment_term: $ref: '#/components/parameters/PaymentTerm' payment_term_id: title: Payment term id for payment option type: integer AvailablePaymentOptions: title: Customer Payment Option description: Payment option available for customer name: available_payment_options required: - payment_term_id - payment_method_id schema: type: array items: properties: id: title: Id description: id for payment option type: integer readOnly: true is_default: title: Is that payment option a deafult one type: bool default: false payment_method: $ref: '#/components/parameters/PaymentMethod' payment_method_id: title: Payment method id for payment option type: integer payment_program: title: Payment program for payment option type: object payment_strategy: title: Payment strategy for payment option type: object payment_term: $ref: '#/components/parameters/PaymentTerm' payment_term_id: title: Payment term id for payment option type: integer SelectedPaymentOption: title: Order Payment Option description: Payment option selected for an order name: selected_payment_option properties: id: title: Id description: id for payment option type: integer readOnly: true is_default: title: Is that payment option a deafult one type: bool schema: type: object PaymentTermFilter: description: Filter by the customer's payment term name: payment_term in: query required: false schema: type: integer PaymentMethodFilter: description: Filter by the customer's payment method name: payment_method in: query required: false schema: type: integer requestBodies: Contact: content: application/json: schema: $ref: '#/components/schemas/Contact' required: true PromoCode: content: application/json: schema: $ref: '#/components/schemas/PromoCode' required: true CompanyCustomerStatus: content: application/json: schema: $ref: '#/components/schemas/CompanyCustomerStatus' required: true CompanyActivityEntry: content: application/json: schema: $ref: '#/components/schemas/CompanyActivityEntry' required: true securitySchemes: Token: description: > You must authenticate your requests by including your API key in each request header as described below. Requests should include a header named `Authorization`, with the value `App {MY_API_KEY}`. Note the single space in the header value. Example: `Authorization: App MY_API_KEY` [Learn more about generating your key](https://developer.leaflink.com/brands/api/getting-started/) **Legacy API keys:** If you are not using an Application API key, your authorization header should include the string `Token` and access will be scoped to all companies under which the user exists as a companystaff. Example: `Authorization: Token MY_API_KEY` in: header name: Authorization type: apiKey schemas: RetailerInventory: required: - is_low - source - name - sku - brand - quantity - company - unit_of_measure type: object properties: id: title: ID type: integer readOnly: true is_low: title: Product is low description: Is the inventory for this product running low? type: boolean source: title: POS Source Name description: POS Source Name type: string maxLength: 400 minLength: 1 name: title: POS Product Name description: POS Product Name type: string maxLength: 400 minLength: 1 sku: title: POS Product SKU description: POS Product SKU type: string maxLength: 400 minLength: 1 brand: title: POS Product Brand Name description: POS Product Brand Name type: string maxLength: 400 minLength: 1 quantity: title: Available for sale description: This amount of units you have in stock for this product type: integer maximum: 2147483647 minimum: 0 company: title: Company description: The Company associated with this retailer inventory. type: integer unit_of_measure: title: POS Product Unit of Measure description: POS Product Unit of Measure type: string maxLength: 400 minLength: 1 created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true RetailerInventoryResponse: type: object properties: id: description: Unique id generated by LeafLink. type: integer is_low: description: Indicates if the inventory level is low. type: boolean source: description: Describes the source system providing the data. type: string maxLength: 400 minLength: 1 name: description: Product name type: string maxLength: 400 minLength: 1 sku: description: Product sku type: string maxLength: 400 minLength: 1 brand: description: Product brand type: string maxLength: 400 minLength: 1 quantity: description: Product inventory level type: integer company: description: Company id type: integer unit_of_measure: description: Product unit of measure type: string maxLength: 400 minLength: 1 created_on: description: Date and time the product was created. type: string format: date-time readOnly: true modified: title: Modified description: Date and time the product was last modified. type: string format: date-time readOnly: true RetailerInventoryCreate: required: - is_low - source - name - sku - brand - quantity - company - unit_of_measure type: object properties: is_low: description: Indicates if the inventory level is low. type: boolean source: description: Describes the source system providing the data. type: string maxLength: 400 minLength: 1 name: description: Product name type: string maxLength: 400 minLength: 1 sku: description: Product sku type: string maxLength: 400 minLength: 1 brand: description: Product brand type: string maxLength: 400 minLength: 1 quantity: description: Product inventory level type: integer company: description: Company id type: integer unit_of_measure: description: Product unit of measure type: string maxLength: 400 minLength: 1 RetailerInventoryUpdate: type: object properties: is_low: description: Indicates if the inventory level is low. type: boolean source: description: Describes the source system providing the data. type: string maxLength: 400 minLength: 1 name: description: Product name type: string maxLength: 400 minLength: 1 sku: description: Product sku type: string maxLength: 400 minLength: 1 brand: description: Product brand type: string maxLength: 400 minLength: 1 quantity: description: Product inventory level type: integer company: description: Company id type: integer unit_of_measure: description: Product unit of measure type: string maxLength: 400 minLength: 1 CompanyActivityEntry: required: - type - entry - owner - author type: object properties: id: title: ID type: integer readOnly: true type: title: Type type: string created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true date: title: Date type: string format: date-time entry: title: Message description: Message type: string maxLength: 4000 minLength: 1 delete: title: Activity deleted description: Is this Activity marked as deleted? type: boolean owner: title: Company that owns Entry description: Company that owns activity entry type: integer author: title: Activity Entry Author description: Author who entered Activity type: integer company: title: Company entry is about description: Company entry is about type: integer nullable: true customer: title: Customer Company entry is about description: Company entry is about type: integer nullable: true staff: title: Staff entry is focused on description: Staff entry is focused on type: integer nullable: true brand: title: Brand type: integer nullable: true contact: title: Contact type: integer nullable: true BatchDocumentNew: type: object properties: summary: type: string id: description: Unique id generated by LeafLink. type: integer batch: description: Id for the batch. See `id` in the batch object. type: integer created_on: description: Date and time the document was uploaded. type: string format: date-time readOnly: true modified: description: Date and time the document was last modified. type: string format: date-time readOnly: true document: description: uri for the document type: string readOnly: true format: uri BatchCreate: required: - owner - production_batch_number - batch_date - testing_source type: object properties: owner: description: id for the company type: string production_batch_number: type: string maxLength: 50 batch_date: type: string format: date thc: type: string format: decimal thca: type: string format: decimal total_thc: type: string format: decimal cbd: type: string format: decimal cbda: type: string format: decimal cbg: type: string format: decimal nullable: true cbn: type: string format: decimal total_cannabinoids: type: string format: decimal cannabinoid_unit: description: >- Unit for the test results. Acceptable values include `%`, `MG/ML`, `MG/G` type: string testing_source: description: Name of the source system for the test results type: string BatchUpdate: type: object properties: production_batch_number: type: string maxLength: 50 batch_date: type: string format: date thc: type: string format: decimal thca: type: string format: decimal total_thc: type: string format: decimal cbd: type: string format: decimal cbda: type: string format: decimal cbg: type: string format: decimal cbn: type: string format: decimal total_cannabinoids: type: string format: decimal cannabinoid_unit: description: >- Unit for the test results. Acceptable values include `%`, `MG/ML`, `MG/G` type: string BatchResponse: type: object properties: id: description: Unique id generated by LeafLink. type: integer owner: description: Id for the company type: string production_batch_number: type: string batch_date: type: string format: date thc: type: string format: decimal thca: type: string format: decimal total_thc: type: string format: decimal cbd: type: string format: decimal cbda: type: string format: decimal cbg: type: string format: decimal cbn: type: string format: decimal total_cannabinoids: type: string format: decimal documents: type: array items: type: object properties: summary: type: string id: description: Unique id generated by LeafLink. type: integer created_on: description: Date and time the document was uploaded. type: string format: date-time modified: description: Date and time the document was last modified. type: string format: date-time document: description: uri for the document type: string format: uri cannabinoid_unit: description: >- Unit for the test results. Acceptable values include `%`, `MG/ML`, `MG/G` type: string testing_source: description: Name of the source system for the test results type: string is_from_api: description: Describes whether this batch was created via an external system type: boolean InventoryItemCreate: required: - batch - is_archived - facility - product - quantity type: object properties: batch: description: ID of the associated batch. type: integer is_archived: description: Indicated whether the inventory item is archived. type: boolean facility: description: ID of the associated facility. type: integer product: description: ID of the associated product. type: integer quantity: description: Number of inventory items available. type: number format: decimal InventoryItemUpdate: type: object properties: is_archived: description: Indicated whether the inventory item is active. type: boolean quantity: description: Number of inventory items available. type: number format: decimal InventoryItem: type: object properties: id: description: Unique id generated by LeafLink. type: integer facility: description: ID of the associated facility. type: integer inventory: description: ID of the associated inventory. type: integer product: description: ID of the associated product. type: integer quantity: description: Number of inventory items available. type: number format: decimal quantity_in_product_uom: description: Number of inventory items available in unit of measure. type: string format: decimal reserved_qty: description: Number of reserved inventory items. type: string format: decimal reserved_qty_in_product_uom: description: Number of reserved inventory items in unit of measure. type: string format: decimal batch: description: ID of the associated batch. type: integer is_archived: description: Indicated whether the inventory item is active. type: boolean Facility: type: object properties: description: description: Description of the facility. type: string id: description: Unique id generated by LeafLink. type: integer name: description: Name of the facility. type: string LightCompanyCustomer: title: Customer description: Seller's customer record for the company on the buyer side of the order required: - id - delinquent type: object properties: id: title: Id description: id for the customer type: integer display_name: title: Display name description: Customer nickname if one exists, else the customer name type: string readOnly: true ext_acct_id: title: Accounting Service External ID description: ID of Customer in 3rd party accouting software type: string maxLength: 255 nullable: true delinquent: title: Delinquent description: Is this account marked delinquent? type: boolean LightCompanyCustomerId: title: Customer description: Seller's customer record for the company on the buyer side of the order required: - id type: object properties: id: title: Id description: id for the customer type: integer LineItem: required: - ordered_unit_price - quantity - sale_price type: object properties: id: title: Id description: id of the line item type: integer ordered_unit_price: description: Price at the time the order was placed required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 quantity: title: Quantity description: Number of units ordered type: string format: decimal order: title: Order description: >- The number of the order this line item is attached to. `number` or `order_number` on the order object. type: string format: uuid nullable: true product: title: Product description: id for the product type: string notes: title: Notes description: Notes for this specific ordered product type: string nullable: true is_sample: title: Is sample description: Is this line item a sample? type: boolean sale_price: description: Alternative sale price required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 unit_multiplier: title: Unit multiplier description: >- How many individual units are sold when compared to the assigned unit of measure type: integer is_medical_line_item: title: Is medical line item description: Is this a medical line item? type: boolean is_packed: title: Is packed description: Is the line-item packed? type: boolean packed_at: title: Packed at description: Date and time this line-item was packed type: string format: date-time nullable: true packed_by: title: CompanyStaff user description: The CompanyStaff user that packed this product type: integer nullable: true unit_of_measure: title: Unit of measure description: Units this product is measured in type: string readOnly: true position: title: Position description: >- Position for this line item in the displayed list of line items on the order type: integer nullable: true bulk_units: title: Bulk units description: The number of units of bulk available. quantity / unit_multiplier type: integer on_sale: title: On sale description: Is this line item on sale? type: boolean is_backorder: title: Is backorder description: Is this line item backordered? type: boolean nullable: true order_id: title: Order id type: string readOnly: true batch: title: Batch description: Batch that should be displayed in invoice. type: integer nullable: true package_tags: title: Package tags description: Tags associated to line items via attached packages. type: string readOnly: true frozen_data: title: Frozen data type: object wholesale_price: title: Wholesale price description: Wholesale Price type: string format: decimal nullable: true LineItemCreate: title: Line Item required: - ordered_unit_price - quantity - sale_price - product type: object properties: ordered_unit_price: description: Price at the time the order was placed required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 sale_price: description: Sale price for this order required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 quantity: title: Quantity description: Number of units ordered type: string format: decimal product: title: Product description: id for the product type: string order: title: Order description: >- The number of the order this line item is attached to. Optional for line items embedded in an order object. type: string format: uuid nullable: true notes: title: Notes description: Notes for this specific ordered product type: string nullable: true is_sample: title: Is sample description: Is this line item a sample? type: boolean unit_multiplier: title: Unit multiplier description: >- How many individual units are sold when compared to the assigned unit of measure type: integer is_medical_line_item: title: Is medical line item description: Is this a medical line item? type: boolean is_packed: title: Is packed description: Is the line-item packed? type: boolean packed_at: title: Packed at description: Date and time this line-item was packed type: string format: date-time nullable: true packed_by: title: CompanyStaff user description: The CompanyStaff user that packed this product type: integer nullable: true unit_of_measure: title: Unit of measure description: Units this product is measured in type: string readOnly: true position: title: Position description: >- Position for this line item in the displayed list of line items on the order type: integer nullable: true batch: title: Batch description: Batch that should be displayed in invoice. type: integer nullable: true package_tags: title: Package tags description: Tags associated to line items via attached packages. type: string readOnly: true wholesale_price: title: Wholesale price description: Wholesale Price type: string format: decimal nullable: true LineItemResponse: type: object properties: id: title: Id description: id of the line item type: integer ordered_unit_price: description: Price at the time the order was placed required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 quantity: title: Quantity description: Number of units ordered type: string format: decimal order: title: Order description: >- The number of the order this line item is attached to. `number` or `order_number` on the order object. type: string format: uuid nullable: true product: title: Product description: id for the product type: string notes: title: Notes description: Notes for this specific ordered product type: string nullable: true is_sample: title: Is sample description: Is this line item a sample? type: boolean sale_price: description: Alternative sale price required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 unit_multiplier: title: Unit multiplier description: >- How many individual units are sold when compared to the assigned unit of measure type: integer is_medical_line_item: title: Is medical line item description: Is this a medical line item? type: boolean is_packed: title: Is packed description: Is the line-item packed? type: boolean packed_at: title: Packed at description: Date and time this line-item was packed type: string format: date-time nullable: true packed_by: title: CompanyStaff user description: The CompanyStaff user that packed this product type: integer nullable: true unit_of_measure: title: Unit of measure description: Units this product is measured in type: string readOnly: true position: title: Position description: >- Position for this line item in the displayed list of line items on the order type: integer nullable: true bulk_units: title: Bulk units description: The number of units of bulk available. quantity / unit_multiplier type: integer on_sale: title: On sale description: Is this line item on sale? type: boolean is_backorder: title: Is backorder description: Is this line item backordered? type: boolean nullable: true order_id: title: Order id type: string readOnly: true batch: title: Batch description: Batch that should be displayed in invoice. type: integer nullable: true package_tags: title: Package tags description: Tags associated to line items via attached packages. type: string readOnly: true frozen_data: title: Frozen data type: object wholesale_price: title: Wholesale price description: Wholesale Price type: string format: decimal nullable: true LineItemUpdate: type: object properties: ordered_unit_price: description: Price at the time the order was placed required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 quantity: title: Quantity description: Number of units ordered type: string format: decimal notes: title: Notes description: Notes for this specific ordered product type: string nullable: true is_sample: title: Is sample description: Is this line item a sample? type: boolean sale_price: description: Alternative sale price required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 is_packed: title: Is packed description: Is the line-item packed? type: boolean packed_at: title: Packed at description: Date and time this line-item was packed type: string format: date-time nullable: true packed_by: title: CompanyStaff user description: The CompanyStaff user that packed this product type: integer nullable: true position: title: Position description: >- Position for this line item in the displayed list of line items on the order type: integer nullable: true batch: title: Batch description: Batch that should be displayed in invoice. type: integer nullable: true LightCompanyStaffId: title: CompanyStaff description: Sales representatives associated with the order. type: object properties: id: title: Id description: id for the company staff user assigned to this order type: integer LightCompanyStaff: description: Sales representatives associated with the order. type: object properties: id: title: Id description: id for the company staff user assigned to this order type: integer readOnly: true user: title: User description: >- Concatenated string that contains the first name + last name of the company staff user type: string readOnly: true LightOrderTax: description: Details about the taxes applied to the order required: - order - tax type: object properties: id: title: Id description: id for the tax type type: integer readOnly: true order: title: Order type: integer tax: title: Tax type: integer name: title: Name type: string readOnly: true rate: title: Rate type: string readOnly: true state: title: State type: string readOnly: true auto_apply: title: Auto apply type: string readOnly: true BrandOwnerOrderInternal: required: - seller - discount_amount - line_items type: object properties: number: title: Number type: string format: uuid readOnly: true external_id_seller: title: External id seller description: Seller's external order ID. type: string maxLength: 100 nullable: true external_id_buyer: title: External id buyer description: Buyer's external order ID. type: string maxLength: 100 nullable: true ext_acct_id: title: Accounting Service ID description: Accounting Service ID type: string maxLength: 255 nullable: true created_on: title: Created on type: string format: date-time readOnly: true user: title: User description: User (staff) who made the order type: integer readOnly: true buyer: title: Buyer description: Company on the buy side of the order. type: integer nullable: true seller: title: Seller description: Company on the sell side of the order. type: integer customer: $ref: '#/components/schemas/LightCompanyCustomer' brand: title: Brand of Order type: integer nullable: true status: title: Status description: Order status type: string enum: - Draft - Submitted - Accepted - Backorder - Fulfilled - Shipped - Complete - Rejected - Combined - Cancelled manual: title: Manually Added description: True if Manually Added by Seller type: boolean discount_amount: title: Discount amount description: Discount amount applied to the order type: number format: decimal discount_type: title: Discount Type type: string enum: - '%' - $ tax_amount: title: Tax amount description: Tax amount applied to the order type: number format: decimal tax_type: title: Tax Type type: string enum: - '%' - $ total: title: Total description: >- Total order value, excluding products not owned by brand owner brands type: string readOnly: true ship_date: title: Ship Date description: Date the Order is shipped type: string format: date-time nullable: true notes: title: Order Notes description: Additional notes for an Order type: string maxLength: 2000 nullable: true internal_notes: title: Order Notes description: Internal notes for an Order type: string maxLength: 2000 nullable: true delivery_preferences: title: Delivery Preferences description: Customer Delivery Preferences type: string nullable: true line_items: type: array items: $ref: '#/components/schemas/LineItem' sales_reps: description: Sales representatives associated with the order. type: array items: $ref: '#/components/schemas/LightCompanyStaff' readOnly: true classification: title: Classification type: string maxLength: 50 nullable: true modified: title: Modified type: string format: date-time readOnly: true has_special_requests: title: Has special requests type: string readOnly: true order_taxes: description: Details about the taxes applied to the order type: array items: $ref: '#/components/schemas/LightOrderTax' seller_transaction_licenses: title: Seller transaction licenses type: string readOnly: true buyer_transaction_license: title: Buyer transaction license type: string readOnly: true is_combination: title: Is combination type: string readOnly: true order_number: title: Order number description: Read only alias of number. type: string readOnly: true minLength: 1 order_seller_number: title: Order seller number description: >- Read only alias of external_id_seller.If external_id_seller is missing, short_id will be provided. type: string readOnly: true order_buyer_number: title: Order buyer number description: >- Read only alias of external_id_buyer. If external_id_buyer is missing, short_id will be provided. type: string readOnly: true order_short_number: title: Order short number description: Read only alias of short_id. type: string readOnly: true minLength: 1 submitted_by: title: Submitted By description: The Brand Owner Company which created the order. type: integer readOnly: true BrandResponse: type: object properties: description: type: string id: description: Unique id generated by LeafLink. type: integer name: type: string company: description: Id for the company type: integer image: description: Logo for the brand type: string format: uri banner: description: Banner image for the brand type: string format: uri ProductImageResponse: description: Images for the product type: object properties: id: type: integer readOnly: true image: description: Url link to the image type: string format: uri product: description: Id for the associated product type: integer position: description: Image position type: integer maximum: 5 minimum: 1 UnitDenomination: required: - value - name - label type: object properties: id: description: id for the unit denomination. type: integer value: type: string name: type: string label: description: >- "1", "1/2", "1/4", "1/8", "3/4", "2", "3 1/2", "7", "14", "6", "28", "5 1/4", "4", "2 1/2", "8", "3 3/4", "1/10", "6/5", "3/2", "2/10", "1/5", "1/3", "1/6", "3/10", or "4/10" type: string CompanyResponse: type: object properties: description: type: string address: type: string announcement: type: string apply_ancillary_tax: type: boolean apply_arms_length_tax: type: boolean batch_enabled: title: Batch enabled description: Is the batches feature enabled? type: boolean business_identifier: description: Business identifier (Only applicable to WA) type: string business_license_name: type: string buyer: description: Does the company buy on the LeafLink marketplace? type: boolean seller: description: Does the company sell on the LeafLink marketplace? type: boolean city: type: string dba: type: string has_accting: description: Is the QuickBooks Online integration enabled? type: boolean hide_attached_packages: description: Metrc integration setting type: boolean id: description: Unique id generated by LeafLink. type: integer image: type: string format: uri name: type: string slug: type: string format: slug state: type: string sts_enabled: description: Is the Metrc integration enabled? type: boolean zipcode: type: string CompanyReportSchedule: required: - company - report_type type: object properties: id: title: ID type: integer readOnly: true company: title: Company description: Company to which this schedule belongs type: integer report_type: title: Report type type: string enum: - orders-assigned - orders-received - orders-sent - orders-report - ordered-products - accounts-receivable - customer-value - sales-rep-activity-feed - brand-performance - brand-owner-brand-performance - brand-owner-inventory-overview ReportDownload: required: - report_type - company type: object properties: number: title: Number type: string format: uuid readOnly: true user: title: User description: User (staff) who exported orders type: integer readOnly: true status: title: Status of orders export download description: Status of orders export download type: string enum: - running - failed - completed readOnly: true report_type: title: Report type type: string enum: - orders-assigned - orders-received - orders-sent - orders-report - ordered-products - accounts-receivable - customer-value - sales-rep-activity-feed - brand-performance - brand-owner-brand-performance - brand-owner-inventory-overview request_time: title: Orders export request date description: Date of requesting orders export type: string format: date-time readOnly: true complete_time: title: Orders export completed date description: Date of sending email with exported orders type: string format: date-time readOnly: true company: title: Company description: Company orders export refers to type: integer export: title: Report Export description: The Document that was exported type: string readOnly: true format: uri query: title: Query type: object to_email: title: User's email description: Email orders export has been send to type: string readOnly: true minLength: 1 CompanyStaffResponse: type: object properties: id: description: Unique id generated by LeafLink. type: integer user: description: Id for the staff member's LeafLink user account. type: integer company: description: Id for the company type: integer is_admin: description: Is the staff member an admin? type: boolean is_active: description: Is this an active staff member account? type: boolean is_poc: description: Is the staff member the point of contact for the company? type: boolean email: type: string phone: type: string identification_number: description: Identification number for the staff member. type: string display_name: description: >- First and last name registered with the staff member's LeafLink user account. type: string username: description: Username registered with the staff member's LeafLink user account. type: string Contact: required: - owner - first_name type: object properties: description: title: Description description: An overview of the contact type: string maxLength: 1500 nullable: true id: title: ID type: integer readOnly: true created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true owner: title: Owner type: integer first_name: title: First name type: string maxLength: 30 minLength: 1 last_name: title: Last name type: string maxLength: 30 email: title: Email address type: string format: email maxLength: 255 nullable: true secondary_email: title: Secondary email address type: string format: email maxLength: 255 nullable: true role: title: Position description: Position or role at company type: string maxLength: 400 nullable: true phone: title: Phone description: Phone Number of Brand type: string maxLength: 400 nullable: true phone_extension: title: Phone Extension type: string maxLength: 20 nullable: true secondary_phone: title: Secondary Phone description: Secondary Phone Number of Brand type: string maxLength: 400 nullable: true secondary_phone_extension: title: Secondary Phone Extension type: string maxLength: 20 nullable: true delete: title: Contact deleted description: Is this Contact marked as deleted? type: boolean CompanyCustomerContact: required: - contact - company type: object properties: id: title: ID type: integer readOnly: true created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true contact: title: Contact type: integer company: title: Company type: integer is_primary: title: Is primary type: boolean CompanyCustomerStatus: required: - state - owner type: object properties: description: title: Description description: Description of status type: string maxLength: 1500 nullable: true id: title: ID type: integer readOnly: true state: title: Customer Status description: Customer Status State type: string maxLength: 40 minLength: 1 order: title: Sort Order description: Sort order, lower is first. type: integer maximum: 2147483647 minimum: 1 owner: title: Company description: The Company that created the custom status. type: integer is_stock: title: Is a LeafLink Stock Status description: Is this a stock LeafLink status? type: boolean hex_color: title: Hex Color description: Hex color for customer status type: string maxLength: 40 nullable: true CompanyCustomerTag: required: - name - owner type: object properties: id: title: ID type: integer readOnly: true name: title: Name description: Name of Tag type: string maxLength: 400 minLength: 1 owner: title: Company that owns this tag type: integer CompanyCustomerTier: required: - rank - sort type: object properties: id: title: ID type: integer readOnly: true created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true rank: title: Classification description: Company Classification type: string maxLength: 40 minLength: 1 sort: title: Sort Order description: Sort order, lower is first. type: integer maximum: 2147483647 minimum: 0 CustomerCreate: required: - owner - name type: object properties: description: title: Description description: Additional information about the customer type: string maxLength: 4000 state: title: State description: State abbreviation type: string managers: description: Ids for the sales reps assigned to this customer. type: array items: type: integer uniqueItems: true next_contact_date: title: Next contact date description: Date for the next contact, YYYY-MM-DD type: string format: date nickname: title: Nickname description: Alternate name for the customer type: string maxLength: 200 external_id: title: External ID description: Id of the customer in a 3rd party system type: string maxLength: 100 ext_acct_id: title: Accounting Service External ID description: Id of the customer in QuickBooks Online. type: string license_number: title: License Number description: License Number type: string maxLength: 100 old_license_number: description: Old license number for the customer type: string maxLength: 100 nullable: true license_inactive: title: License Inactive description: Is the license inactive for this customer? type: boolean business_identifier: title: Business Identifier / UBI description: Company identifier distinct from license numbers type: string maxLength: 100 ein: title: EIN Number description: >- Company's federal EIN number. DEPRECATED for writes. For Customers linked to LeafLink Buyers (partner_id=Company.id), this field is read-only and inherited directly from the linked LeafLink Buyer Company. For Customers not linked to LeafLink Buyer Companies (partner_id=null), this field will return null. type: string maxLength: 100 directions: title: Directions description: Directions to the customer's location type: string maxLength: 3000 delivery_preferences: title: Delivery Preferences description: >- Customer delivery preferences. These will show up as footnotes on orders placed by the customer. type: string shipping_charge: title: Shipping charge description: Additional shipping charge type: string format: decimal brand: title: Brand Name description: Brand name associated with the customer type: string maxLength: 400 name: title: Name description: Customer name type: string maxLength: 400 dba: title: DBA description: DBA of customer type: string maxLength: 400 business_license_name: title: Business License Name description: Business License Name type: string maxLength: 400 website: title: Website description: Customer's website type: string format: uri maxLength: 400 address: title: Address description: Customer's address type: string maxLength: 400 unit_number: title: 'Unit #' description: 'Unit # for the address' type: string zipcode: title: Zipcode description: Zipcode type: string maxLength: 6 city: title: City description: City type: string maxLength: 400 county: title: County description: County type: string maxLength: 400 country: title: Country description: Country type: string maxLength: 400 lat: title: Lat description: Location latitude type: string format: decimal long: title: Long description: Location longitude type: string format: decimal phone: title: Phone description: Phone Number type: string maxLength: 400 phone_extension: description: Phone Extension type: string maxLength: 400 email: description: Email address type: string format: email maxLength: 255 notes: title: Notes description: Other information about the customer type: string maxLength: 3000 leaflink_last_views: title: Last shop time description: The last time this customer viewed your products on LeafLink type: string format: date-time readOnly: true leaflink_source: title: Added by LeafLink description: Was this customer added to your CRM by LeafLink type: boolean readOnly: true archived: title: Is Archived description: Is the customer record archived? type: boolean delinquent: title: Delinquent Customer description: Is this customer delinquent on billing? type: boolean discount_percent: title: Discount Percent description: Discount percent for orders from this customer. type: string format: decimal owner: title: Owner description: Id for the company that this customer record is for. type: integer tier: title: Tier description: Id for the customer's tier type: integer price_schedule: description: Id for the price schedule assigned to the customer type: integer service_zone: title: Service Zone description: Customer's service zone type: integer license_type: title: Business License Type description: Customer's business license type type: integer payment_term: $ref: '#/components/parameters/PaymentTerm' payment_methods: $ref: '#/components/parameters/PaymentMethods' available_payment_options: $ref: '#/components/parameters/AvailablePaymentOptionsCustomer' status: title: Customer Account Status description: Id for the customer's status type: integer external_ids: $ref: '#/components/schemas/ExternalIds' corporate_address: $ref: '#/components/schemas/Address' delivery_address: $ref: '#/components/schemas/Address' CustomerUpdate: type: object properties: description: title: Description description: Additional information about the customer type: string maxLength: 4000 state: title: State description: State abbreviation type: string managers: description: Ids for the sales reps assigned to this customer. type: array items: type: integer uniqueItems: true next_contact_date: title: Next contact date description: Date for the next contact, YYYY-MM-DD type: string format: date nickname: title: Nickname description: Alternate name for the customer type: string maxLength: 200 external_id: title: External ID description: Id of the customer in a 3rd party system type: string maxLength: 100 ext_acct_id: title: Accounting Service External ID description: Id of the customer in QuickBooks Online. type: string license_number: title: License Number description: License Number type: string maxLength: 100 old_license_number: description: Old license number for the customer type: string maxLength: 100 nullable: true license_inactive: title: License Inactive description: Is the license inactive for this customer? type: boolean business_identifier: title: Business Identifier / UBI description: Company identifier distinct from license numbers type: string maxLength: 100 ein: title: EIN Number description: >- Company's federal EIN number. DEPRECATED for writes. For Customers linked to LeafLink Buyers (partner_id=Company.id), this field is read-only and inherited directly from the linked LeafLink Buyer Company. For Customers not linked to LeafLink Buyer Companies (partner_id=null), this field will return null. type: string maxLength: 100 directions: title: Directions description: Directions to the customer's location type: string maxLength: 3000 delivery_preferences: title: Delivery Preferences description: >- Customer delivery preferences. These will show up as footnotes on orders placed by the customer. type: string shipping_charge: title: Shipping charge description: Additional shipping charge type: string format: decimal brand: title: Brand Name description: Brand name associated with the customer type: string maxLength: 400 name: title: Name description: Customer name type: string maxLength: 400 dba: title: DBA description: DBA of customer type: string maxLength: 400 business_license_name: title: Business License Name description: Business License Name type: string maxLength: 400 website: title: Website description: Customer's website type: string format: uri maxLength: 400 address: title: Address description: Customer's address type: string maxLength: 400 unit_number: title: 'Unit #' description: 'Unit # for the address' type: string zipcode: title: Zipcode description: Zipcode type: string maxLength: 6 city: title: City description: City type: string maxLength: 400 county: title: County description: County type: string maxLength: 400 country: title: Country description: Country type: string maxLength: 400 lat: title: Lat description: Location latitude type: string format: decimal long: title: Long description: Location longitude type: string format: decimal phone: title: Phone description: Phone Number type: string maxLength: 400 phone_extension: description: Phone Extension type: string maxLength: 400 email: description: Email address type: string format: email maxLength: 255 notes: title: Notes description: Other information about the customer type: string maxLength: 3000 leaflink_last_views: title: Last shop time description: The last time this customer viewed your products. type: string format: date-time readOnly: true archived: title: Is Archived description: Is the customer record archived? type: boolean delinquent: title: Delinquent Customer description: Is this customer delinquent on billing? type: boolean discount_percent: title: Discount Percent description: Discount percent for orders from this customer. type: string format: decimal owner: title: Owner description: Id for the company that this customer record is for. type: integer tier: title: Tier description: Id for the customer's tier type: integer price_schedule: description: Id for the price schedule assigned to the customer type: integer service_zone: title: Service Zone description: Customer's service zone type: integer license_type: title: Business License Type description: Customer's business license type type: integer available_payment_options: $ref: '#/components/parameters/AvailablePaymentOptionsCustomer' payment_term: $ref: '#/components/parameters/PaymentTerm' payment_methods: $ref: '#/components/parameters/PaymentMethods' status: title: Customer Account Status description: Id for the customer's status type: integer external_ids: $ref: '#/components/schemas/ExternalIds' corporate_address: $ref: '#/components/schemas/Address' delivery_address: $ref: '#/components/schemas/Address' CustomerResponse: type: object properties: description: description: Additional information about the customer type: string maxLength: 4000 id: description: Unique id generated by LeafLink. type: integer readOnly: true state: description: State abbreviation type: string managers: description: Ids for the sales reps assigned to this customer. type: array items: type: integer uniqueItems: true created_on: description: Date and time the customer was created. type: string format: date-time readOnly: true modified: description: Date and time the customer was last modified. type: string format: date-time readOnly: true next_contact_date: description: Date for the next contact, YYYY-MM-DD type: string format: date nickname: description: Alternate name for the customer type: string maxLength: 200 external_id: description: Id of the customer in a 3rd party system type: string maxLength: 100 ext_acct_id: description: Id of the customer in QuickBooks Online. type: string license_number: description: License Number type: string maxLength: 100 old_license_number: description: Old license number for the customer type: string maxLength: 100 nullable: true license_inactive: description: Is the license inactive for this customer? type: boolean business_identifier: description: Company identifier distinct from license numbers type: string maxLength: 100 ein: description: >- Company's federal EIN number. For Customers linked to LeafLink Buyers (partner_id=Company.id), this field is read-only and inherited directly from the linked LeafLink Buyer Company. For Customers not linked to LeafLink Buyer Companies (partner_id=null), this field will return null. type: string maxLength: 100 directions: description: Directions to the customer's location type: string maxLength: 3000 delivery_preferences: description: >- Customer delivery preferences. These will show up as footnotes on orders placed by the customer. type: string currency: description: Currency used by the customer. type: string readOnly: true minLength: 1 shipping_charge: description: Additional shipping charge type: string format: decimal brand: description: Brand name associated with the customer type: string maxLength: 400 name: description: Customer name type: string maxLength: 400 dba: description: DBA of customer type: string maxLength: 400 business_license_name: description: Business License Name type: string maxLength: 400 website: description: Customer's website type: string format: uri maxLength: 400 address: description: Customer's address type: string maxLength: 400 unit_number: description: 'Unit # for the address' type: string zipcode: description: Zipcode type: string maxLength: 6 city: description: City type: string maxLength: 400 county: description: County type: string maxLength: 400 country: description: Country type: string maxLength: 400 lat: description: Location latitude type: string format: decimal long: description: Location longitude type: string format: decimal phone: description: Phone Number type: string maxLength: 400 phone_extension: description: Phone Extension type: string maxLength: 400 email: description: Email address type: string format: email maxLength: 255 notes: description: Other information about the customer type: string maxLength: 3000 leaflink_last_views: description: The last time this customer viewed your products. type: string format: date-time readOnly: true leaflink_source: description: Was this customer added to your CRM by LeafLink? type: boolean readOnly: true archived: description: Is the customer record archived? type: boolean delinquent: description: Is this customer delinquent on billing? type: boolean discount_percent: description: Discount percent for orders from this customer. type: string format: decimal owner: description: Id for the company that this customer record is for. type: integer partner: description: Id for the buyer company that this customer record represents. type: integer readOnly: true tier: description: Id for the customer's tier type: integer price_schedule: description: Id for the price schedule assigned to the customer type: integer service_zone: description: Customer's service zone type: integer license_type: title: Business License Type description: Customer's business license type type: integer payment_term: description: >- Customer's payment terms Deprecated field, please use payment_option instead type: integer payment_methods: description: >- Customer's payment methods Deprecated field, please use payment_option instead type: array items: type: integer available_payment_options: title: Available payment options description: Available payment options for a customer type: array required: - payment_term_id - payment_method_id properties: id: title: Id description: id for payment option type: integer readOnly: true payment_method_id: title: Payment method id for payment option type: integer payment_term_id: title: Payment term id for payment option type: integer payment_program: title: Payment program for payment option type: string payment_strategy: title: Payment strategy for payment option type: string items: {} status: description: Id for the customer's status type: integer external_ids: $ref: '#/components/schemas/ExternalIds' corporate_address: $ref: '#/components/schemas/Address' delivery_address: $ref: '#/components/schemas/Address' DeliveryProviderOrderInformation: title: Delivery info type: object properties: acquire_date: title: Acquire date description: >- Date the Trusted Delivery Provider will either `Pick Up` or get `Drop Off` the order. Must be `null` for `In Storage` type. type: string format: date-time nullable: true acquire_type: title: Acquire type description: 1 = Drop Off; 2 = Pick Up; 3 = In Storage. 4 = Will Call type: integer enum: - 1 - 2 - 3 - 4 nullable: true get_acquire_type_display: title: Get acquire type display type: string readOnly: true manifest_number: title: Manifest number description: An identifier for the order's manifest document. type: string maxLength: 50 nullable: true LicenseType: required: - type - display_type - classification - state type: object properties: description: title: Description description: Description or Notes type: string maxLength: 5000 nullable: true id: title: ID type: integer readOnly: true type: title: Type description: License Type type: string maxLength: 100 minLength: 1 display_type: title: Display Type description: Type for display in the LeafLink frontend type: string maxLength: 100 minLength: 1 classification: title: License Classification Type description: License Classification Type type: string maxLength: 100 minLength: 1 state: title: State description: >- id for the state [1: "AL", 2: "AK", 3: "AZ", 4: "AR", 5: "CA", 6: "CO", 7: "CT", 8: "DE", 9: "FL", 10: "GA", 11: "HI", 12: "ID", 13: "IL", 14: "IN", 15: "IA", 16: "KS", 17: "KY", 18: "LA", 19: "ME", 20: "MD", 21: "MA", 22: "MI", 23: "MN", 24: "MS", 25: "MO", 26: "MT", 27: "NE", 28: "NV", 29: "NH", 30: "NJ", 31: "NM", 32: "NY", 33: "NC", 34: "ND", 35: "OH", 36: "OK", 37: "OR", 38: "PA", 39: "RI", 40: "SC", 41: "SD", 42: "TN", 43: "TX", 44: "UT", 45: "VT", 46: "VA", 47: "WA", 48: "WV", 49: "WI", 50: "WY", 51: "PR", 52: "DC", 53: "SK", 54: "ON", 55: "QC", 56: "BC", 57: "AB", 58: "MB", 59: "NS", 60: "NB", 61: "NL", 62: "PE", 63: "NT", 64: "NU", 65: "YT"] type: integer require_ein: title: Require ein description: EIN is required to register under this license type. type: boolean has_medical_line_items: title: Has medical line items description: This license type can sell medical line items. type: boolean active_for_registration: title: Active for registration description: This license type is available for current registrations. type: boolean pre_2018_CA: title: Pre 2018 CA description: pre-2018 CA license. type: boolean post_2018_CA: title: Post 2018 CA description: post-2018 CA license. type: boolean created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true state_abbr: description: >- Two letter abbreviation for the state associated with this license type. type: string ComplianceLicense: required: - number type: object properties: id: title: Id description: id for license type: integer readOnly: true number: title: License Number description: License Number type: string maxLength: 100 minLength: 1 type: title: Type description: Type type: string readOnly: true display_type: title: Display type description: Display type type: string readOnly: true classification: title: Classification description: Classification type: string readOnly: true OrderComment: required: - order - author - message type: object properties: id: title: ID type: integer readOnly: true order: title: Order type: string format: uuid author: title: Author of comment description: The author of the comment type: integer author_name: title: Author name type: string readOnly: true message: title: Message description: Message associated with comment type: string minLength: 1 created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true OrderEventLog: required: - event_type type: object properties: description: title: Description type: string maxLength: 255 nullable: true id: title: ID type: integer readOnly: true order: title: Order type: string format: uuid readOnly: true author_name: title: Author name type: string readOnly: true by: title: By type: string pattern: ^[\w.@+-]+$ readOnly: true event_type: title: Event type type: string enum: - accepted - backordered - cancelled - completed - created - edited - fulfilled - rejected - combined - rep_edited - shipped - shipping_edited - submitted - unaccepted created_on: title: Created on type: string format: date-time readOnly: true modified: title: Modified type: string format: date-time readOnly: true timestamp: title: Timestamp type: string format: date-time readOnly: true changed_fields: title: Changed fields type: object readOnly: true source: title: Event Source description: Where the change to the Order was made type: string enum: - app - api - other source_detail: title: Event Source Desc. description: Where the change to the Order was made. type: string maxLength: 200 OrderPaymentCreate: required: - order - recorded_by - total - payment_date type: object properties: order: description: >- Number of the order this payment applies to. See `number` on the order object. type: string recorded_by: description: >- Id of the user recording this payment. See `id` on the company staff object. type: integer total: required: - amount - currency type: object properties: amount: type: string format: decimal currency: type: string minLength: 1 payment_date: description: Date and time the payment was submitted on. type: string format: date-time reason: description: Description for this payment. type: string payment_type: description: Type of payment type: string enum: - other - cash - check - credit - trade - ach - wire - cashier OrderPaymentResponse: type: object properties: id: description: Unique id generated by LeafLink. type: integer created_on: description: Date and time the payment was created. type: string format: date-time modified: description: Date and time the payment was last modified. type: string format: date-time order: description: >- Number of the order this payment applies to. See `number` on the order object. type: string recorded_by: description: >- Id of the user who recorded this payment. See `id` on the company staff object. type: integer recorder_name: description: >- Name of the user who recorded this payment. See `display_name` on the company staff object. type: string readOnly: true total: type: object properties: amount: type: string format: decimal currency: type: string minLength: 1 payment_date: description: Date and time the payment was submitted on. type: string format: date-time reason: description: Description for this payment. type: string payment_type: description: Type of payment type: string enum: - other - cash - check - credit - trade - ach - wire - cashier OrderSalesRepSerialzer: required: - order - rep type: object properties: id: title: ID type: integer readOnly: true order: title: Order type: string format: uuid rep: title: Rep type: integer created_on: title: Created on type: string format: date-time readOnly: true ProductBatchResponse: type: object properties: id: description: Unique id generated by LeafLink. type: integer product: description: Id for the Product. See `id` in the product object. type: string batch: description: Id for the batch. See `id` in the batch object. type: integer ProductBatchCreate: required: - product - batch type: object properties: product: description: Id for the Product. See `id` in the product object. type: string batch: description: Id for the batch. See `id` in the batch object. type: integer ProductCategoryResponse: type: object properties: description: type: string id: description: Unique id generated by LeafLink. type: integer name: type: string slug: type: string ProductLineResponse: type: object properties: id: description: Unique id generated by LeafLink. type: integer name: type: string brand: description: Id for the brand. See `id` in the brands response. type: integer menu_position: description: Position of the product line on the menu. type: integer ProductLineCreate: required: - name - brand type: object properties: name: type: string maxLength: 100 brand: description: Id for the brand. See `id` in the brands response. type: integer menu_position: description: Position of the product line on the menu. type: integer ProductLineUpdate: type: object properties: name: type: string maxLength: 100 brand: description: Id for the brand. See `id` in the brands response. type: integer menu_position: description: Position of the product line on the menu. type: integer ParentProduct: title: Parent description: >- Parent product to which this product belongs. Required if creating a variety (child product) of a parent product. Varieties are useful when selling a single product in various sizes (i.e. as eighths, grams, and half ounces). required: - id type: object properties: id: title: Id description: id of the product type: integer ProductCreate: required: - name - description - retail_price - wholesale_price - sale_price - minimum_order - maximum_order - listing_state - inventory_management - unit_of_measure - unit_denomination - category - sub_category - seller - brand - manufacturer - strain_classification - sku - license type: object properties: description: description: >- Populate with product name if no additional description is available in source system. type: string drop_date: description: >- Date and time the product is scheduled to transition to "Available", if applicable. The product must be set to a listing status of "Unavailable" in order to flip it to "Available" on the drop date. type: string format: date-time name: type: string sku: description: >- A company's unique identifier for a product. Commas are not supported. type: string maxLength: 255 quantity: description: Inventory level. Required if seller is managing inventory type: string unit_multiplier: description: >- Required if seller is selling in cases (multiples). This is a very common practice for sellers across all product categories. If sold in multiples, the number of units sold per case. If not selling in multiples, set to "1". default: 1 type: integer retail_price: description: >- Manufacturer's Suggested Retail Price (MSRP). Use "0.00" if no retail price is stored in the source system. required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 wholesale_price: description: Wholesale price displayed to buyers in the LeafLink marketplace. required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 sale_price: description: >- Sale price displayed to buyers in the LeafLink marketplace. Use "0.00" if no sale price is stored in the source system. required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 minimum_order: description: >- Minimum units required for an order. Use "0.01" if no minimum order quantity is stored in the source system. type: string maximum_order: description: >- Maximum units allowed for an order. Use "100000" if no maximum order quantity is stored in the source system. type: string AVAILABLE_FOR_SAMPLES: description: >- Is this product available for samples? Set to "true" if value is not available in source system. Certain markets like Canada and OH do not allow samples. type: boolean extern_acct_id: description: Id of the product in QuickBooks Online. type: string extern_income_acct_id: description: The id for the QuickBooks Online income account. type: string featured: description: >- Is the product a featured product? Set to "false" if value is not available in source system. type: boolean tagline: description: One-liner that displayed when the product is featured type: string allow_fractional_quantities: description: >- Does this product allow fractional quantities to be ordered? Recommended if Flower category product is sold in bulk. type: boolean parent: $ref: '#/components/schemas/ParentProduct' listing_state: description: >- Set to "Available" to make the product available for selling/buying. "Internal" should be used when a seller does not want a product to be visible to buyers, but may be manually added to orders by the seller. type: string enum: - Available - Archived - Sample - Backorder - Internal - Unavailable display_listing_state: description: The listing state string displayed in the marketplace. type: string inventory_management: description: >- id for the inventory setting [1: "Managed", 2: "Unlimited", 3: "Inherited"] Use "1" to set the inventory of the product to managed. If set to "1", available inventory quantity should be set using "quantity" field. type: string unit_of_measure: description: >- If appropriate unit of measure is not available as an option, use "Unit" and enter the number of units per unit in the base_units_per_unit field. type: string enum: - Milligram - Gram - Kilogram - Ounce - Pound - Unit - Liter - Milliliter sell_in_unit_of_measure: description: >- If selling the product in cases as opposed to individual units, set this field to "Case". Required if seller is selling in cases and unit_multiplier is greater than 1. type: string enum: - Case unit_denomination: description: >- id for the unit denomination [1: "1", 2: "1/2", 3: "1/4", 4: "1/8", 5: "3/4", 6: "2", 7: "3 1/2", 8: "7", 9: "14", 10: "6", 11: "28", 12: "5 1/4", 13: "4", 14: "2 1/2", 15: "8", 16: "3 3/4", 17: "1/10", 18: "6/5", 19: "3/2", 20: "2/10", 21: "1/5", 22: "1/3", 23: "1/6", 24: "3/10", 25: "4/10"]. Set to "1" if appropriate value is not available as an option. type: integer category: description: >- Id for the category. See `id` in the product-categories response. Ids may differ per environment. type: integer sub_category: description: >- Id for the subcategory. See `id` in the product-subcategories response. Ids may differ per environment. type: integer grow_type: description: If a flower product, the id for the type of grow operation. type: integer seller: description: >- Id for the company listing the product. See `id` in the companies response. type: integer brand: description: Id for the brand. See `id` in the brands response. type: integer product_line: description: >- Id for the product line. See `id` in the product-lines response. Using product lines provides a better experience for buyers to be able to navigate the seller's menu. For the seller, it provides better in platform reporting and analytics. type: integer manufacturer: description: >- Id for the company that manufactured the product. See `id` in the companies response. Typically set to the same id as the seller field. type: integer strain_classification: description: If not applicable to the product, use `na`. type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid license: description: >- Id for the license. See `id` in the licenses response. Required for product to appear on menu for buyer visibility and for compliance. Use "N/A" for ancillary products. type: integer strains: description: >- The strains associated with the product. This field is required for products with the `Flower` category. type: array items: description: >- Id for the strains associated with the product. See `id` in the strains response. type: integer uniqueItems: true extern_sts_ids: description: Id used by the Metrc add on. type: array items: type: string base_units_per_unit: description: >- Required if using Unit as base unit of measure. If the product `unit_of_measure` is `Unit`, this describes the number of base units in each unit of the product. The base unit is defined by the product category.
`Cartridges = Grams`
`Topicals = Milligrams of Cannabinoids`
`Concentrates = Grams`
`Flower (excluding Seeds and Clones) = Grams`
`Edibles & Ingestibles = Milligrams of Cannabinoids`
`Pre-Rolls = Grams`
`Accessories = N/A` type: string format: decimal external_ids: $ref: '#/components/schemas/ExternalIds' threshold_value: description: >- When product inventory quantity reaches below this value, take various actions. type: integer threshold_action: description: >- Action to take when product inventory quantity reaches below a specified value. Available values include `default`, `backorder`, `unavailable`, and `internal`. type: string reverse_threshold_value: description: >- When product inventory quantity reaches above this value, take various actions. type: integer reverse_threshold_action: description: >- Action to take when product inventory quantity reaches above a specified value. Available values include `default`, `available`, and `internal`. type: string show_quantity: description: Show inventory quantities to buyers? type: boolean product_data_items: description: Product specifications. type: array items: required: - spec_type type: object properties: spec_type: description: >- The slug of the product specificaiton type. Available values include `thc`, `thca`, `cbn`, `cbg`, `cbd`, `solvents`, `flowering`, `growth`, `cannabinoids`, `terpenes`, `nugget`, `other`, `yield`, `cbc`, `thcv`, `cbda`, `delta-8-thc`, `total-thc`, `total-cbd`, `cbl`, `delta-9-thc`, `cbga`, `cbdv`. type: string dosage_unit: description: >- Dosage unit of the specification. Available options are `mg` and `%`. Required only if `decimal_value` is sent. type: string decimal_value: description: >- Value of the product specification. Required if `text_value` is not sent. type: string format: decimal max_decimal_value: description: >- If there is a range of values for the specification, the maximum value. type: string format: decimal text_value: description: >- The text value of the specification. Required if `decimal_value` is not sent. type: string example: description: >-

Our premium Swiss Masters chocolate bars are bold, rich, and steeped in chocolate tradition. The Swiss Master dark chocolate has 70% dark chocolate paired with 100mg THC.

name: Swiss Masters Chocolate Bar (Dark) sku: SWI-BAR-DAR-100 quantity: '800.0000' display_name: Swiss Masters Chocolate Bar (Dark) unit_multiplier: 12 retail_price: amount: 18 currency: USD wholesale_price: amount: 108 currency: USD sale_price: amount: 0 currency: USD minimum_order: '1.0000' maximum_order: null listing_state: Available inventory_management: 1 unit_of_measure: Unit unit_denomination: 1 category: 7 seller: 3721 brand: 49 manufacturer: 3721 strain_classification: na license: 2619 external_ids: system-name: '1234567890' threshold_value: 0 threshold_action: unavailable reverse_threshold_value: 1 reverse_threshold_action: available show_quantity: true ProductUpdate: type: object properties: description: type: string drop_date: description: >- Date and time the product is scheduled to transition to Available, if applicable. type: string format: date-time name: type: string sku: type: string maxLength: 255 quantity: description: Inventory level type: string available_inventory: description: Inventory available for sale (quantity - reserved_qty). type: string unit_multiplier: description: If sold in multiples, the number of units sold per case default: 1 type: integer retail_price: description: Manufacturer's Suggested Retail Price (MSRP) required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 wholesale_price: description: Wholesale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 sale_price: description: Sale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 minimum_order: description: Minimum units required for an order type: string maximum_order: description: Maximum units allowed for an order type: string AVAILABLE_FOR_SAMPLES: description: Is this product available for samples? type: boolean extern_acct_id: description: Id of the product in QuickBooks Online. type: string extern_income_acct_id: description: The id for the QuickBooks Online income account. type: string featured: description: Is the product a featured product? type: boolean tagline: description: One-liner that displayed when the product is featured type: string allow_fractional_quantities: description: Does this product allow fractional quantities to be ordered? type: boolean parent: $ref: '#/components/schemas/ParentProduct' listing_state: type: string enum: - Available - Archived - Sample - Backorder - Internal - Unavailable display_listing_state: description: The listing state string displayed in the marketplace. type: string inventory_management: description: >- id for the inventory setting [1: "Managed", 2: "Unlimited", 3: "Inherited"] type: string unit_of_measure: type: string enum: - Milligram - Gram - Kilogram - Ounce - Pound - Unit - Liter - Milliliter sell_in_unit_of_measure: description: >- If selling the product in cases as opposed to individual units, set this field to Case. type: string enum: - Case unit_denomination: description: >- id for the unit denomination [1: "1", 2: "1/2", 3: "1/4", 4: "1/8", 5: "3/4", 6: "2", 7: "3 1/2", 8: "7", 9: "14", 10: "6", 11: "28", 12: "5 1/4", 13: "4", 14: "2 1/2", 15: "8", 16: "3 3/4", 17: "1/10", 18: "6/5", 19: "3/2", 20: "2/10", 21: "1/5", 22: "1/3", 23: "1/6", 24: "3/10", 25: "4/10"] type: integer category: description: Id for the category. See `id` in the product-categories response. type: integer sub_category: description: >- Id for the subcategory. See `id` in the product-subcategories response. type: integer grow_type: description: If a flower product, the id for the type of grow operation. type: integer seller: description: >- Id for the company listing the product. See `id` in the companies response. type: integer brand: description: Id for the brand. See `id` in the brands response. type: integer product_line: description: Id for the product line. See `id` in the product-lines response. type: integer manufacturer: description: >- Id for the company that manufactured the product. See `id` in the companies response. Can be the same id as the seller field. type: integer strain_classification: description: If not applicable to the product, use `na`. type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid license: $ref: '#/components/schemas/ComplianceLicense' strains: description: >- The strains associated with the product. This field is required for products with the `Flower` category. type: array items: description: >- Id for the strains associated with the product. See `id` in the strains response. type: integer uniqueItems: true extern_sts_ids: description: Id used by the Metrc add on. type: array items: type: string base_units_per_unit: description: >- If the product `unit_of_measure` is `Unit`, this describes the number of base units in each unit of the product. The base unit is defined by the product category.
`Cartridges = Grams`
`Topicals = Milligrams of Cannabinoids`
`Concentrates = Grams`
`Flower (excluding Seeds and Clones) = Grams`
`Edibles & Ingestibles = Milligrams of Cannabinoids`
`Pre-Rolls = Grams`
`Accessories = N/A` type: string format: decimal external_ids: $ref: '#/components/schemas/ExternalIds' threshold_value: description: >- When product inventory quantity reaches below this value, take various actions. type: integer threshold_action: description: >- Action to take when product inventory quantity reaches below a specified value. Available values include `default`, `backorder`, `unavailable`, and `internal`. type: string reverse_threshold_value: description: >- When product inventory quantity reaches above this value, take various actions. type: integer reverse_threshold_action: description: >- Action to take when product inventory quantity reaches above a specified value. Available values include `default`, `available`, and `internal`. type: string show_quantity: description: Show inventory quantities to buyers? type: boolean product_data_items: description: >- Product specifications. The list in the request will replace any existing product data items. type: array items: required: - spec_type type: object properties: spec_type: description: >- The slug of the product specificaiton type. Available values include `thc`, `thca`, `cbn`, `cbg`, `cbd`, `solvents`, `flowering`, `growth`, `cannabinoids`, `terpenes`, `nugget`, `other`, `yield`, `cbc`, `thcv`, `cbda`, `delta-8-thc`, `total-thc`, `total-cbd`, `cbl`, `delta-9-thc`, `cbga`, `cbdv`. type: string dosage_unit: description: >- Dosage unit of the specification. Available options are `mg` and `%`. Required only if `decimal_value` is sent. type: string decimal_value: description: >- Value of the product specification. Required if `text_value` is not sent. type: string format: decimal max_decimal_value: description: >- If there is a range of values for the specification, the maximum value. type: string format: decimal text_value: description: >- The text value of the specification. Required if `decimal_value` is not sent. type: string example: quantity: 2000 ProductUpdateResponse: type: object properties: description: type: string id: description: Unique id generated by LeafLink. type: integer created_on: description: Date and time the product was created type: string format: date-time last_edit: description: Date and time the product was last edited by a user type: string format: date-time drop_date: description: >- Date and time the product is scheduled to transition to Available, if applicable. type: string format: date-time dropped: description: Date and time the product transitioned to Available. type: string format: date-time name: type: string sku: type: string maxLength: 255 quantity: description: Inventory level type: string reserved_qty: description: Inventory reserved by orders in the `Submitted` or `Accepted` states type: string available_inventory: description: Inventory available for sale (quantity - reserved_qty). type: string display_name: description: >- If the product is a variety, the parent product name + the product name type: string unit_multiplier: description: If sold in multiples, the number of units sold per case default: 1 type: integer retail_price: description: Manufacturer's Suggested Retail Price (MSRP) required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 wholesale_price: description: Wholesale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 sale_price: description: Sale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 minimum_order: description: Minimum units required for an order type: string maximum_order: description: Maximum units allowed for an order type: string is_medical_line_item: description: Is the product a medical product? type: boolean AVAILABLE_FOR_SAMPLES: description: Is this product available for samples? type: boolean extern_acct_id: description: Id of the product in QuickBooks Online. type: string extern_income_acct_id: description: The id for the QuickBooks Online income account. type: string featured: description: Is the product a featured product? type: boolean tagline: description: One-liner that displayed when the product is featured type: string featured_on_deals: description: Is this product featured on the LeafLink deals page? type: boolean allow_fractional_quantities: description: Does this product allow fractional quantities to be ordered? type: boolean parent: $ref: '#/components/schemas/ParentProduct' listing_state: type: string enum: - Available - Archived - Sample - Backorder - Internal - Unavailable display_listing_state: description: The listing state string displayed in the marketplace. type: string inventory_management: description: >- id for the inventory setting [1: "Managed", 2: "Unlimited", 3: "Inherited"] type: string unit_of_measure: type: string enum: - Milligram - Gram - Kilogram - Ounce - Pound - Unit - Liter - Milliliter sell_in_unit_of_measure: description: >- If selling the product in cases as opposed to individual units, set this field to Case. type: string enum: - Case unit_denomination: $ref: '#/components/schemas/UnitDenomination' category: description: Id for the category. See `id` in the product-categories response. type: integer sub_category: description: >- Id for the subcategory. See `id` in the product-subcategories response. type: integer grow_type: description: If a flower product, the id for the type of grow operation. type: integer seller: description: >- Id for the company listing the product. See `id` in the companies response. type: integer brand: description: Id for the brand. See `id` in the brands response. type: integer product_line: description: Id for the product line. See `id` in the product-lines response. type: integer manufacturer: description: >- Id for the company that manufactured the product. See `id` in the companies response. Can be the same id as the seller field. type: integer strain_classification: description: If not applicable to the product, use `na`. type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid license: $ref: '#/components/schemas/ComplianceLicense' children_count: description: Number of varieties of this product type: string strains: description: >- The strains associated with the product. This field is required for products with the `Flower` category. type: array items: description: >- Id for the strains associated with the product. See `id` in the strains response. type: integer uniqueItems: true price_schedule_price: description: >- If using the buyer query parameter, the special price set for that customer with the price schedule feature. Otherwise, same as wholesale price. type: string image_count: description: The number of product images type: string is_ancillary: description: Is the product an ancillary product? type: boolean s2s_conversion_amount: description: Conversion value used by the Metrc add on. type: string format: decimal extern_sts_ids: description: Id used by the Metrc add on. type: array items: type: string strain_classification_display: title: Strain classification display type: string readOnly: true modified: title: Modified description: Date and time the product data was last modified. type: string has_deals_eligible_children: description: >- Does the product have varieties that are eligible for LeafLink deals?' type: string discount_percent: description: >- Discount applied to a product, calculated by comparing the wholesale and sale price. type: integer base_units_per_unit: description: >- If the product `unit_of_measure` is `Unit`, this describes the number of base units in each unit of the product. The base unit is defined by the product category.
`Cartridges = Grams`
`Topicals = Milligrams of Cannabinoids`
`Concentrates = Grams`
`Flower (excluding Seeds and Clones) = Grams`
`Edibles & Ingestibles = Milligrams of Cannabinoids`
`Pre-Rolls = Grams`
`Accessories = N/A` type: string format: decimal external_ids: $ref: '#/components/schemas/ExternalIds' threshold_value: description: >- When product inventory quantity reaches below this value, take various actions. type: integer threshold_action: description: >- Action to take when product inventory quantity reaches below a specified value. Available values include `default`, `backorder`, `unavailable`, and `internal`. type: string reverse_threshold_value: description: >- When product inventory quantity reaches above this value, take various actions. type: integer reverse_threshold_action: description: >- Action to take when product inventory quantity reaches above a specified value. Available values include `default`, `available`, and `internal`. type: string show_quantity: description: Show inventory quantities to buyers? type: boolean example: description: >-

Our premium Swiss Masters chocolate bars are bold, rich, and steeped in chocolate tradition. The Swiss Master dark chocolate has 70% dark chocolate paired with 100mg THC.

id: 2093 created_on: '2020-02-19T00:36:22.353448-06:00' last_edit: '2020-04-27T07:41:29.797149-06:00' drop_date: null dropped: null name: Swiss Masters Chocolate Bar (Dark) sku: SWI-BAR-DAR-100 quantity: '2000.0000' reserved_qty: '120.0000' display_name: Swiss Masters Chocolate Bar (Dark) unit_multiplier: 12 retail_price: amount: 18 currency: USD wholesale_price: amount: 108 currency: USD sale_price: amount: 0 currency: USD minimum_order: '1.0000' maximum_order: null is_medical_line_item: false AVAILABLE_FOR_SAMPLES: true extern_acct_id: null extern_income_acct_id: '' featured: false tagline: null featured_on_deals: false allow_fractional_quantities: false parent: null listing_state: Available display_listing_state: Available inventory_management: 1 unit_of_measure: Unit sell_in_unit_of_measure: Case unit_denomination: id: 1 value: '1.00000' name: One label: '1' category: 7 grow_type: null seller: 3721 brand: 49 product_line: 164 manufacturer: 3721 strain_classification: na license: id: 2619 number: 404R-00000 type: Recreational display_type: Adult Use classification: MIPS available_inventory: 1880 children_count: 0 strains: [] price_schedule_price: amount: 108 currency: USD image_count: 1 is_ancillary: false s2s_conversion_amount: '1.0000' extern_sts_ids: null strain_classification_display: N/A modified: '2020-06-11T15:53:07.137980-06:00' sub_category: 14 has_deals_eligible_children: false discount_percent: 0 base_units_per_unit: null external_ids: system-name: '1234567890' threshold_value: 0 threshold_action: unavailable reverse_threshold_value: 1 reverse_threshold_action: available show_quantity: true ProductArchiveResponse: type: object properties: description: type: string id: description: Unique id generated by LeafLink. type: integer created_on: description: Date and time the product was created type: string format: date-time last_edit: description: Date and time the product was last edited by a user type: string format: date-time drop_date: description: >- Date and time the product is scheduled to transition to Available, if applicable. type: string format: date-time dropped: description: Date and time the product transitioned to Available. type: string format: date-time name: type: string sku: type: string maxLength: 255 quantity: description: Inventory level type: string reserved_qty: description: Inventory reserved by orders in the `Submitted` or `Accepted` states type: string available_inventory: description: Inventory available for sale (quantity - reserved_qty). type: string display_name: description: >- If the product is a variety, the parent product name + the product name type: string unit_multiplier: description: If sold in multiples, the number of units sold per case default: 1 type: integer retail_price: description: Manufacturer's Suggested Retail Price (MSRP) required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 wholesale_price: description: Wholesale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 sale_price: description: Sale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 minimum_order: description: Minimum units required for an order type: string maximum_order: description: Maximum units allowed for an order type: string is_medical_line_item: description: Is the product a medical product? type: boolean AVAILABLE_FOR_SAMPLES: description: Is this product available for samples? type: boolean extern_acct_id: description: Id of the product in QuickBooks Online. type: string extern_income_acct_id: description: The id for the QuickBooks Online income account. type: string featured: description: Is the product a featured product? type: boolean tagline: description: One-liner that displayed when the product is featured type: string featured_on_deals: description: Is this product featured on the LeafLink deals page? type: boolean allow_fractional_quantities: description: Does this product allow fractional quantities to be ordered? type: boolean parent: $ref: '#/components/schemas/ParentProduct' listing_state: type: string enum: - Available - Archived - Sample - Backorder - Internal - Unavailable display_listing_state: description: The listing state string displayed in the marketplace. type: string inventory_management: description: >- id for the inventory setting [1: "Managed", 2: "Unlimited", 3: "Inherited"] type: string unit_of_measure: type: string enum: - Milligram - Gram - Kilogram - Ounce - Pound - Unit - Liter - Milliliter sell_in_unit_of_measure: description: >- If selling the product in cases as opposed to individual units, set this field to Case. type: string enum: - Case unit_denomination: $ref: '#/components/schemas/UnitDenomination' category: description: Id for the category. See `id` in the product-categories response. type: integer sub_category: description: >- Id for the subcategory. See `id` in the product-subcategories response. type: integer grow_type: description: If a flower product, the id for the type of grow operation. type: integer seller: description: >- Id for the company listing the product. See `id` in the companies response. type: integer brand: description: Id for the brand. See `id` in the brands response. type: integer product_line: description: Id for the product line. See `id` in the product-lines response. type: integer manufacturer: description: >- Id for the company that manufactured the product. See `id` in the companies response. Can be the same id as the seller field. type: integer strain_classification: description: If not applicable to the product, use `na`. type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid license: $ref: '#/components/schemas/ComplianceLicense' children_count: description: Number of varieties of this product type: string strains: description: >- The strains associated with the product. This field is required for products with the `Flower` category. type: array items: description: >- Id for the strains associated with the product. See `id` in the strains response. type: integer uniqueItems: true price_schedule_price: description: >- If using the buyer query parameter, the special price set for that customer with the price schedule feature. Otherwise, same as wholesale price. type: string image_count: description: The number of product images type: string is_ancillary: description: Is the product an ancillary product? type: boolean s2s_conversion_amount: description: Conversion value used by the Metrc add on. type: string format: decimal extern_sts_ids: description: Id used by the Metrc add on. type: array items: type: string strain_classification_display: title: Strain classification display type: string readOnly: true modified: title: Modified description: Date and time the product data was last modified. type: string has_deals_eligible_children: description: >- Does the product have varieties that are eligible for LeafLink deals?' type: string discount_percent: description: >- Discount applied to a product, calculated by comparing the wholesale and sale price. type: integer base_units_per_unit: description: >- If the product `unit_of_measure` is `Unit`, this describes the number of base units in each unit of the product. The base unit is defined by the product category.
`Cartridges = Grams`
`Topicals = Milligrams of Cannabinoids`
`Concentrates = Grams`
`Flower (excluding Seeds and Clones) = Grams`
`Edibles & Ingestibles = Milligrams of Cannabinoids`
`Pre-Rolls = Grams`
`Accessories = N/A` type: string format: decimal external_ids: $ref: '#/components/schemas/ExternalIds' threshold_value: description: >- When product inventory quantity reaches below this value, take various actions. type: integer threshold_action: description: >- Action to take when product inventory quantity reaches below a specified value. Available values include `default`, `backorder`, `unavailable`, and `internal`. type: string reverse_threshold_value: description: >- When product inventory quantity reaches above this value, take various actions. type: integer reverse_threshold_action: description: >- Action to take when product inventory quantity reaches above a specified value. Available values include `default`, `available`, and `internal`. type: string show_quantity: description: Show inventory quantities to buyers? type: boolean example: description: >-

Our premium Swiss Masters chocolate bars are bold, rich, and steeped in chocolate tradition. The Swiss Master dark chocolate has 70% dark chocolate paired with 100mg THC.

id: 2093 created_on: '2020-02-19T00:36:22.353448-06:00' last_edit: '2020-04-27T07:41:29.797149-06:00' drop_date: null dropped: null name: Swiss Masters Chocolate Bar (Dark) sku: SWI-BAR-DAR-100 quantity: '800.0000' reserved_qty: '120.0000' display_name: Swiss Masters Chocolate Bar (Dark) unit_multiplier: 12 retail_price: amount: 18 currency: USD wholesale_price: amount: 108 currency: USD sale_price: amount: 0 currency: USD minimum_order: '1.0000' maximum_order: null is_medical_line_item: false AVAILABLE_FOR_SAMPLES: true extern_acct_id: null extern_income_acct_id: '' featured: false tagline: null featured_on_deals: false allow_fractional_quantities: false parent: null listing_state: Archived display_listing_state: Archived inventory_management: 1 unit_of_measure: Unit sell_in_unit_of_measure: Case unit_denomination: id: 1 value: '1.00000' name: One label: '1' category: 7 grow_type: null seller: 3721 brand: 49 product_line: 164 manufacturer: 3721 strain_classification: na license: id: 2619 number: 404R-00000 type: Recreational display_type: Adult Use classification: MIPS available_inventory: 680 children_count: 0 strains: [] price_schedule_price: amount: 108 currency: USD image_count: 1 is_ancillary: false s2s_conversion_amount: '1.0000' extern_sts_ids: null strain_classification_display: N/A modified: '2020-06-11T15:53:07.137980-06:00' sub_category: 14 has_deals_eligible_children: false discount_percent: 0 base_units_per_unit: null external_ids: system-name: '1234567890' threshold_value: 0 threshold_action: unavailable reverse_threshold_value: 1 reverse_threshold_action: available show_quantity: true ProductResponse: type: object properties: description: type: string id: description: Unique id generated by LeafLink. type: integer created_on: description: Date and time the product was created type: string format: date-time last_edit: description: Date and time the product was last edited by a user type: string format: date-time drop_date: description: >- Date and time the product is scheduled to transition to Available, if applicable. type: string format: date-time dropped: description: Date and time the product transitioned to Available. type: string format: date-time name: type: string sku: type: string maxLength: 255 quantity: description: Inventory level type: string reserved_qty: description: Inventory reserved by orders in the `Submitted` or `Accepted` states type: string available_inventory: description: Inventory available for sale (quantity - reserved_qty). type: string display_name: description: >- If the product is a variety, the parent product name + the product name type: string unit_multiplier: description: If sold in multiples, the number of units sold per case default: 1 type: integer retail_price: description: Manufacturer's Suggested Retail Price (MSRP) required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 wholesale_price: description: Wholesale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 sale_price: description: Sale price displayed to buyers in the LeafLink marketplace required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 minimum_order: description: Minimum units required for an order type: string maximum_order: description: Maximum units allowed for an order type: string is_medical_line_item: description: Is the product a medical product? type: boolean AVAILABLE_FOR_SAMPLES: description: Is this product available for samples? type: boolean extern_acct_id: description: Id of the product in QuickBooks Online. type: string extern_income_acct_id: description: The id for the QuickBooks Online income account. type: string featured: description: Is the product a featured product? type: boolean tagline: description: One-liner that displayed when the product is featured type: string featured_on_deals: description: Is this product featured on the LeafLink deals page? type: boolean allow_fractional_quantities: description: Does this product allow fractional quantities to be ordered? type: boolean parent: $ref: '#/components/schemas/ParentProduct' listing_state: type: string enum: - Available - Archived - Sample - Backorder - Internal - Unavailable display_listing_state: description: The listing state string displayed in the marketplace. type: string inventory_management: description: >- id for the inventory setting [1: "Managed", 2: "Unlimited", 3: "Inherited"] type: string unit_of_measure: type: string enum: - Milligram - Gram - Kilogram - Ounce - Pound - Unit - Liter - Milliliter sell_in_unit_of_measure: description: >- If selling the product in cases as opposed to individual units, set this field to Case. type: string enum: - Case unit_denomination: $ref: '#/components/schemas/UnitDenomination' category: description: Id for the category. See `id` in the product-categories response. type: integer sub_category: description: >- Id for the subcategory. See `id` in the product-subcategories response. type: integer grow_type: description: If a flower product, the id for the type of grow operation. type: integer seller: description: >- Id for the company listing the product. See `id` in the companies response. type: integer brand: description: Id for the brand. See `id` in the brands response. type: integer product_line: description: Id for the product line. See `id` in the product-lines response. type: integer manufacturer: description: >- Id for the company that manufactured the product. See `id` in the companies response. Can be the same id as the seller field. type: integer strain_classification: description: If not applicable to the product, use `na`. type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid license: $ref: '#/components/schemas/ComplianceLicense' children_count: description: Number of varieties of this product type: string strains: description: >- The strains associated with the product. This field is required for products with the `Flower` category. type: array items: description: >- Id for the strains associated with the product. See `id` in the strains response. type: integer uniqueItems: true price_schedule_price: description: >- If using the buyer query parameter, the special price set for that customer with the price schedule feature. Otherwise, same as wholesale price. type: string image_count: description: The number of product images type: string is_ancillary: description: Is the product an ancillary product? type: boolean s2s_conversion_amount: description: Conversion value used by the Metrc add on. type: string format: decimal extern_sts_ids: description: Id used by the Metrc add on. type: array items: type: string strain_classification_display: title: Strain classification display type: string readOnly: true modified: title: Modified description: Date and time the product data was last modified. type: string has_deals_eligible_children: description: >- Does the product have varieties that are eligible for LeafLink deals?' type: string discount_percent: description: >- Discount applied to a product, calculated by comparing the wholesale and sale price. type: integer base_units_per_unit: description: >- If the product `unit_of_measure` is `Unit`, this describes the number of base units in each unit of the product. The base unit is defined by the product category.
`Cartridges = Grams`
`Topicals = Milligrams of Cannabinoids`
`Concentrates = Grams`
`Flower (excluding Seeds and Clones) = Grams`
`Edibles & Ingestibles = Milligrams of Cannabinoids`
`Pre-Rolls = Grams`
`Accessories = N/A` type: string format: decimal external_ids: $ref: '#/components/schemas/ExternalIds' threshold_value: description: >- When product inventory quantity reaches below this value, take various actions. type: integer threshold_action: description: >- Action to take when product inventory quantity reaches below a specified value. Available values include `default`, `backorder`, `unavailable`,and `internal`. type: string reverse_threshold_value: description: >- When product inventory quantity reaches above this value, take various actions. type: integer reverse_threshold_action: description: >- Action to take when product inventory quantity reaches above a specified value. Available values include `default`, `available`, and `internal`. type: string show_quantity: description: Show inventory quantities to buyers? type: boolean product_data_items: description: Product specifications. type: array items: required: - spec_type type: object properties: spec_type: description: >- The slug of the product specificaiton type. Available values include `thc`, `thca`, `cbn`, `cbg`, `cbd`, `solvents`, `flowering`, `growth`, `cannabinoids`, `terpenes`, `nugget`, `other`, `yield`, `cbc`, `thcv`, `cbda`, `delta-8-thc`, `total-thc`, `total-cbd`, `cbl`, `delta-9-thc`, `cbga`, `cbdv`. type: string dosage_unit: description: >- Dosage unit of the specification. Available options are `mg` and `%`. Null when `text_value` is populated. type: string decimal_value: description: >- Value of the product specification. Null if `text_value` is populated. type: string format: decimal max_decimal_value: description: >- If there is a range of values for the specification, the maximum value. type: string format: decimal text_value: description: >- The text value of the specification. Null if `decimal_value` is populated. type: string example: description: >-

Our premium Swiss Masters chocolate bars are bold, rich, and steeped in chocolate tradition. The Swiss Master dark chocolate has 70% dark chocolate paired with 100mg THC.

id: 2093 created_on: '2020-02-19T00:36:22.353448-06:00' last_edit: '2020-04-27T07:41:29.797149-06:00' drop_date: null dropped: null name: Swiss Masters Chocolate Bar (Dark) sku: SWI-BAR-DAR-100 quantity: '800.0000' reserved_qty: '120.0000' display_name: Swiss Masters Chocolate Bar (Dark) unit_multiplier: 12 retail_price: amount: 18 currency: USD wholesale_price: amount: 108 currency: USD sale_price: amount: 0 currency: USD minimum_order: '1.0000' maximum_order: null is_medical_line_item: false AVAILABLE_FOR_SAMPLES: true extern_acct_id: null extern_income_acct_id: '' featured: false tagline: null featured_on_deals: false allow_fractional_quantities: false parent: null listing_state: Available display_listing_state: Available inventory_management: 1 unit_of_measure: Unit sell_in_unit_of_measure: Case unit_denomination: id: 1 value: '1.00000' name: One label: '1' category: 7 grow_type: null seller: 3721 brand: 49 product_line: 164 manufacturer: 3721 strain_classification: na license: id: 2619 number: 404R-00000 type: Recreational display_type: Adult Use classification: MIPS available_inventory: 680 children_count: 0 strains: [] price_schedule_price: amount: 108 currency: USD image_count: 1 is_ancillary: false s2s_conversion_amount: '1.0000' extern_sts_ids: null strain_classification_display: N/A modified: '2020-06-11T15:53:07.137980-06:00' sub_category: 14 has_deals_eligible_children: false discount_percent: 0 base_units_per_unit: null external_ids: system-name: '1234567890' threshold_value: 0 threshold_action: unavailable reverse_threshold_value: 1 reverse_threshold_action: available show_quantity: true product_data_items: - spec_type: thc dosage_unit: '%' decimal_value: '20.0' PromoCode: required: - brand - code - start_date - end_date type: object properties: id: title: ID type: integer readOnly: true brand: title: Brand type: integer code: title: Code type: string maxLength: 100 minLength: 1 discount_type: title: Discount Type type: string enum: - '%' discount_amount: title: Percent discount description: Percent discount for Order type: string format: decimal start_date: title: Start date type: string format: date-time end_date: title: End date type: string format: date-time StrainResponse: type: object properties: id: description: Unique id generated by LeafLink. type: integer name: type: string parents: description: Array of parent strain ids type: array items: type: integer company: description: Id for the company that created the strain. type: integer strain_classification: type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid StrainCreate: required: - name - strain_classification type: object properties: name: type: string parents: description: Array of parent strain ids type: array items: type: integer company: description: Id for the company that created the strain. type: integer strain_classification: type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid StrainUpdate: type: object properties: name: type: string parents: description: Array of parent strain ids type: array items: type: integer company: description: Id for the company that created the strain. type: integer strain_classification: type: string enum: - sativa - indica - hybrid - na - 11-cbd - high-cbd - sativa-hybrid - indica-hybrid Order: required: - seller - discount_amount - line_items type: object properties: number: title: Number description: Order number generated by LeafLink type: string readOnly: true minLength: 1 external_id_seller: title: External id seller description: Number assigned to the order by the seller company type: string minLength: 1 nullable: true external_id_buyer: title: External id buyer description: Number assigned to the order by the buyer company type: string minLength: 1 nullable: true ext_acct_id: title: Accounting Service ID description: Accounting Service ID type: string maxLength: 255 nullable: true created_on: title: Created on description: Date and time the order was created type: string format: date-time user: title: User description: username of the user who last edited the order type: string readOnly: true buyer: title: Buyer description: Company on the buy side of the order. type: integer nullable: true seller: title: Seller description: Company on the sell side of the order. type: integer customer: $ref: '#/components/schemas/LightCompanyCustomer' brand: title: Brand of Order type: integer nullable: true status: title: Status description: Order status type: string enum: - Draft - Submitted - Accepted - Backorder - Fulfilled - Shipped - Complete - Rejected - Combined - Cancelled manual: title: Manual description: Was the order manually created by the seller company? type: boolean discount_amount: title: Discount amount description: Discount amount applied to the order type: number format: decimal discount_type: title: Discount type description: 'Type of discount: % or $' type: string minLength: 1 tax_amount: title: Tax amount description: Tax amount applied to the order type: number format: decimal tax_type: title: Tax type description: 'Type of tax: % or $' type: string minLength: 1 shipping_charge: required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 total: required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 payment_term: $ref: '#/components/parameters/PaymentTerm' payment_methods: $ref: '#/components/parameters/PaymentMethods' payment_due_date: title: Payment Due Date description: Date that the Payment is due type: string format: date-time nullable: true paid: title: Is paid? description: If this order has been paid for type: boolean paid_date: title: Paid date description: Date the order was paid type: string format: date nullable: true ship_date: title: Ship date description: Date and time the order was shipped type: string format: date-time nullable: true shipping_details: title: Shipping details description: Shipping details included on an order type: string minLength: 1 nullable: true notes: title: Order Notes description: Additional notes for an Order type: string maxLength: 2000 nullable: true internal_notes: title: Order Notes description: Internal notes for an Order type: string maxLength: 2000 nullable: true delivery_preferences: title: Delivery Preferences description: Customer Delivery Preferences type: string nullable: true line_items: type: array items: $ref: '#/components/schemas/LineItem' sales_reps: description: Sales representatives associated with the order. type: array items: $ref: '#/components/schemas/LightCompanyStaff' readOnly: true classification: title: Classification description: Classification of the license-type associated to the order type: string minLength: 1 payment_balance: title: Payment balance description: The outstanding balance on the order type: string readOnly: true available_transitions: title: Available transitions description: States that the order can transition to type: string readOnly: true modified: title: Modified description: Date and time that the order was last modified type: string format: date-time has_special_requests: title: Has special requests description: Does the order have special requests? type: boolean delivery_provider: title: Delivery provider description: The company delivering this order. type: integer nullable: true order_taxes: description: Details about the taxes applied to the order type: array items: $ref: '#/components/schemas/LightOrderTax' delivery_info: $ref: '#/components/schemas/DeliveryProviderOrderInformation' is_combination: title: Is combination type: string readOnly: true order_number: title: Order number description: Read only alias of number. type: string readOnly: true minLength: 1 order_seller_number: title: Order seller number description: >- Read only alias of external_id_seller.If external_id_seller is missing, short_id will be provided. type: string readOnly: true order_buyer_number: title: Order buyer number description: >- Read only alias of external_id_buyer. If external_id_buyer is missing, short_id will be provided. type: string readOnly: true order_short_number: title: Order short number description: Read only alias of short_id. type: string readOnly: true minLength: 1 distributor: title: Distributor description: id of he distributor delivering this order type: string readOnly: true OrderResponse: type: object properties: number: title: Number description: Order number generated by LeafLink type: string readOnly: true minLength: 1 short_id: description: The _Order No._ displayed in the user interface type: string external_id_seller: title: External id seller description: Number assigned to the order by the seller company type: string minLength: 1 nullable: true external_id_buyer: title: External id buyer description: Number assigned to the order by the buyer company type: string minLength: 1 nullable: true ext_acct_id: title: Accounting Service ID description: Accounting Service ID type: string maxLength: 255 nullable: true created_on: title: Created on description: Date and time the order was created type: string format: date-time user: title: User description: username of the user who last edited the order type: string readOnly: true buyer: title: Buyer description: Company on the buy side of the order. type: integer nullable: true seller: title: Seller description: Company on the sell side of the order. type: integer customer: $ref: '#/components/schemas/LightCompanyCustomer' brand: title: Brand of Order description: >- id of the brand for this order. Only applicable if the seller has the "Separate Orders by Brand" setting enabled. type: integer nullable: true status: title: Status description: Order status type: string enum: - Draft - Submitted - Accepted - Backorder - Fulfilled - Shipped - Complete - Rejected - Combined - Cancelled manual: title: Manual description: Was the order manually created by the seller company? type: boolean discount: description: Discount value applied to the order type: number format: decimal discount_type: description: 'Type of discount: % or $' type: string minLength: 1 tax_amount: title: Tax amount description: Tax amount applied to the order type: number format: decimal tax_type: title: Tax type description: 'Type of tax: % or $' type: string minLength: 1 final_tax: description: Tax total for the order type: string shipping_charge: required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 total: required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 payment_term: title: Payment term description: >- Payment term for the order Deprecated field, please use payment_option instead type: string readOnly: true nullable: true payment_methods: title: Payment methods description: >- Payment methods for the order Deprecated field, please use payment_option instead type: array items: type: string readOnly: true nullable: true selected_payment_option: id: 1732313 is_default: false payment_program: flexible payment_strategy: reverse_factored payment_method: id: 4 method: ACH payment_term: id: 3 term: Net 15 days: 15 code: net15 payment_due_date: title: Payment Due Date description: Date that the Payment is due type: string format: date-time nullable: true paid: title: Is paid? description: If this order has been paid for type: boolean paid_date: title: Paid date description: Date the order was paid type: string format: date nullable: true ship_date: title: Ship date description: Date and time the order was shipped type: string format: date-time nullable: true shipping_details: title: Shipping details description: Shipping details included on an order type: string minLength: 1 nullable: true notes: title: Order Notes description: Additional notes for an Order type: string maxLength: 2000 nullable: true internal_notes: title: Order Notes description: Internal notes for an Order type: string maxLength: 2000 nullable: true delivery_preferences: title: Delivery Preferences description: Customer Delivery Preferences type: string nullable: true sales_reps: description: Sales representatives associated with the order. type: array items: $ref: '#/components/schemas/LightCompanyStaff' readOnly: true classification: title: Classification description: Classification of the license-type associated to the order type: string minLength: 1 payment_balance: title: Payment balance description: The outstanding balance on the order type: string readOnly: true available_transitions: title: Available transitions description: States that the order can transition to type: string readOnly: true modified: title: Modified description: Date and time that the order was last modified type: string format: date-time has_special_requests: title: Has special requests description: Does the order have special requests? type: boolean delivery_provider: title: Delivery provider description: The company delivering this order. type: integer nullable: true order_taxes: description: Details about the taxes applied to the order type: array items: $ref: '#/components/schemas/LightOrderTax' delivery_info: $ref: '#/components/schemas/DeliveryProviderOrderInformation' is_combination: title: Is combination type: string readOnly: true llf_payment_method: type: boolean readOnly: true credits: description: Total dollar value of credits applied to the order type: string readOnly: true facility_id: description: Facility ID related to an order type: integer readOnly: true order_number: title: Order number description: Read only alias of number. type: string readOnly: true minLength: 1 order_seller_number: title: Order seller number description: >- Read only alias of external_id_seller.If external_id_seller is missing, short_id will be provided. type: string readOnly: true order_buyer_number: title: Order buyer number description: >- Read only alias of external_id_buyer. If external_id_buyer is missing, short_id will be provided. type: string readOnly: true order_short_number: title: Order short number description: Read only alias of short_id. type: string readOnly: true minLength: 1 distributor: title: Distributor description: id of the distributor delivering this order type: string readOnly: true external_ids: $ref: '#/components/schemas/ExternalIds' corporate_address: title: Corporate Address description: Read only corporate address as provided during order creation. type: object readOnly: true properties: address: title: Address type: string city: title: City type: string state: title: State type: string unit_number: title: Unit Number type: string zipcode: title: Zip Code type: string delivery_address: title: Delivery Address description: Read only delivery address as provided during order creation. type: object readOnly: true properties: address: title: Address type: string city: title: City type: string state: title: State type: string unit_number: title: Unit Number type: string zipcode: title: Zip Code type: string example: number: aec108ac-a1f4-40fa-966e-a12ga9bf6e2f short_id: a9bf6e2f external_id_seller: null external_id_buyer: null ext_acct_id: null created_on: '2020-06-10T15:15:03.776119-06:00' user: james.g buyer: 6109 seller: 1 customer: id: 148515 display_name: Good Vibrations Dispensary ext_acct_id: null delinquent: false brand: null status: Accepted manual: false discount: 0 discount_type: '%' tax_amount: 0 tax_type: '%' final_tax: '0.00' shipping_charge: amount: 0 currency: USD total: amount: 594 currency: USD payment_term: Net 7 payment_methods: - Cash - Check available_payment_options: - id: 216377 is_default: true payment_program: flexible payment_strategy: reverse_factored payment_method: id: 4 method: ACH payment_term: id: 3 term: Net 15 days: 15 code: net15 - id: 216375 is_default: false payment_program: null payment_strategy: null payment_method: id: 1 method: Cash payment_term: id: 20 term: COD days: null code: cod selected_payment_option: id: 1732313 is_default: true payment_program: flexible payment_strategy: reverse_factored payment_method: id: 4 method: ACH payment_term: id: 3 term: Net 15 days: 15 code: net15 payment_due_date: null paid: false paid_date: null ship_date: null shipping_details: null notes: '' internal_notes: null delivery_preferences: Monday - Wednesday Only Please sales_reps: - id: 13 user: John Doe classification: Adult Use payment_balance: 594 available_transitions: - fulfilled - rejected modified: '2020-06-10T16:14:49.494713-06:00' has_special_requests: false delivery_provider: null order_taxes: [] delivery_info: null is_combination: false credits: '420.10' facility_id: 123 order_number: aec108ac-a1f4-40fa-966e-a12ga9bf6e2f order_seller_number: a9bf6e2f order_buyer_number: a9bf6e2f order_short_number: a9bf6e2f distributor: '' external_ids: system-name: '45897' corporate_address: address: 17034 Highway 10 city: Moffat state: CO unit_number: 1A zipcode: '81143' delivery_address: address: 17034 Highway 17 city: Moffat state: CO unit_number: 1A zipcode: '81143' ExternalIds: description: >- Set of key-value pairs for storing external system IDs. Key value can be up to 36 characters long. type: object Address: type: object properties: address: title: Address type: string unit_number: title: Unit Number type: string city: title: City type: string county: title: County type: string state: title: State description: State abbreviation type: string zipcode: title: Zip Code type: string OrderAddress: title: Delivery Address description: Read only delivery address as provided during order creation. type: object readOnly: true properties: address: title: Address type: string unit_number: title: Unit Number type: string city: title: City type: string state: title: State description: State abbreviation type: string zipcode: title: Zip Code type: string OrderUpdate: type: object properties: number: title: Number description: Order number generated by LeafLink type: string readOnly: true minLength: 1 discount: description: Discount value applied to the order type: number format: decimal discount_type: title: Discount type description: 'Type of discount: % or $' type: string minLength: 1 tax_amount: title: Tax amount description: Tax amount applied to the order type: number format: decimal tax_type: title: Tax type description: 'Type of tax: % or $' type: string minLength: 1 shipping_charge: required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 payment_term: title: Payment term description: >- Payment term for the order Deprecated field, please use payment_option instead type: string nullable: true selected_payment_option: title: Selected payment option description: Payment option that was selected for an order type: object required: - payment_term_id - payment_method_id properties: id: title: Id description: id for payment option type: integer readOnly: true payment_method_id: title: Payment method id for payment option type: integer payment_term_id: title: Payment term id for payment option type: integer payment_program: title: Payment program for payment option type: string payment_strategy: title: Payment strategy for payment option type: string payment_methods: title: Payment methods description: Payment methods for the order type: array items: type: string readOnly: true nullable: true payment_due_date: title: Payment Due Date description: Date that the Payment is due type: string format: date-time nullable: true paid: title: Is paid? description: If this order has been paid for type: boolean paid_date: title: Paid date description: Date the order was paid type: string format: date nullable: true ship_date: title: Ship date description: Date and time the order was shipped type: string format: date-time nullable: true shipping_details: title: Shipping details description: Shipping details included on an order type: string minLength: 1 nullable: true notes: title: Order Notes description: Additional notes for an Order type: string maxLength: 2000 nullable: true internal_notes: title: Order Notes description: Internal notes for an Order type: string maxLength: 2000 nullable: true delivery_preferences: title: Delivery Preferences description: Customer Delivery Preferences type: string nullable: true sales_reps: description: Sales representatives associated with the order. type: array items: $ref: '#/components/schemas/LightCompanyStaff' readOnly: true classification: title: Classification description: Classification of the license-type associated to the order type: string minLength: 1 payment_balance: title: Payment balance description: The outstanding balance on the order type: string readOnly: true available_transitions: title: Available transitions description: States that the order can transition to type: string readOnly: true delivery_provider: title: Delivery provider description: The company delivering this order. type: integer nullable: true delivery_info: $ref: '#/components/schemas/DeliveryProviderOrderInformation' is_combination: title: Is combination type: string readOnly: true distributor: title: Distributor description: id of the distributor delivering this order type: string readOnly: true external_ids: $ref: '#/components/schemas/ExternalIds' OrderCreate: type: object required: - seller - customer - status - line_items properties: seller: description: Seller company for this order type: integer customer: $ref: '#/components/schemas/LightCompanyCustomerId' status: description: Order status type: string enum: - Draft - Submitted line_items: type: array items: $ref: '#/components/schemas/LineItemCreate' brand: description: >- Brand for this order. Only applicable if the seller has the "Separate Orders by Brand" setting enabled. type: integer external_id_seller: description: Number assigned to the order by the seller company type: string ext_acct_id: description: External account id. type: string discount: description: Discount value applied to the order type: number format: decimal discount_type: title: Discount type description: 'Type of discount: % or $' type: string minLength: 1 tax_amount: title: Tax amount description: Tax amount applied to the order type: number format: decimal tax_type: title: Tax type description: 'Type of tax: % or $' type: string minLength: 1 shipping_charge: required: - amount - currency type: object properties: amount: title: Amount type: string format: decimal currency: title: Currency type: string minLength: 1 payment_term: title: Payment term description: Payment term for the order type: string nullable: true payment_due_date: title: Payment Due Date description: Date that the Payment is due type: string format: date-time nullable: true paid: title: Is paid? description: If this order has been paid for type: boolean paid_date: title: Paid date description: Date the order was paid type: string format: date nullable: true ship_date: title: Ship date description: Date and time the order was shipped type: string format: date-time nullable: true shipping_details: title: Shipping details description: Shipping details included on an order type: string minLength: 1 nullable: true notes: title: Order Notes description: Additional notes for an Order type: string maxLength: 2000 nullable: true internal_notes: title: Order Notes description: Internal notes for an Order type: string maxLength: 2000 nullable: true delivery_preferences: title: Delivery Preferences description: Customer Delivery Preferences type: string nullable: true sales_reps: description: Sales representatives associated with the order. type: array items: $ref: '#/components/schemas/LightCompanyStaffId' delivery_provider: title: Delivery provider description: The company delivering this order. type: integer nullable: true delivery_info: $ref: '#/components/schemas/DeliveryProviderOrderInformation' facility_id: title: Facility description: The facility fulfilling this order. type: integer nullable: true BuyerLicense: type: object properties: id: type: string number: type: string type: type: string classification: type: string BuyerOrderResponse: type: object properties: id: description: Unique id generated by LeafLink format: uuid type: string short_id: description: The _Order No._ displayed in the user interface type: string status: description: Order status type: string enum: - Draft - Submitted - Accepted - Backorder - Fulfilled - Shipped - Complete - Rejected - Combined - Cancelled type: description: License type for the order type: string buyer: description: Company on the buy side of the order type: object properties: id: type: string name: type: string address: type: string unit_number: type: string city: type: string state: type: string zip: type: string email: type: string phone: type: string licenses: type: array items: $ref: '#/components/schemas/BuyerLicense' seller: description: Company on the sell side of the order type: object properties: id: type: string name: type: string address: type: string unit_number: type: string city: type: string state: type: string zip: type: string phone: type: string licenses: type: array items: $ref: '#/components/schemas/BuyerLicense' source: description: >- Describes whether this was a buyer or seller generated order `"BGO"` `"SGO"` type: string created_by: description: >- User who created the order. If BGO, full staff member details. If SGO, the staff member's name. type: object properties: id: description: null if SGO type: string name: type: string username: description: null if SGO type: string email: description: null if SGO type: string created_on: description: Date and time that the order was created type: string format: date-time last_edited_on: description: Date and time that the order was last edited type: string format: date-time currency: description: Currency used in the order type: string line_items: type: array items: type: object properties: product: type: object properties: id: type: string sku: type: string name: type: string brand: type: objet properties: id: type: string name: type: string unit_of_measure: type: string unit_denomination: type: string base_unit_of_measure: type: string base_units_per_unit: type: integer sold_in_multiples: type: boolean units_per_case: type: integer category: $ref: '#/components/schemas/ProductCategoryResponse' sub_category: $ref: '#/components/schemas/ProductSubcategoryResponse' quantity: type: integer sold_by: type: string price: type: number total: type: number subtotal: type: number shipping_charge: type: number discount: type: number tax: type: number total: type: number payable_to: type: object properties: name: type: string address: type: string city: type: string state: type: string zip: type: string payment_term: $ref: '#/components/parameters/PaymentTerm' payment_methods: $ref: '#/components/parameters/PaymentMethods' payment_due_date: description: Date the payment is due type: string format: date ship_date: description: Date and time the order was shipped type: string format: date-time shipping_details: description: Shipping notes added by the seller type: string is_delivered: type: boolean delivered_date: description: Date and time the order was delivered type: string notes: description: Additional notes added by the seller type: string sales_reps: description: Names of the sales reps assigned to the order type: array items: type: string delivery_address: $ref: '#/components/schemas/OrderAddress' example: id: d8240c79-7c90-4177-8c46-919b5577a4c0 short_id: 5577a4c0 status: Shipped type: Adult Use buyer: id: 4231 name: Green Fields address: 123 Yale St unit_number: null city: Denver state: CO zip: '80033' phone: null licenses: - id: 4344 number: 402R-00000 type: Recreational classification: Store email: greenfields@gmail.com seller: id: 2499 name: Liquid Labs address: 8001 East Boulder Street, Suite A unit_number: null city: Denver state: CO zip: '80036' phone: 123-456-7890 licenses: - id: 2400 number: 404R-00001 type: Recreational classification: MIPS - id: 4949 number: 404-00002 type: Medical classification: MIPS source: BGO created_by: id: 4265 name: John Doe username: johngreenfields email: john@greeenfields.com created_on: '2020-07-12T10:40:00.681487-06:00' last_edited_on: '2020-07-14T14:13:53.753792-06:00' currency: USD line_items: - product: id: 237808 sku: 3bb8021c3a214690f0e9 name: Cartridge - Blueberry brand: id: 312 name: Premium Cartridges unit_of_measure: Unit unit_denomination: One base_unit_of_measure: Gram base_units_per_unit: null sold_in_multiples: true units_per_case: 10 category: description: Cartridge id: 1 name: Cartridges slug: cartridge sub_category: description: Disposable id: 10 name: Disposable slug: disposable category: 1 quantity: 1 sold_by: Case price: 220 total: 220 - product: id: 357811 sku: 14632acc1f10568a0dec name: Cartridge - Strawberry brand: id: 312 name: Premium Cartridges unit_of_measure: Unit unit_denomination: One base_unit_of_measure: Gram base_units_per_unit: null sold_in_multiples: true units_per_case: 10 category: description: Cartridge id: 1 name: Cartridges slug: cartridge sub_category: description: Disposable id: 10 name: Disposable slug: disposable category: 1 quantity: 2 sold_by: Case price: 200 total: 400 subtotal: 620 shipping_charge: 0 discount: 0 tax: 0 total: 620 payable_to: name: Labs Capital address: 321 Broad Street, Suite 12 city: Denver state: CO zipcode: '80001' payment_term: null payment_methods: [] payment_due_date: null ship_date: null shipping_details: null is_delivered: false delivered_date: null notes: '' sales_reps: - Lauren Doe delivery_address: address: 17034 Highway 17 city: Moffat state: CO unit_number: 1A zipcode: '81143' ProductSubcategoryResponse: type: object properties: description: type: string id: description: Unique id generated by LeafLink. type: integer name: type: string slug: type: string category: description: >- The id for the category this subcategory belongs to. See `id` in the product-categories response. type: integer BatchdocumentsUploadNewDocumentRequest: type: object properties: summary: description: Additional information about the document. type: string maxLength: 350 document: description: uri for the file type: string format: binary batch: description: id for the Batch to attach this document to. type: integer required: - document - batch ProductimagesUploadNewImageRequest: type: object properties: image: description: >- The uploaded file, sent via multipart form data. Retrieved as a url link. type: string format: binary product: description: The id for the product that the image will be assigned to. type: integer position: description: The position of the image. type: integer minimum: 1 maximum: 5 x-nullable: true required: - image - product - position ActivityentriesGetAllResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/CompanyActivityEntry' BatchdocumentsListAllDocumentsResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/BatchDocumentNew' BatchesListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/BatchResponse' InventoryitemsListAllItemsResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/InventoryItem' FacilitiesListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/Facility' BrandsListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/BrandResponse' CompaniesListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/CompanyResponse' CompanystaffListStaffMembersResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/CompanyStaffResponse' ContactsListResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/Contact' CustomerstatusesListAllAvailableObjectsResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/CompanyCustomerStatus' CustomertiersListAllAvailableObjectsResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/CompanyCustomerTier' CustomersListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/CustomerResponse' LicensetypesListAllResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/LicenseType' LicensesListResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ComplianceLicense' LineitemsListAllActiveCompaniesResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/LineItemResponse' OrdereventlogsListAllLogsResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/OrderEventLog' OrderpaymentsListAllActiveCompaniesResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/OrderPaymentResponse' OrdersalesrepsListAllResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/OrderSalesRepSerialzer' BuyerordersListOrdersSentResponse: type: object properties: count: type: integer next: type: string format: uri previous: type: string format: uri results: type: array items: $ref: '#/components/schemas/BuyerOrderResponse' example: count: 1 next: null previous: null results: - id: d8240c79-7c90-4177-8c46-919b5577a4c0X short_id: 5577a4c0 status: Shipped type: Adult Use buyer: id: 4231 name: Green Fields address: 123 Yale St unit_number: null city: Denver state: CO zip: '80033' phone: null licenses: - id: 4344 number: 402R-00000 type: Recreational classification: Store email: greenfields@gmail.com seller: id: 2499 name: Liquid Labs address: 8001 East Boulder Street, Suite A unit_number: null city: Denver state: CO zip: '80036' phone: 123-456-7890 licenses: - id: 2400 number: 404R-00001 type: Recreational classification: MIPS - id: 4949 number: 404-00002 type: Medical classification: MIPS source: BGO created_by: id: 4265 name: John Doe username: johngreenfields email: john@greeenfields.com created_on: '2020-07-12T10:40:00.681487-06:00' last_edited_on: '2020-07-14T14:13:53.753792-06:00' currency: USD line_items: - product: id: 237808 sku: 3bb8021c3a214690f0e9 name: Cartridge - Blueberry brand: id: 312 name: Premium Cartridges unit_of_measure: Unit unit_denomination: One base_unit_of_measure: Gram base_units_per_unit: null sold_in_multiples: true units_per_case: 10 category: description: Cartridge name: Cartridges slug: cartridge sub_category: description: Disposable id: 10 name: Disposable slug: disposable category: 1 quantity: 1 sold_by: Case price: 220 total: 220 - product: id: 357811 sku: 14632acc1f10568a0dec name: Cartridge - Strawberry brand: id: 312 name: Premium Cartridges unit_of_measure: Unit unit_denomination: One base_unit_of_measure: Gram base_units_per_unit: null sold_in_multiples: true units_per_case: 10 category: description: Cartridge name: Cartridges slug: cartridge sub_category: description: Disposable id: 10 name: Disposable slug: disposable category: 1 quantity: 2 sold_by: Case price: 200 total: 400 subtotal: 620 shipping_charge: 0 discount: 0 tax: 0 total: 620 payable_to: name: Labs Capital address: 321 Broad Street, Suite 12 city: Denver state: CO zipcode: '80001' payment_term: null payment_methods: [] payment_due_date: null ship_date: null shipping_details: null is_delivered: false delivered_date: null notes: '' sales_reps: - Lauren Doe delivery_address: address: 17034 Highway 17 city: Moffat state: CO unit_number: 1A zipcode: '81143' OrdersreceivedListAllActiveCompaniesResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/OrderResponse' example: count: 2 next: null previous: null results: - number: aec108ac-a1f4-40fa-966e-a12ga9bf6e2f short_id: a9bf6e2f external_id_seller: null external_id_buyer: null ext_acct_id: null created_on: '2020-06-10T15:15:03.776119-06:00' user: james.g buyer: 6109 seller: 1 customer: id: 148515 display_name: Good Vibrations Dispensary ext_acct_id: null delinquent: false brand: null status: Accepted manual: false discount: 0 discount_type: '%' tax_amount: 0 tax_type: '%' final_tax: '0.00' shipping_charge: amount: 0 currency: USD total: amount: 594 currency: USD payment_term: Net 7 payment_methods: - Cash - ACH available_payment_options: - id: 216377 is_default: true payment_program: flexible payment_strategy: reverse_factored payment_method: id: 4 method: ACH payment_term: id: 3 term: Net 15 days: 15 code: net15 - id: 216375 is_default: false payment_program: null payment_strategy: null payment_method: id: 1 method: Cash payment_term: id: 20 term: COD days: null code: cod selected_payment_option: id: 1732313 is_default: true payment_program: flexible payment_strategy: reverse_factored payment_method: id: 4 method: ACH payment_term: id: 3 term: Net 15 days: 15 code: net15 payment_due_date: null paid: false paid_date: null ship_date: null shipping_details: null notes: '' internal_notes: null delivery_preferences: Monday - Wednesday Only Please sales_reps: - id: 13 user: John Doe classification: Adult Use payment_balance: 594 available_transitions: - fulfilled - rejected modified: '2020-06-10T16:14:49.494713-06:00' has_special_requests: false delivery_provider: null order_taxes: [] delivery_info: null is_combination: false credits: '0.00' facility_id: 123 order_number: aec108ac-a1f4-40fa-966e-a12ga9bf6e2f order_seller_number: a9bf6e2f order_buyer_number: a9bf6e2f order_short_number: a9bf6e2f distributor: '' external_ids: system-name: '45897' corporate_address: address: 17034 Highway 10 city: Moffat state: CO unit_number: 1A zipcode: '81143' delivery_address: address: 17034 Highway 17 city: Moffat state: CO unit_number: 1A zipcode: '81143' - number: 4165a155-979b-4e6e-b3a5-8ef917ce9491 short_id: 17ce9491 external_id_seller: null external_id_buyer: null ext_acct_id: null created_on: '2020-06-10T13:34:10.663097-06:00' user: scooter.s buyer: 3109 seller: 1 customer: id: 26032 display_name: New Leaf ext_acct_id: null delinquent: false brand: null status: Accepted manual: true discount: 0 discount_type: '%' tax_amount: 0 tax_type: '%' final_tax: '0.00' shipping_charge: amount: 0 currency: USD total: amount: 210.4 currency: USD payment_term: COD payment_methods: - Wire Transfer payment_due_date: null paid: false paid_date: null ship_date: null shipping_details: null notes: Mary can process on 6/15 internal_notes: null delivery_preferences: '' sales_reps: - id: 5659 user: Jane Doe classification: Adult Use payment_balance: 210.4 available_transitions: - fulfilled - rejected modified: '2020-06-10T16:04:40.312860-06:00' has_special_requests: true delivery_provider: null order_taxes: [] delivery_info: null is_combination: false credits: '45.01' facility_id: 123 order_number: 4165a155-979b-4e6e-b3a5-8ef917ce9491 order_seller_number: 17ce9491 order_buyer_number: 17ce9491 order_short_number: 17ce9491 distributor: '' external_ids: {} corporate_address: address: Some Address 2 city: Moffat state: CO unit_number: 1A zipcode: '81143' delivery_address: address: Some Address 1 city: Moffat state: CO unit_number: 1A zipcode: '81143' ProductbatchesListAssignmentsResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ProductBatchResponse' ProductcategoriesListCategoriesResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ProductCategoryResponse' ProductimagesListImagesResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ProductImageResponse' ProductlinesListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ProductLineResponse' ProductsubcategoriesListSubcategoriesResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ProductSubcategoryResponse' ProductsListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ProductResponse' example: count: 2 next: null previous: null results: - description: >-

Our premium Swiss Masters chocolate bars are bold, rich, and steeped in chocolate tradition. The Swiss Master dark chocolate has 70% dark chocolate paired with 100mg THC.

id: 2093 created_on: '2020-02-19T00:36:22.353448-06:00' last_edit: '2020-04-27T07:41:29.797149-06:00' drop_date: null dropped: null name: Swiss Masters Chocolate Bar (Dark) sku: SWI-BAR-DAR-100 quantity: '800.0000' reserved_qty: '120.0000' display_name: Swiss Masters Chocolate Bar (Dark) unit_multiplier: 12 retail_price: amount: 18 currency: USD wholesale_price: amount: 108 currency: USD sale_price: amount: 0 currency: USD minimum_order: '1.0000' maximum_order: null is_medical_line_item: false AVAILABLE_FOR_SAMPLES: true extern_acct_id: null extern_income_acct_id: '' featured: false tagline: null featured_on_deals: false allow_fractional_quantities: false parent: null listing_state: Available display_listing_state: Available inventory_management: 1 unit_of_measure: Unit sell_in_unit_of_measure: Case unit_denomination: id: 1 value: '1.00000' name: One label: '1' category: 7 grow_type: null seller: 3721 brand: 49 product_line: 164 manufacturer: 3721 strain_classification: na license: id: 2619 number: 404R-00000 type: Recreational display_type: Adult Use classification: MIPS available_inventory: 680 children_count: 0 strains: [] price_schedule_price: amount: 108 currency: USD image_count: 1 is_ancillary: false s2s_conversion_amount: '1.0000' extern_sts_ids: null strain_classification_display: N/A modified: '2020-06-11T15:53:07.137980-06:00' sub_category: 14 has_deals_eligible_children: false discount_percent: 0 base_units_per_unit: null external_ids: system-name: '1234567890' threshold_value: 0 threshold_action: unavailable reverse_threshold_value: 1 reverse_threshold_action: available show_quantity: false - description: >-

Our Great Heights chocolate bars are delicious. The milk chocolate contains 100mg THC.

id: 2094 created_on: '2020-02-22T00:36:22.353448-06:00' last_edit: '2020-04-10T07:41:29.797149-06:00' drop_date: null dropped: null name: Great Heights Chocolate Bar (Milk) sku: GRE-BAR-CHO-100 quantity: '400.0000' reserved_qty: '90.0000' display_name: Great Heights Chocolate Bar (Milk) unit_multiplier: 12 retail_price: amount: 14 currency: USD wholesale_price: amount: 100 currency: USD sale_price: amount: 0 currency: USD minimum_order: '1.0000' maximum_order: null is_medical_line_item: false AVAILABLE_FOR_SAMPLES: true extern_acct_id: null extern_income_acct_id: '' featured: false tagline: null featured_on_deals: false allow_fractional_quantities: false parent: null listing_state: Available display_listing_state: Available inventory_management: 1 unit_of_measure: Unit sell_in_unit_of_measure: Case unit_denomination: id: 1 value: '1.00000' name: One label: '1' category: 7 grow_type: null seller: 3721 brand: 49 product_line: 164 manufacturer: 3721 strain_classification: na license: id: 2619 number: 404R-00000 type: Recreational display_type: Adult Use classification: MIPS available_inventory: 310 children_count: 0 strains: [] price_schedule_price: amount: 100 currency: USD image_count: 1 is_ancillary: false s2s_conversion_amount: '1.0000' extern_sts_ids: null strain_classification_display: N/A modified: '2020-06-11T15:53:07.137980-06:00' sub_category: 14 has_deals_eligible_children: false discount_percent: 0 base_units_per_unit: null external_ids: {} threshold_value: 0 threshold_action: unavailable reverse_threshold_value: 1 reverse_threshold_action: available show_quantity: true product_data_items: [] PromocodesListResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/PromoCode' ReportsListResponse: required: - count - results type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/ReportDownload' StrainsListResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/StrainResponse' RetailerinventoryListProductsResponse: type: object properties: count: type: integer next: type: string format: uri nullable: true previous: type: string format: uri nullable: true results: type: array items: $ref: '#/components/schemas/RetailerInventoryResponse' security: - Token: [] x-tagGroups: - tags: - order-object - orders-received - order-payments - order-sales-reps - order-event-logs - line-item-object - line-items name: Orders - tags: - product-object - products - product-categories - product-subcategories - listing-states - product-images - product-lines - strains name: Products - tags: - batch-object - batches - product-batch-object - product-batches - batch-document-object - batch-documents name: Batches - tags: - inventory-item-object - inventory-items name: Inventory Items - tags: - facility-object - facilities name: Facilities - tags: - customer-object - customers - contacts - activity-entries - customer-statuses - customer-tiers - customer-tags name: Customers - tags: - companies - company-staff - licenses - license-types - brands - promocodes - reports name: Company Information - tags: - buyer-order-object - buyer-orders name: Buyer Orders - tags: - retailer-inventory name: Retailer Inventory