# Dispatch Sales Order Templates

> Perform Dispatch Sales Order Templates through Brightree.

Source: [https://genhealth.ai/docs/workflows/integrations/brightree/brightree_dispatch_sales_order_templates](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_dispatch_sales_order_templates)

Integration: [Brightree](https://genhealth.ai/docs/workflows/integrations/brightree.md)

- Handler: `brightree_dispatch_sales_order_templates`

- Connection type: `brightree`

## Inputs

- `account_key` — Account Key (text)
  Optional text value.
- `classification` — Classification (text)
  Optional text value.
- `confirm_date_after` — Confirm Date After (date)
  Optional date in YYYY-MM-DD format.
- `confirm_date_lookback_days` — Confirm Date Lookback Days (number)
  Optional numeric value.
  Default: `90`
- `report_limit` — Report Limit (number)
  Optional numeric value.
  Default: `15000`
- `runs_per_order` — Runs Per Order (number)
  Optional numeric value.
  Default: `1`
- `target_queue_depth` — Target Queue Depth (number)
  Optional numeric value.
  Default: `10`
- `max_dispatch_per_run` — Max Dispatch Per Run (number)
  Optional numeric value.
- `use_local_agent` — Use Local Agent (boolean)
  Optional true-or-false value.
  Default: `false`
- `http_only` — Http Only (boolean)
  Optional true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `job_id` — Job Id
- `orders_dispatched` — Orders Dispatched
- `order_keys` — Order Keys
- `queue_depth_before` — Queue Depth Before
- `queue_headroom` — Queue Headroom
- `target_queue_depth` — Target Queue Depth
- `message` — Message
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "http_only": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "account_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "report_limit": {
      "type": "number",
      "default": 15000,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "classification": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "runs_per_order": {
      "type": "number",
      "default": 1,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "use_local_agent": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "confirm_date_after": {
      "type": "string",
      "format": "date",
      "description": "Optional date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "target_queue_depth": {
      "type": "number",
      "default": 10,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "max_dispatch_per_run": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "confirm_date_lookback_days": {
      "type": "number",
      "default": 90,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "job_id": {},
    "message": {},
    "success": {},
    "order_keys": {},
    "queue_headroom": {},
    "orders_dispatched": {},
    "queue_depth_before": {},
    "target_queue_depth": {}
  },
  "additionalProperties": true
}
```
