Treez Ticket API

The Ticket API from Treez — 11 operation(s) for ticket.

Operations 11

GET /{dispensary}/ticket/ordernumber/{order_number} Get by order number #
GET /{dispensary}/ticket/{ticket_id} Get by ID #
GET /{dispensary}/ticket/status/{order_status}/page/{page}/pagesize/{pagesize} Get by status #
GET /{dispensary}/ticket/history/{ticket_id} Get history by ID #
GET /{dispensary}/ticket/customer/{customer_id}/page/{page}/pagesize/{pagesize} Get by customer ID #
GET /{dispensary}/ticket/opendate/{date}/page/{page}/pagesize/{pagesize} Get by open date #
GET /{dispensary}/ticket/closedate/{date}/page/{page}/pagesize/{pagesize} Get by close date #
GET /{dispensary}/ticket/lastUpdated/{date}/page/{page}/pagesize/{pagesize} Get by last updated date #
POST /{dispensary}/ticket/previewticket Preview Ticket #
POST /{dispensary}/ticket/detailticket Create Ticket #
PUT /{dispensary}/ticket/update/{ticket_id} Update Ticket #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/treez-ticket-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

treez-ticket-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dispensary Ticket API
  version: 3.1.0
servers:
- url: https://api-prod.treez.io/dispensary/v3
security:
- {}
tags:
- name: Ticket
paths:
  /{dispensary}/ticket/ordernumber/{order_number}:
    get:
      summary: Get by order number
      description: Lookup a ticket using the 6-character customer-facing `order_number`
      operationId: ticket-get-by-order-number
      parameters:
      - name: dispensary
        in: path
        schema:
          type: string
        required: true
      - name: order_number
        in: path
        schema:
          type: string
        required: true
      - name: full_decimals
        in: query
        description: Shows un-rounded decimals on all dollar values when applicable.
        schema:
          type: boolean
      - name: include_cost
        in: query
        description: 🔑 Restricted by permission
        schema:
          type: boolean
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    resultCode: SUCCESS
                    resultReason: null
                    resultDetail: null
                    data:
                      type: DRIVE_THRU
                      ticket_id: b211e864-0c1b-40a3-8e32-32aedf251fe3
                      order_number: null
                      external_order_number: null
                      order_source: ECOMMERCE
                      created_by_employee:
                        employee_id: Default
                        name: Default
                        role: employee
                      packed_by_employee: null
                      customer_id: 20
                      ticket_patient_type: MEDICAL-MMID
                      cash_register_id: null
                      order_status: PREVIEW
                      payment_status: UNPAID
                      payment_authorization: null
                      payment_processor_name: null
                      payment_charge_id: null
                      payment_fee: null
                      payment_treezpay_id: null
                      date_created: '2026-07-14T10:41:24.816-07:00'
                      last_updated_at: null
                      date_closed: null
                      post_tax_pricing: false
                      sub_total: 3
                      post_tax_subtotal: null
                      tax_total: 0.39
                      discount_total: 0
                      post_tax_discount_total: null
                      total: 3.39
                      ticket_note: null
                      refund_reason: null
                      original_ticket_id: null
                      refund_ticket_ids: null
                      delivery_address: null
                      delivery_route: null
                      scheduled_start_date: null
                      scheduled_date: null
                      discount_ids: []
                      items:
                      - id: d3b0e69c-5edf-4b2d-b21f-12f8b8fefbab
                        product_id: c6beed87-febe-409c-82df-d55186663b23
                        barcodes: []
                        inventory_barcodes:
                        - Buw
                        location_name: FRONT OF HOUSE MED
                        size_id: c6beed87-febe-409c-82df-d55186663b23
                        product_size_name: 1:1 BALANCED TRANSDERMAL RELEAF PATCH - 15 MILLIGRAMS
                        product_type: TOPICAL
                        product_brand: PAPA & BARKLEY
                        product_subtype: PATCH
                        quantity: 3
                        price_total: 3.39
                        price_sell: 3
                        post_tax_original_price: null
                        product_unit: MILLIGRAMS
                        product_amount: 15
                        state_tracking_uom: null
                        apply_automatic_discounts: true
                        POS_discounts: []
                        discounts: []
                        tax:
                        - id: d781eb92-5735-44ce-a2c9-e8748f8f0007
                          rate: 0.09
                          tax_name: NY State Excise Tax (9%)
                          amount: 0.27
                        - id: aee43959-fc86-4d9f-a934-dcd3f6334f6c
                          rate: 0.04
                          tax_name: NY Local Excise Tax (4%)
                          amount: 0.12
                        reward_dollars: null
                        price_target: null
                        price_target_note: null
                      fees: []
                      payments: []
                      reward_eligible: true
                      reward_points_earned: 0
                      reward_points_used: 0
                      purchase_limit:
                        concentrated: 0.045/8
                        non_concentrated: 0/228
                        plant: 0/12
                      employee_id: null
                      cash_drawer_name: null
                      terminal_location_id: null
                      terminal_location_name: null
                      revenue_source: Treez API Testing
                      delivery_minimum_total: null
                      free_delivery_threshold: null
                      delivery_group_id: null
                      delivery_partner_details: null
                      coupon_codes: []
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: SUCCESS
                  resultReason: {}
                  resultDetail: {}
                  data:
                    type: object
                    properties:
                      type:
                        type: string
                        example: DRIVE_THRU
                      ticket_id:
                        type: string
                        example: b211e864-0c1b-40a3-8e32-32aedf251fe3
                      order_number: {}
                      external_order_number: {}
                      order_source:
                        type: string
                        example: ECOMMERCE
                      created_by_employee:
                        type: object
                        properties:
                          employee_id:
                            type: string
                            example: Default
                          name:
                            type: string
                            example: Default
                          role:
                            type: string
                            example: employee
                      packed_by_employee: {}
                      customer_id:
                        type: integer
                        example: 20
                        default: 0
                      ticket_patient_type:
                        type: string
                        example: MEDICAL-MMID
                      cash_register_id: {}
                      order_status:
                        type: string
                        example: PREVIEW
                      payment_status:
                        type: string
                        example: UNPAID
                      payment_authorization: {}
                      payment_processor_name: {}
                      payment_charge_id: {}
                      payment_fee: {}
                      payment_treezpay_id: {}
                      date_created:
                        type: string
                        example: '2026-07-14T10:41:24.816-07:00'
                      last_updated_at: {}
                      date_closed: {}
                      post_tax_pricing:
                        type: boolean
                        example: false
                        default: true
                      sub_total:
                        type: integer
                        example: 3
                        default: 0
                      post_tax_subtotal: {}
                      tax_total:
                        type: number
                        example: 0.39
                        default: 0
                      discount_total:
                        type: integer
                        example: 0
                        default: 0
                      post_tax_discount_total: {}
                      total:
                        type: number
                        example: 3.39
                        default: 0
                      ticket_note: {}
                      refund_reason: {}
                      original_ticket_id: {}
                      refund_ticket_ids: {}
                      delivery_address: {}
                      delivery_route: {}
                      scheduled_start_date: {}
                      scheduled_date: {}
                      discount_ids:
                        type: array
                        items:
                          type: object
                          properties: {}
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: d3b0e69c-5edf-4b2d-b21f-12f8b8fefbab
                            product_id:
                              type: string
                              example: c6beed87-febe-409c-82df-d55186663b23
                            barcodes:
                              type: array
                              items:
                                type: object
                                properties: {}
                            inventory_barcodes:
                              type: array
                              items:
                                type: string
                                example: Buw
                            location_name:
                              type: string
                              example: FRONT OF HOUSE MED
                            size_id:
                              type: string
                              example: c6beed87-febe-409c-82df-d55186663b23
                            product_size_name:
                              type: string
                              example: 1:1 BALANCED TRANSDERMAL RELEAF PATCH - 15 MILLIGRAMS
                            product_type:
                              type: string
                              example: TOPICAL
                            product_brand:
                              type: string
                              example: PAPA & BARKLEY
                            product_subtype:
                              type: string
                              example: PATCH
                            quantity:
                              type: integer
                              example: 3
                              default: 0
                            price_total:
                              type: number
                              example: 3.39
                              default: 0
                            price_sell:
                              type: integer
                              example: 3
                              default: 0
                            post_tax_original_price: {}
                            product_unit:
                              type: string
                              example: MILLIGRAMS
                            product_amount:
                              type: integer
                              example: 15
                              default: 0
                            state_tracking_uom: {}
                            apply_automatic_discounts:
                              type: boolean
                              example: true
                              default: true
                            POS_discounts:
                              type: array
                              items:
                                type: object
                                properties: {}
                            discounts:
                              type: array
                              items:
                                type: object
                                properties: {}
                            tax:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: d781eb92-5735-44ce-a2c9-e8748f8f0007
                                  rate:
                                    type: number
                                    example: 0.09
                                    default: 0
                                  tax_name:
                                    type: string
                                    example: NY State Excise Tax (9%)
                                  amount:
                                    type: number
                                    example: 0.27
                                    default: 0
                            reward_dollars: {}
                            price_target: {}
                            price_target_note: {}
                      fees:
                        type: array
                        items:
                          type: object
                          properties: {}
                      payments:
                        type: array
                        items:
                          type: object
                          properties: {}
                      reward_eligible:
                        type: boolean
                        example: true
                        default: true
                      reward_points_earned:
                        type: integer
                        example: 0
                        default: 0
                      reward_points_used:
                        type: integer
                        example: 0
                        default: 0
                      purchase_limit:
                        type: object
                        properties:
                          concentrated:
                            type: string
                            example: 0.045/8
                          non_concentrated:
                            type: string
                            example: 0/228
                          plant:
                            type: string
                            example: 0/12
                      employee_id: {}
                      cash_drawer_name: {}
                      terminal_location_id: {}
                      terminal_location_name: {}
                      revenue_source:
                        type: string
                        example: Treez API Testing
                      delivery_minimum_total: {}
                      free_delivery_threshold: {}
                      delivery_group_id: {}
                      delivery_partner_details: {}
                      coupon_codes:
                        type: array
                        items:
                          type: object
                          properties: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    resultCode: FAIL
                    resultReason: TICKET_NOT_FOUND
                    resultDetail: Cannot find the ticket WIYXA
                    ticketList: []
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: FAIL
                  resultReason:
                    type: string
                    example: TICKET_NOT_FOUND
                  resultDetail:
                    type: string
                    example: Cannot find the ticket WIYXA
                  ticketList:
                    type: array
                    items:
                      type: object
                      properties: {}
      tags:
      - Ticket
  /{dispensary}/ticket/{ticket_id}:
    get:
      summary: Get by ID
      description: Lookup a ticket using the `ticket_id` GUID
      operationId: ticket-get-by-id
      parameters:
      - name: dispensary
        in: path
        schema:
          type: string
        required: true
      - name: ticket_id
        in: path
        schema:
          type: string
        required: true
      - name: full_decimals
        in: query
        description: Shows un-rounded decimals on all dollar values when applicable.
        schema:
          type: boolean
      - name: include_cost
        in: query
        description: Restricted by permission
        schema:
          type: boolean
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    resultCode: SUCCESS
                    resultReason: null
                    resultDetail: null
                    ticketList:
                    - type: DRIVE_THRU
                      ticket_id: 43161ebb-8537-463a-9848-a44faaaeb503
                      order_number: WIYXAP
                      external_order_number: null
                      order_source: IN_STORE
                      created_by_employee:
                        employee_id: f072eff5-ea9e-11e9-b0d6-028ca56774da
                        name: ADMIN_TREEZ
                        role: manager
                      packed_by_employee: null
                      customer_id: 1305
                      ticket_patient_type: ADULT
                      cash_register_id: d3c43364-95f9-486e-9bfd-8b64cfcdba33
                      order_status: IN_PROCESS
                      payment_status: UNPAID
                      payment_authorization: null
                      payment_processor_name: null
                      payment_charge_id: null
                      payment_fee: null
                      payment_treezpay_id: null
                      date_created: '2026-07-14T10:40:31.000-07:00'
                      last_updated_at: '2026-07-14T10:40:57.000-07:00'
                      date_closed: null
                      post_tax_pricing: false
                      sub_total: 11
                      post_tax_subtotal: null
                      tax_total: 1.43
                      discount_total: -11
                      post_tax_discount_total: null
                      total: 12.43
                      ticket_note: null
                      refund_reason: null
                      original_ticket_id: null
                      refund_ticket_ids: null
                      delivery_address: null
                      delivery_route: null
                      scheduled_start_date: '2026-07-14T11:00:00.000-07:00'
                      scheduled_date: '2026-07-14T11:00:00.000-07:00'
                      discount_ids: []
                      items:
                      - id: 94ddf0b4-4b6f-4af8-b3b8-6ad373ecb3a6
                        product_id: 9f3fadfb-2f24-4a08-bd3b-a430e267b72f
                        barcodes: []
                        inventory_barcodes:
                        - dap
                        location_name: FRONT OF HOUSE REC
                        size_id: 9f3fadfb-2f24-4a08-bd3b-a430e267b72f
                        product_size_name: 1:1 CINNAMON MINTS - 100 MILLIGRAMS
                        product_type: EDIBLE
                        product_brand: PETRA
                        product_subtype: MINTS
                        quantity: 1
                        price_total: 12.43
                        price_sell: 11
                        post_tax_original_price: null
                        product_unit: MILLIGRAMS
                        product_amount: 100
                        state_tracking_uom: null
                        apply_automatic_discounts: true
                        POS_discounts: []
                        discounts:
                        - id: null
                          discount_id: 1a1fcd84-361a-431e-8ee3-d042929bac9f
                          discount_title: ST Test for expiring products
                          discount_amount: 50
                          discount_method: PERCENT
                          savings: 11
                          discount_category: AUTOMATIC_DISCOUNT
                          discount_reason: null
                          cart: false
                        tax:
                        - id: d781eb92-5735-44ce-a2c9-e8748f8f0007
                          rate: 0.09
                          tax_name: NY State Excise Tax (9%)
                          amount: 0.99
                        - id: aee43959-fc86-4d9f-a934-dcd3f6334f6c
                          rate: 0.04
                          tax_name: NY Local Excise Tax (4%)
                          amount: 0.44
                        reward_dollars: null
                        price_target: null
                        price_target_note: null
                      fees: []
                      payments: []
                      reward_eligible: true
                      reward_points_earned: 0
                      reward_points_used: 0
                      purchase_limit:
                        concentrated: 0.1/8
                        non_concentrated: 0/28.5
                        plant: 0/6
                      employee_id: null
                      cash_drawer_name: CD01
                      terminal_location_id: null
                      terminal_location_name: null
                      revenue_source: null
                      delivery_minimum_total: null
                      free_delivery_threshold: null
                      delivery_group_id: null
                      delivery_partner_details: null
                      coupon_codes: []
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: SUCCESS
                  resultReason: {}
                  resultDetail: {}
                  ticketList:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          example: DRIVE_THRU
                        ticket_id:
                          type: string
                          example: 43161ebb-8537-463a-9848-a44faaaeb503
                        order_number:
                          type: string
                          example: WIYXAP
                        external_order_number: {}
                        order_source:
                          type: string
                          example: IN_STORE
                        created_by_employee:
                          type: object
                          properties:
                            employee_id:
                              type: string
                              example: f072eff5-ea9e-11e9-b0d6-028ca56774da
                            name:
                              type: string
                              example: ADMIN_TREEZ
                            role:
                              type: string
                              example: manager
                        packed_by_employee: {}
                        customer_id:
                          type: integer
                          example: 1305
                          default: 0
                        ticket_patient_type:
                          type: string
                          example: ADULT
                        cash_register_id:
                          type: string
                          example: d3c43364-95f9-486e-9bfd-8b64cfcdba33
                        order_status:
                          type: string
                          example: IN_PROCESS
                        payment_status:
                          type: string
                          example: UNPAID
                        payment_authorization: {}
                        payment_processor_name: {}
                        payment_charge_id: {}
                        payment_fee: {}
                        payment_treezpay_id: {}
                        date_created:
                          type: string
                          example: '2026-07-14T10:40:31.000-07:00'
                        last_updated_at:
                          type: string
                          example: '2026-07-14T10:40:57.000-07:00'
                        date_closed: {}
                        post_tax_pricing:
                          type: boolean
                          example: false
                          default: true
                        sub_total:
                          type: integer
                          example: 11
                          default: 0
                        post_tax_subtotal: {}
                        tax_total:
                          type: number
                          example: 1.43
                          default: 0
                        discount_total:
                          type: integer
                          example: -11
                          default: 0
                        post_tax_discount_total: {}
                        total:
                          type: number
                          example: 12.43
                          default: 0
                        ticket_note: {}
                        refund_reason: {}
                        original_ticket_id: {}
                        refund_ticket_ids: {}
                        delivery_address: {}
                        delivery_route: {}
                        scheduled_start_date:
                          type: string
                          example: '2026-07-14T11:00:00.000-07:00'
                        scheduled_date:
                          type: string
                          example: '2026-07-14T11:00:00.000-07:00'
                        discount_ids:
                          type: array
                          items:
                            type: object
                            properties: {}
                        items:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 94ddf0b4-4b6f-4af8-b3b8-6ad373ecb3a6
                              product_id:
                                type: string
                                example: 9f3fadfb-2f24-4a08-bd3b-a430e267b72f
                              barcodes:
                                type: array
                                items:
                                  type: object
                                  properties: {}
                              inventory_barcodes:
                                type: array
                                items:
                                  type: string
                                  example: dap
                              location_name:
                                type: string
                                example: FRONT OF HOUSE REC
                              size_id:
                                type: string
                                example: 9f3fadfb-2f24-4a08-bd3b-a430e267b72f
                              product_size_name:
                                type: string
                                example: 1:1 CINNAMON MINTS - 100 MILLIGRAMS
                              product_type:
                                type: string
                                example: EDIBLE
                              product_brand:
                                type: string
                                example: PETRA
                              product_subtype:
                                type: string
                                example: MINTS
                              quantity:
                                type: integer
                                example: 1
                                default: 0
                              price_total:
                                type: number
                                example: 12.43
                                default: 0
                              price_sell:
                                type: integer
                                example: 11
                                default: 0
                              post_tax_original_price: {}
                              product_unit:
                                type: string
                                example: MILLIGRAMS
                              product_amount:
                                type: integer
                                example: 100
                                default: 0
                              state_tracking_uom: {}
                              apply_automatic_discounts:
                                type: boolean
                                example: true
                                default: true
                              POS_discounts:
                                type: array
                                items:
                                  type: object
                                  properties: {}
                              discounts:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id: {}
                                    discount_id:
                                      type: string
                                      example: 1a1fcd84-361a-431e-8ee3-d042929bac9f
                                    discount_title:
                                      type: string
                                      example: ST Test for expiring products
                                    discount_amount:
                                      type: integer
                                      example: 50
                                      default: 0
                                    discount_method:
                                      type: string
                                      example: PERCENT
                                    savings:
                                      type: integer
                                      example: 11
                                      default: 0
                                    discount_category:
                                      type: string
                                      example: AUTOMATIC_DISCOUNT
                                    discount_reason: {}
                                    cart:
                                      type: boolean
                                      example: false
                                      default: true
                              tax:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: d781eb92-5735-44ce-a2c9-e8748f8f0007
                                    rate:
                                      type: number
                                      example: 0.09
                                      default: 0
                                    tax_name:
                                      type: string
                                      example: NY State Excise Tax (9%)
                                    amount:
                                      type: number
                                      example: 0.99
                                      default: 0
                              reward_dollars: {}
                              price_target: {}
                              price_target_note: {}
                        fees:
                          type: array
                          item

# --- truncated at 32 KB (115 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/treez/refs/heads/main/openapi/treez-ticket-api-openapi.yml