Treez Attachment API

The Attachment API from Treez — 1 operation(s) for attachment.

Operations 1

POST /{dispensary}/attachment Invoice - Attach File (multi-part) #

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-attachment-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-attachment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dispensary Attachment API
  version: 3.1.0
servers:
- url: https://api-prod.treez.io/dispensary/v3
security:
- {}
tags:
- name: Attachment
paths:
  /{dispensary}/attachment:
    post:
      summary: Invoice - Attach File (multi-part)
      description: ''
      operationId: invoice-apply-payment-1
      parameters:
      - in: path
        name: dispensary
        schema:
          type: string
        required: true
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - id
              - file
              properties:
                id:
                  type: string
                  description: The `id` of the invoice to which the file will be attached
                file:
                  type: string
                  description: 'The path to the file that will be attached.

                    Example: `file=@"/C:/Users/Scott/Documents/invoice2946.pdf"`'
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: SUCCESS
                  resultReason:
                    type: string
                  resultDetail:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: a6ec64b2-1c4e-4fc6-a3a4-9de26c59ad9c
                      payment_status:
                        type: string
                        example: PARTIALLY PAID
                      payments:
                        type: array
                        items:
                          type: object
                          properties:
                            payment_date:
                              type: string
                              example: 2025-10-29T14:07:25.126-0700
                            payment_user:
                              type: string
                              example: EXTERNAL API
                            payment_amount:
                              type: integer
                              example: 150
                              default: 0
                            transaction_type:
                              type: string
                              example: Cash Handling
                            payment_source:
                              type: string
                              example: CD01
                            payment_notes:
                              type: string
                              example: CD01 payment
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                properties:
                  resultCode:
                    type: string
                    example: FAIL
                  resultReason:
                    type: string
                    example: INCORRECT_VALUE
                  resultDetail:
                    type: array
                    items:
                      type: string
                      example: 'status: Status cannot be blank or empty'
      tags:
      - Attachment
x-readme:
  headers:
  - key: Accept-Encoding
    value: gzip,br
  explorer-enabled: true
  proxy-enabled: true
x-readme-fauxas: true