Treez Customer API

The Customer API from Treez — 14 operation(s) for customer.

Operations 14

GET /{dispensary}/customer/{customer_id} Get by ID #
GET /{dispensary}/customer/email/{email} Get by email address #
GET /{dispensary}/customer/firstname/{firstname}/lastname/{lastname} Get by name #
GET /{dispensary}/customer/driverlicense/{drivers_license} Get by driver's license #
GET /{dispensary}/customer/phone/{phone_number} Get by phone number #
GET /{dispensary}/customer/signup/from/{start_date}/to/{end_date}/page/{page_number}/pagesize/{page_size} Get by sign-up date range #
GET /{dispensary}/customer/lastUpdated/after/{date_time}/page/{page_number}/pagesize/{page_size} Get by date of last update #
GET /{dispensary}/customer/caregivers Get customer caregivers #
PATCH /{dispensary}/customer/update/{customer_id} Update customer #
POST /{dispensary}/customer/document/base64/upload/{customer_id} Upload customer files #
POST /{dispensary}/customer/merge Merge customers #
GET /{dispensary}/customer/queue Get checked-in customers #
GET /{dispensary}/customer/{customer_id}/history Get customer history #
POST /{dispensary}/customer/detailcustomer Create customer #

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-customer-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-customer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dispensary Customer API
  version: 3.1.0
