This is a Singer tap that reads data from the Treez API and produces JSON-formatted data following the Singer spec.
tap-treez
works together with any other Singer Target to move data from the Treez API to any target destination.
First, make sure Python 3 is installed on your system or follow these installation instructions for Mac or Ubuntu.
This project is set up using Python Poetry. Once cloned and within the project directory, install dependencies with:
poetry install
Requirements to get started are API Credentials in the form of an API Key, Client ID and Dispensary.
All streams from the Treez API are setup to be Incremental. These are iterated based on the Update field for each table. The update field is then bookmarked for the next stream. (If there is not starting bookmark the beginning sync date is 2000-01-01T00:00:00.000-00:00)
- Primary key fields:
customer_id
- Replication strategy: INCREMENTAL
- Replication based on:
last_update
- Nested Tables:
- Caregiver Details:
- Table Name:
caregiver_details
- Primary key:
caregiver_customer_id
- Table Name:
- Addresses:
- Table Name:
addresses
- Table Name:
- Merged Customer Ids:
- Table Name:
merged_customer_ids
- Table Name:
- Image List:
- Table Name:
imageList
- Table Name:
- Customer Groups:
- Table Name:
customer_groups
- Table Name:
- Caregiver Details:
- Transformations: none
- Primary key fields:
product_id
- Replication strategy: INCREMENTAL
- Replication based on:
last_update_at
- Nested Tables:
- Sellable Quantity Details:
- Table Name:
sellable_quantity_detail
- Table Name:
- Product Configurable Fields:
- Table Name:
product_configurable_fields
- Table Name:
- Pricing
- Table Name:
pricing
- Table Name:
- Attributes
- Table Name:
attributes
- Table Name:
- Product Barcodes:
- Table Name:
product_barcodes
- Table Name:
- E-Commerce:
- Table Name:
e_commerce
- Table Name:
- Lab Results:
- Table Name:
lab_results
- Table Name:
- External References:
- Table Name:
external_references
- Table Name:
- Sellable Quantity Details:
- Transformations: none
- Primary key fields:
ticket_id
- Replication strategy: INCREMENTAL
- Replication based on:
last_update_at
- Foreign Keys:
customer_id
,employee_id
- Nested Tables:
- Created By Employee:
- Table Name:
created_by_employee
- Key Fields:
employee_id
- Table Name:
- Deliver Address:
- Table Name:
deliver_address
- Key Fields:
id
- Table Name:
- Items:
- Table Name:
items
- Key Field:
product_id
- Nested Tables:
- POS Discounts
- Table Name:
items.POS_discounts
- Key Fields:
id
- Table Name:
- Discounts
- Table Name:
items.discounts
- Key Fields:
id
- Table Name:
- Tax
- Table Name:
items.tax
- Key Fields:
id
- Table Name:
- POS Discounts
- Table Name:
- Payments
- Table Name:
payments
- Key Field:
payment_id
- Table Name:
- Purchase Limit:
- Table Name:
purchase_limits
- Table Name:
- Created By Employee:
- Transformations: none