servers:
- url: https://api-prod.treez.io/dispensary/v3
security:
- {}
tags:
- name: Customer
paths:
  /{dispensary}/customer/{customer_id}:
    get:
      summary: Get by ID
      description: ''
      operationId: dispensary-customer-get-by-id
      parameters:
      - name: include_image_list
        in: query
        description: Returns stored customer images in the response. Default behavior is `false` if not specified.
        schema:
          type: boolean
      - name: dispensary
        in: path
        description: The dispensary short name
        schema:
          type: string
          default: partnersandbox3
        required: true
      - name: customer_id
        in: path
        description: The customer's ID number in the dispensary instance.
        schema:
          type: string
        required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value: "{\n    \"resultCode\": \"SUCCESS\",\n    \"resultReason\": null,\n    \"resultDetail\": null,\n    \"data\": {\n        \"status\": \"MERGED\",\n        \"verification_status\": \"VERIFICATION_PENDING\",\n        \"verification_reasons\": [\n            {\n                \"verification_reason\": \"EXPIRATION\",\n                \"verification_reason_description\": \"MEDICAL_ID_EXPIRATION\"\n            }\n        ],\n        \"customer_id\": \"20\",\n        \"first_name\": \"KATHLEEN\",\n        \"middle_name\": null,\n        \"nickname\": \"\",\n        \"last_name\": \"SCOTT\",\n        \"birthday\": \"1989-03-07\",\n        \"drivers_license\": \"LIC744\",\n        \"drivers_license_expiration\": \"2028-05-12\",\n        \"state_medical_id\": \"MED738\",\n        \"permit_expiration\": \"2024-05-31 00:00:00.000\",\n        \"email\": \"SCOTT20@mail.com\",\n        \"phone\": \"7777777777\",\n        \"notes\": \"N/A\",\n        \"physician_first_name\": null,\n        \"physician_last_name\": null,\n        \"physician_license\": null,\n        \"physician_address\": null,\n        \"physician_phone\": null,\n        \"is_caregiver\": false,\n        \"caregiver_license_number\": \"\",\n        \"caregiver_name_1\": \"N/A\",\n        \"caregiver_name_2\": \"N/A\",\n        \"caregiver_details\": [],\n        \"rewards_balance\": 0,\n        \"rewards_type\": \"POINTS\",\n        \"gender\": \"U\",\n        \"signup_date\": \"2024-05-14T09:06:40.000-07:00\",\n        \"last_visit_date\": \"2024-05-31 09:54:13.000\",\n        \"last_update\": \"2025-10-21T07:26:36.000-07:00\",\n        \"opt_out\": null,\n        \"referral_source\": null,\n        \"banned\": false,\n        \"warning_1\": false,\n        \"warning_2\": false,\n        \"addresses\": [\n            {\n                \"type\": \"address_of_record\",\n                \"street1\": \"18 KATHLEEN STREET\",\n                \"street2\": \"\",\n                \"city\": \"SCOTT\",\n                \"state\": \"CA\",\n                \"zipcode\": \"20555\",\n                \"primary\": true\n            }\n        ],\n        \"merged_customer_ids\": [\n            19\n        ],\n        \"merged_into_customer_id\": null,\n        \"patient_type\": \"MEDICAL_MMID\",\n        \"imageList\": [\n            {\n                \"type\": \"PROFILE\",\n                \"url\": \"https://treezbuildtest.s3.us-west-2.amazonaws.com/customer/b1226d0b-4940-4edf-aab3-dbd1642f7f69/1b8e53d3-d810-455b-b287-e35a6555bde2/1_20_profile_21-10-25-07-26-35?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF4aCXVzLXdlc3QtMiJHMEUCIQDQcGkIIc%2BKMRbt5SqugYmtBH6liYb%2Fdls1LhcjYB6KdQIgeotnd7t5jGEKdVtHUjfFRJatF9L0fzdLPVgymK4BKakqvAUIFxAFGgwyMjgyNzY3NDYyMjAiDFJYTC8bJrsoiUBmySqZBd8DjcwZSJbTGqN6WkwF67Qfat4W%2BuQXF6VlDRrOThGyrC7X88AWnGEFQibnlTIW7niBUEFir7Ck1W7X0RgVx%2Fw82D2lhg%2FgVIohXRMwX5ZJRBuT9pqfmEMJox3VpKsYJQ49qevwSutJKT5q8ESHcFZApm%2F6pob3vJ%2FkoLhtq9apzR9HY6o20AGJj8B%2Fa8ZzCT93Ve69N3WQMwBwpX0TCvf9%2B2uZitOrhFUUom5EtIuiMb4Ud%2BZVTHMV03zFWcOHKJY5csplo3%2F6nW6iD50AAoXHLXuI78tDgQ1m4kSjsb4PcmCeuixiTSM%2BKGklamM5G3%2FkZRngtqfal3X74aUO%2BlQkClkp%2FwjhE8ZCCQ%2BfmklIehUHpXVD%2FEKmt0Q3hJkopm8oVroOJckh9AqC19QTyAv2mjNNWPcudZvJjq3lUP8tppsDvXCc4%2B6HJ%2Fk%2Fu8LCHobbwNdPhKI3B6S7szRd2B%2FLLrSLzlecmCMc38VNpxJBX8pC7pyftI6jICkOMcpYRLWTZ8cpfvbaQf%2BS%2FM38IKbryWMMc4KSynejnlRbH1Z6z0yKxuDivfgTovZO54d8JxmJG8Ufqk%2F5OxEu%2Bir83tZeHh58jyiMtOIU74kk2T9vfvTOHY9Psc3i7JoMk%2BRNCgcdp%2FQjzO31yZrBlpn%2B2iev7YIFWB010B8w%2BKYTNxEVtg%2BYz9wAM%2BNfcw9BYngL59dCwnoPF1Jnng30Lmgh0RUsvp%2FtD%2F1mBmI10MfKYPbQYT50BLn0Q7rcICLE7XjMckSBktMAhezYD3TmH9DjTR%2BWFpR%2F4cA%2BZg%2FLhBZ1%2BHt9oDVDeqdslupDJrLYLj4Fc217Rqif4av0j8lUCt0rCwO7z3WQ8Bjv3FvTC5RS6IiNXAH5DZrYNzfLMISh3scGOrEBEvF7fW0GcI83QJkfY1q1V8QH9zENQeST3nC0W8m4lnxPCbl%2FdUEwR8x7QpQnV2DhUqJffTim3IW%2FdaZzDAla0Tlbc2vtV4Z%2BB8PDXwsu9OR4ZZv%2Fbj%2F9ueAD8FnBtRXyEuOFzMgci0ao4dLkgW7qD2KwqmNaSWv%2FHzwQK0DrXC8S7o4FeMXrhSkhLNnFkVb8%2FbKDEpuZxrDweRkTGumz4bIeA%2BSxjuvklAJzzWHjOAcJ&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251021T142718Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=REDACTED_AWS_ACCESS_KEY_ID%2F20251021%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=2331ba1efdc7fa7ec0fb0dd03a874fd36b39cc0707eb5830fc1d6a90df52803f\",\n                \"lastupdated\": \"2025-10-21 07:26:36\"\n            },\n            {\n                \"type\": \"fullLicense\",\n                \"url\": \"https://treezbuildtest.s3.us-west-2.amazonaws.com/customer/b1226d0b-4940-4edf-aab3-dbd1642f7f69/1b8e53d3-d810-455b-b287-e35a6555bde2/1_20_fullLicense_21-10-25-07-26-35?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF4aCXVzLXdlc3QtMiJHMEUCIQDQcGkIIc%2BKMRbt5SqugYmtBH6liYb%2Fdls1LhcjYB6KdQIgeotnd7t5jGEKdVtHUjfFRJatF9L0fzdLPVgymK4BKakqvAUIFxAFGgwyMjgyNzY3NDYyMjAiDFJYTC8bJrsoiUBmySqZBd8DjcwZSJbTGqN6WkwF67Qfat4W%2BuQXF6VlDRrOThGyrC7X88AWnGEFQibnlTIW7niBUEFir7Ck1W7X0RgVx%2Fw82D2lhg%2FgVIohXRMwX5ZJRBuT9pqfmEMJox3VpKsYJQ49qevwSutJKT5q8ESHcFZApm%2F6pob3vJ%2FkoLhtq9apzR9HY6o20AGJj8B%2Fa8ZzCT93Ve69N3WQMwBwpX0TCvf9%2B2uZitOrhFUUom5EtIuiMb4Ud%2BZVTHMV03zFWcOHKJY5csplo3%2F6nW6iD50AAoXHLXuI78tDgQ1m4kSjsb4PcmCeuixiTSM%2BKGklamM5G3%2FkZRngtqfal3X74aUO%2BlQkClkp%2FwjhE8ZCCQ%2BfmklIehUHpXVD%2FEKmt0Q3hJkopm8oVroOJckh9AqC19QTyAv2mjNNWPcudZvJjq3lUP8tppsDvXCc4%2B6HJ%2Fk%2Fu8LCHobbwNdPhKI3B6S7szRd2B%2FLLrSLzlecmCMc38VNpxJBX8pC7pyftI6jICkOMcpYRLWTZ8cpfvbaQf%2BS%2FM38IKbryWMMc4KSynejnlRbH1Z6z0yKxuDivfgTovZO54d8JxmJG8Ufqk%2F5OxEu%2Bir83tZeHh58jyiMtOIU74kk2T9vfvTOHY9Psc3i7JoMk%2BRNCgcdp%2FQjzO31yZrBlpn%2B2iev7YIFWB010B8w%2BKYTNxEVtg%2BYz9wAM%2BNfcw9BYngL59dCwnoPF1Jnng30Lmgh0RUsvp%2FtD%2F1mBmI10MfKYPbQYT50BLn0Q7rcICLE7XjMckSBktMAhezYD3TmH9DjTR%2BWFpR%2F4cA%2BZg%2FLhBZ1%2BHt9oDVDeqdslupDJrLYLj4Fc217Rqif4av0j8lUCt0rCwO7z3WQ8Bjv3FvTC5RS6IiNXAH5DZrYNzfLMISh3scGOrEBEvF7fW0GcI83QJkfY1q1V8QH9zENQeST3nC0W8m4lnxPCbl%2FdUEwR8x7QpQnV2DhUqJffTim3IW%2FdaZzDAla0Tlbc2vtV4Z%2BB8PDXwsu9OR4ZZv%2Fbj%2F9ueAD8FnBtRXyEuOFzMgci0ao4dLkgW7qD2KwqmNaSWv%2FHzwQK0DrXC8S7o4FeMXrhSkhLNnFkVb8%2FbKDEpuZxrDweRkTGumz4bIeA%2BSxjuvklAJzzWHjOAcJ&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251021T142718Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=REDACTED_AWS_ACCESS_KEY_ID%2F20251021%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=fb27a93dbaa0b7efdadd039e2e54ff85ed8cb6befbcc7cb3694ab47b08ed12a6\",\n                \"lastupdated\": \"2025-10-21 07:26:35\"\n            }\n        ],\n        \"customer_groups\": [],\n        \"external_ids\": {\n            \"aiq_contact_id\": null\n        }\n    }\n}"
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: SUCCESS
                  resultReason: {}
                  resultDetail: {}
                  data:
                    type: object
                    properties:
                      status:
                        type: string
                        example: MERGED
                      verification_status:
                        type: string
                        example: VERIFICATION_PENDING
                      verification_reasons:
                        type: array
                        items:
                          type: object
                          properties:
                            verification_reason:
                              type: string
                              example: EXPIRATION
                            verification_reason_description:
                              type: string
                              example: MEDICAL_ID_EXPIRATION
                      customer_id:
                        type: string
                        example: '20'
                      first_name:
                        type: string
                        example: KATHLEEN
                      middle_name: {}
                      nickname:
                        type: string
                        example: ''
                      last_name:
                        type: string
                        example: SCOTT
                      birthday:
                        type: string
                        example: '1989-03-07'
                      drivers_license:
                        type: string
                        example: LIC744
                      drivers_license_expiration:
                        type: string
                        example: '2028-05-12'
                      state_medical_id:
                        type: string
                        example: MED738
                      permit_expiration:
                        type: string
                        example: '2024-05-31 00:00:00.000'
                      email:
                        type: string
                        example: SCOTT20@mail.com
                      phone:
                        type: string
                        example: '7777777777'
                      notes:
                        type: string
                        example: N/A
                      physician_first_name: {}
                      physician_last_name: {}
                      physician_license: {}
                      physician_address: {}
                      physician_phone: {}
                      is_caregiver:
                        type: boolean
                        example: false
                        default: true
                      caregiver_license_number:
                        type: string
                        example: ''
                      caregiver_name_1:
                        type: string
                        example: N/A
                      caregiver_name_2:
                        type: string
                        example: N/A
                      caregiver_details:
                        type: array
                        items:
                          type: object
                          properties: {}
                      rewards_balance:
                        type: integer
                        example: 0
                        default: 0
                      rewards_type:
                        type: string
                        example: POINTS
                      gender:
                        type: string
                        example: U
                      signup_date:
                        type: string
                        example: '2024-05-14T09:06:40.000-07:00'
                      last_visit_date:
                        type: string
                        example: '2024-05-31 09:54:13.000'
                      last_update:
                        type: string
                        example: '2025-10-21T07:26:36.000-07:00'
                      opt_out: {}
                      referral_source: {}
                      banned:
                        type: boolean
                        example: false
                        default: true
                      warning_1:
                        type: boolean
                        example: false
                        default: true
                      warning_2:
                        type: boolean
                        example: false
                        default: true
                      addresses:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              example: address_of_record
                            street1:
                              type: string
                              example: 18 KATHLEEN STREET
                            street2:
                              type: string
                              example: ''
                            city:
                              type: string
                              example: SCOTT
                            state:
                              type: string
                              example: CA
                            zipcode:
                              type: string
                              example: '20555'
                            primary:
                              type: boolean
                              example: true
                              default: true
                      merged_customer_ids:
                        type: array
                        items:
                          type: integer
                          example: 19
                          default: 0
                      merged_into_customer_id: {}
                      patient_type:
                        type: string
                        example: MEDICAL_MMID
                      imageList:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              example: PROFILE
                            url:
                              type: string
                              example: https://treezbuildtest.s3.us-west-2.amazonaws.com/customer/b1226d0b-4940-4edf-aab3-dbd1642f7f69/1b8e53d3-d810-455b-b287-e35a6555bde2/1_20_profile_21-10-25-07-26-35?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF4aCXVzLXdlc3QtMiJHMEUCIQDQcGkIIc%2BKMRbt5SqugYmtBH6liYb%2Fdls1LhcjYB6KdQIgeotnd7t5jGEKdVtHUjfFRJatF9L0fzdLPVgymK4BKakqvAUIFxAFGgwyMjgyNzY3NDYyMjAiDFJYTC8bJrsoiUBmySqZBd8DjcwZSJbTGqN6WkwF67Qfat4W%2BuQXF6VlDRrOThGyrC7X88AWnGEFQibnlTIW7niBUEFir7Ck1W7X0RgVx%2Fw82D2lhg%2FgVIohXRMwX5ZJRBuT9pqfmEMJox3VpKsYJQ49qevwSutJKT5q8ESHcFZApm%2F6pob3vJ%2FkoLhtq9apzR9HY6o20AGJj8B%2Fa8ZzCT93Ve69N3WQMwBwpX0TCvf9%2B2uZitOrhFUUom5EtIuiMb4Ud%2BZVTHMV03zFWcOHKJY5csplo3%2F6nW6iD50AAoXHLXuI78tDgQ1m4kSjsb4PcmCeuixiTSM%2BKGklamM5G3%2FkZRngtqfal3X74aUO%2BlQkClkp%2FwjhE8ZCCQ%2BfmklIehUHpXVD%2FEKmt0Q3hJkopm8oVroOJckh9AqC19QTyAv2mjNNWPcudZvJjq3lUP8tppsDvXCc4%2B6HJ%2Fk%2Fu8LCHobbwNdPhKI3B6S7szRd2B%2FLLrSLzlecmCMc38VNpxJBX8pC7pyftI6jICkOMcpYRLWTZ8cpfvbaQf%2BS%2FM38IKbryWMMc4KSynejnlRbH1Z6z0yKxuDivfgTovZO54d8JxmJG8Ufqk%2F5OxEu%2Bir83tZeHh58jyiMtOIU74kk2T9vfvTOHY9Psc3i7JoMk%2BRNCgcdp%2FQjzO31yZrBlpn%2B2iev7YIFWB010B8w%2BKYTNxEVtg%2BYz9wAM%2BNfcw9BYngL59dCwnoPF1Jnng30Lmgh0RUsvp%2FtD%2F1mBmI10MfKYPbQYT50BLn0Q7rcICLE7XjMckSBktMAhezYD3TmH9DjTR%2BWFpR%2F4cA%2BZg%2FLhBZ1%2BHt9oDVDeqdslupDJrLYLj4Fc217Rqif4av0j8lUCt0rCwO7z3WQ8Bjv3FvTC5RS6IiNXAH5DZrYNzfLMISh3scGOrEBEvF7fW0GcI83QJkfY1q1V8QH9zENQeST3nC0W8m4lnxPCbl%2FdUEwR8x7QpQnV2DhUqJffTim3IW%2FdaZzDAla0Tlbc2vtV4Z%2BB8PDXwsu9OR4ZZv%2Fbj%2F9ueAD8FnBtRXyEuOFzMgci0ao4dLkgW7qD2KwqmNaSWv%2FHzwQK0DrXC8S7o4FeMXrhSkhLNnFkVb8%2FbKDEpuZxrDweRkTGumz4bIeA%2BSxjuvklAJzzWHjOAcJ&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251021T142718Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=REDACTED_AWS_ACCESS_KEY_ID%2F20251021%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=2331ba1efdc7fa7ec0fb0dd03a874fd36b39cc0707eb5830fc1d6a90df52803f
                            lastupdated:
                              type: string
                              example: '2025-10-21 07:26:36'
                      customer_groups:
                        type: array
                        items:
                          type: object
                          properties: {}
                      external_ids:
                        type: object
                        properties:
                          aiq_contact_id: {}
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value: "{\n    \"resultCode\": \"FAIL\",\n    \"resultReason\": \"Full authentication is required to access this resource\"\n}"
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: FAIL
                  resultReason:
                    type: string
                    example: Full authentication is required to access this resource
        '404':
          description: '404'
          content:
            application/json:
              examples:
                Result:
                  value: "{\n    \"resultCode\": \"FAIL\",\n    \"resultReason\": \"CUSTOMER_DOESNT_EXIST\",\n    \"resultDetail\": null\n}"
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: FAIL
                  resultReason:
                    type: string
                    example: CUSTOMER_DOESNT_EXIST
                  resultDetail: {}
      deprecated: false
      security: []
      tags:
      - Customer
  /{dispensary}/customer/email/{email}:
    get:
      summary: Get by email address
      description: ''
      operationId: dispensary-customer-get-by-email
      parameters:
      - name: include_image_list
        in: query
        description: Returns stored customer images in the response. Default behavior is `false` if not specified.
        schema:
          type: boolean
      - name: dispensary
        in: path
        description: The dispensary short name
        schema:
          type: string
          default: partnersandbox3
        required: true
      - name: email
        in: path
        description: The customer's email address.
        schema:
          type: string
        required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value: "{\n    \"resultCode\": \"SUCCESS\",\n    \"resultReason\": null,\n    \"resultDetail\": null,\n    \"data\": {\n        \"status\": \"MERGED\",\n        \"verification_status\": \"VERIFICATION_PENDING\",\n        \"verification_reasons\": [\n            {\n                \"verification_reason\": \"EXPIRATION\",\n                \"verification_reason_description\": \"MEDICAL_ID_EXPIRATION\"\n            }\n        ],\n        \"customer_id\": \"20\",\n        \"first_name\": \"KATHLEEN\",\n        \"middle_name\": null,\n        \"nickname\": \"\",\n        \"last_name\": \"SCOTT\",\n        \"birthday\": \"1989-03-07\",\n        \"drivers_license\": \"LIC744\",\n        \"drivers_license_expiration\": \"2028-05-12\",\n        \"state_medical_id\": \"MED738\",\n        \"permit_expiration\": \"2024-05-31 00:00:00.000\",\n        \"email\": \"SCOTT20@mail.com\",\n        \"phone\": \"7777777777\",\n        \"notes\": \"N/A\",\n        \"physician_first_name\": null,\n        \"physician_last_name\": null,\n        \"physician_license\": null,\n        \"physician_address\": null,\n        \"physician_phone\": null,\n        \"is_caregiver\": false,\n        \"caregiver_license_number\": \"\",\n        \"caregiver_name_1\": \"N/A\",\n        \"caregiver_name_2\": \"N/A\",\n        \"caregiver_details\": [],\n        \"rewards_balance\": 0,\n        \"rewards_type\": \"POINTS\",\n        \"gender\": \"U\",\n        \"signup_date\": \"2024-05-14T09:06:40.000-07:00\",\n        \"last_visit_date\": \"2024-05-31 09:54:13.000\",\n        \"last_update\": \"2025-10-21T07:26:36.000-07:00\",\n        \"opt_out\": null,\n        \"referral_source\": null,\n        \"banned\": false,\n        \"warning_1\": false,\n        \"warning_2\": false,\n        \"addresses\": [\n            {\n                \"type\": \"address_of_record\",\n                \"street1\": \"18 KATHLEEN STREET\",\n                \"street2\": \"\",\n                \"city\": \"SCOTT\",\n                \"state\": \"CA\",\n                \"zipcode\": \"20555\",\n                \"primary\": true\n            }\n        ],\n        \"merged_customer_ids\": [\n            19\n        ],\n        \"merged_into_customer_id\": null,\n        \"patient_type\": \"MEDICAL_MMID\",\n        \"imageList\": [\n            {\n                \"type\": \"PROFILE\",\n                \"url\": \"https://treezbuildtest.s3.us-west-2.amazonaws.com/customer/b1226d0b-4940-4edf-aab3-dbd1642f7f69/1b8e53d3-d810-455b-b287-e35a6555bde2/1_20_profile_21-10-25-07-26-35?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF4aCXVzLXdlc3QtMiJHMEUCIQDQcGkIIc%2BKMRbt5SqugYmtBH6liYb%2Fdls1LhcjYB6KdQIgeotnd7t5jGEKdVtHUjfFRJatF9L0fzdLPVgymK4BKakqvAUIFxAFGgwyMjgyNzY3NDYyMjAiDFJYTC8bJrsoiUBmySqZBd8DjcwZSJbTGqN6WkwF67Qfat4W%2BuQXF6VlDRrOThGyrC7X88AWnGEFQibnlTIW7niBUEFir7Ck1W7X0RgVx%2Fw82D2lhg%2FgVIohXRMwX5ZJRBuT9pqfmEMJox3VpKsYJQ49qevwSutJKT5q8ESHcFZApm%2F6pob3vJ%2FkoLhtq9apzR9HY6o20AGJj8B%2Fa8ZzCT93Ve69N3WQMwBwpX0TCvf9%2B2uZitOrhFUUom5EtIuiMb4Ud%2BZVTHMV03zFWcOHKJY5csplo3%2F6nW6iD50AAoXHLXuI78tDgQ1m4kSjsb4PcmCeuixiTSM%2BKGklamM5G3%2FkZRngtqfal3X74aUO%2BlQkClkp%2FwjhE8ZCCQ%2BfmklIehUHpXVD%2FEKmt0Q3hJkopm8oVroOJckh9AqC19QTyAv2mjNNWPcudZvJjq3lUP8tppsDvXCc4%2B6HJ%2Fk%2Fu8LCHobbwNdPhKI3B6S7szRd2B%2FLLrSLzlecmCMc38VNpxJBX8pC7pyftI6jICkOMcpYRLWTZ8cpfvbaQf%2BS%2FM38IKbryWMMc4KSynejnlRbH1Z6z0yKxuDivfgTovZO54d8JxmJG8Ufqk%2F5OxEu%2Bir83tZeHh58jyiMtOIU74kk2T9vfvTOHY9Psc3i7JoMk%2BRNCgcdp%2FQjzO31yZrBlpn%2B2iev7YIFWB010B8w%2BKYTNxEVtg%2BYz9wAM%2BNfcw9BYngL59dCwnoPF1Jnng30Lmgh0RUsvp%2FtD%2F1mBmI10MfKYPbQYT50BLn0Q7rcICLE7XjMckSBktMAhezYD3TmH9DjTR%2BWFpR%2F4cA%2BZg%2FLhBZ1%2BHt9oDVDeqdslupDJrLYLj4Fc217Rqif4av0j8lUCt0rCwO7z3WQ8Bjv3FvTC5RS6IiNXAH5DZrYNzfLMISh3scGOrEBEvF7fW0GcI83QJkfY1q1V8QH9zENQeST3nC0W8m4lnxPCbl%2FdUEwR8x7QpQnV2DhUqJffTim3IW%2FdaZzDAla0Tlbc2vtV4Z%2BB8PDXwsu9OR4ZZv%2Fbj%2F9ueAD8FnBtRXyEuOFzMgci0ao4dLkgW7qD2KwqmNaSWv%2FHzwQK0DrXC8S7o4FeMXrhSkhLNnFkVb8%2FbKDEpuZxrDweRkTGumz4bIeA%2BSxjuvklAJzzWHjOAcJ&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251021T142718Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=REDACTED_AWS_ACCESS_KEY_ID%2F20251021%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=2331ba1efdc7fa7ec0fb0dd03a874fd36b39cc0707eb5830fc1d6a90df52803f\",\n                \"lastupdated\": \"2025-10-21 07:26:36\"\n            },\n            {\n                \"type\": \"fullLicense\",\n                \"url\": \"https://treezbuildtest.s3.us-west-2.amazonaws.com/customer/b1226d0b-4940-4edf-aab3-dbd1642f7f69/1b8e53d3-d810-455b-b287-e35a6555bde2/1_20_fullLicense_21-10-25-07-26-35?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF4aCXVzLXdlc3QtMiJHMEUCIQDQcGkIIc%2BKMRbt5SqugYmtBH6liYb%2Fdls1LhcjYB6KdQIgeotnd7t5jGEKdVtHUjfFRJatF9L0fzdLPVgymK4BKakqvAUIFxAFGgwyMjgyNzY3NDYyMjAiDFJYTC8bJrsoiUBmySqZBd8DjcwZSJbTGqN6WkwF67Qfat4W%2BuQXF6VlDRrOThGyrC7X88AWnGEFQibnlTIW7niBUEFir7Ck1W7X0RgVx%2Fw82D2lhg%2FgVIohXRMwX5ZJRBuT9pqfmEMJox3VpKsYJQ49qevwSutJKT5q8ESHcFZApm%2F6pob3vJ%2FkoLhtq9apzR9HY6o20AGJj8B%2Fa8ZzCT93Ve69N3WQMwBwpX0TCvf9%2B2uZitOrhFUUom5EtIuiMb4Ud%2BZVTHMV03zFWcOHKJY5csplo3%2F6nW6iD50AAoXHLXuI78tDgQ1m4kSjsb4PcmCeuixiTSM%2BKGklamM5G3%2FkZRngtqfal3X74aUO%2BlQkClkp%2FwjhE8ZCCQ%2BfmklIehUHpXVD%2FEKmt0Q3hJkopm8oVroOJckh9AqC19QTyAv2mjNNWPcudZvJjq3lUP8tppsDvXCc4%2B6HJ%2Fk%2Fu8LCHobbwNdPhKI3B6S7szRd2B%2FLLrSLzlecmCMc38VNpxJBX8pC7pyftI6jICkOMcpYRLWTZ8cpfvbaQf%2BS%2FM38IKbryWMMc4KSynejnlRbH1Z6z0yKxuDivfgTovZO54d8JxmJG8Ufqk%2F5OxEu%2Bir83tZeHh58jyiMtOIU74kk2T9vfvTOHY9Psc3i7JoMk%2BRNCgcdp%2FQjzO31yZrBlpn%2B2iev7YIFWB010B8w%2BKYTNxEVtg%2BYz9wAM%2BNfcw9BYngL59dCwnoPF1Jnng30Lmgh0RUsvp%2FtD%2F1mBmI10MfKYPbQYT50BLn0Q7rcICLE7XjMckSBktMAhezYD3TmH9DjTR%2BWFpR%2F4cA%2BZg%2FLhBZ1%2BHt9oDVDeqdslupDJrLYLj4Fc217Rqif4av0j8lUCt0rCwO7z3WQ8Bjv3FvTC5RS6IiNXAH5DZrYNzfLMISh3scGOrEBEvF7fW0GcI83QJkfY1q1V8QH9zENQeST3nC0W8m4lnxPCbl%2FdUEwR8x7QpQnV2DhUqJffTim3IW%2FdaZzDAla0Tlbc2vtV4Z%2BB8PDXwsu9OR4ZZv%2Fbj%2F9ueAD8FnBtRXyEuOFzMgci0ao4dLkgW7qD2KwqmNaSWv%2FHzwQK0DrXC8S7o4FeMXrhSkhLNnFkVb8%2FbKDEpuZxrDweRkTGumz4bIeA%2BSxjuvklAJzzWHjOAcJ&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251021T142718Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=REDACTED_AWS_ACCESS_KEY_ID%2F20251021%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=fb27a93dbaa0b7efdadd039e2e54ff85ed8cb6befbcc7cb3694ab47b08ed12a6\",\n                \"lastupdated\": \"2025-10-21 07:26:35\"\n            }\n        ],\n        \"customer_groups\": [],\n        \"external_ids\": {\n            \"aiq_contact_id\": null\n        }\n    }\n}"
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: SUCCESS
                  resultReason: {}
                  resultDetail: {}
                  data:
                    type: object
                    properties:
                      status:
                        type: string
                        example: MERGED
                      verification_status:
                        type: string
                        example: VERIFICATION_PENDING
                      verification_reasons:
                        type: array
                        items:
                          type: object
                          properties:
                            verification_reason:
                              type: string
                              example: EXPIRATION
                            verification_reason_description:
                              type: string
                              example: MEDICAL_ID_EXPIRATION
                      customer_id:
                        type: string
                        example: '20'
                      first_name:
                        type: string
                        example: KATHLEEN
                      middle_name: {}
                      nickname:
                        type: string
                        example: ''
                      last_name:
                        type: string
                        example: SCOTT
                      birthday:
                        type: string
                        example: '1989-03-07'
                      drivers_license:
                        type: string
                        example: LIC744
                      drivers_license_expiration:
                        type: string
                        example: '2028-05-12'
                      state_medical_id:
                        type: string
                        example: MED738
                      permit_expiration:
                        type: string
                        example: '2024-05-31 00:00:00.000'
                      email:
                        type: string
                        example: SCOTT20@mail.com
                      phone:
                        type: string
                        example: '7777777777'
                      notes:
                        type: string
                        example: N/A
                      physician_first_name: {}
                      physician_last_name: {}
                      physician_license: {}
                      physician_address: {}
                      physician_phone: {}
                      is_caregiver:
                        type: boolean
                        example: false
                        default: true
                      caregiver_license_number:
                        type: string
                        example: ''
                      caregiver_name_1:
                        type: string
                        example: N/A
                      caregiver_name_2:
                        type: string
                        example: N/A
                      caregiver_details:
                        type: array
                        items:
                          type: object
                          properties: {}
                      rewards_balance:
                        type: integer
                        example: 0
                        default: 0
                      rewards_type:
                        type: string
                        example: POINTS
                      gender:
                        type: string
                        example: U
                      signup_date:
                        type: string
                        example: '2024-05-14T09:06:40.000-07:00'
                      last_visit_date:
                        type: string
                        example: '2024-05-31 09:54:13.000'
                      last_update:
                        type: string
                        example: '2025-10-21T07:26:36.000-07:00'
                      opt_out: {}
                      referral_source: {}
                      banned:
                        type: boolean
                        example: false
                        default: true
                      warning_1:
                        type: boolean
                        example: false
                        default: true
                      warning_2:
                        type: boolean
                        example: false
                        default: true
                      addresses:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              example: address_of_record
                            street1:
                              type: string
                              example: 18 KATHLEEN STREET
                            street2:
                              type: string
                              example: ''
                            city:
                              type: string
                              example: SCOTT
                            state:
                              type: string
                              example: CA
                            zipcode:
                              type: string
                              example: '20555'
                            primary:
                              type: boolean
                              example: true
                              default: true
                      merged_customer_ids:
                        type: array
                        items:
                          type: integer
                          example: 19
                          default: 0
                      merged_into_customer_id: {}
                      patient_type:
                        type: string
                        example: MEDICAL_MMID
                      imageList:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              example: PROFILE
                            url:
                              type: string
                              example: https://treezbuildtest.s3.us-west-2.amazonaws.com/customer/b1226d0b-4940-4edf-aab3-dbd1642f7f69/1b8e53d3-d810-455b-b287-e35a6555bde2/1_20_profile_21-10-25-07-26-35?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF4aCXVzLXdlc3QtMiJHMEUCIQDQcGkIIc%2BKMRbt5SqugYmtBH6liYb%2Fdls1LhcjYB6KdQIgeotnd7t5jGEKdVtHUjfFRJatF9L0fzdLPVgymK4BKakqvAUIFxAFGgwyMjgyNzY3NDYyMjAiDFJYTC8bJrsoiUBmySqZBd8DjcwZSJbTGqN6WkwF67Qfat4W%2BuQXF6VlDRrOThGyrC7X88AWnGEFQibnlTIW7niBUEFir7Ck1W7X0RgVx%2Fw82D2lhg%2FgVIohXRMwX5ZJRBuT9pqfmEMJox3VpKsYJQ49qevwSutJKT5q8ESHcFZApm%2F6pob3vJ%2FkoLhtq9apzR9HY6o20AGJj8B%2Fa8ZzCT93Ve69N3WQMwBwpX0TCvf9%2B2uZitOrhFUUom5EtIuiMb4Ud%2BZVTHMV03zFWcOHKJY5csplo3%2F6nW6iD50AAoXHLXuI78tDgQ1m4kSjsb4PcmCeuixiTSM%2BKGklamM5G3%2FkZRngtqfal3X74aUO%2BlQkClkp%2FwjhE8ZCCQ%2BfmklIehUHpXVD%2FEKmt0Q3hJkopm8oVroOJckh9AqC19QTyAv2mjNNWPcudZvJjq3lUP8tppsDvXCc4%2B6HJ%2Fk%2Fu8LCHobbwNdPhKI3B6S7szRd2B%2FLLrSLzlecmCMc38VNpxJBX8pC7pyf

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