# Enqueue Sales Order Template Processing

> Perform Enqueue Sales Order Template Processing through Brightree.

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

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

- Handler: `brightree_enqueue_sales_order_template_processing`

- Connection type: `brightree`

## Inputs

- `sales_order_key` — Sales Order Key (expression)
  Optional literal value or workflow expression.
- `account_key` — Account Key (text)
  Optional text value.
- `runs` — Runs (number)
  Optional numeric value.
  Default: `1`
- `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
- `orders_dispatched` — Orders Dispatched
- `order_keys` — Order Keys
- `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": {
    "runs": {
      "type": "number",
      "default": 1,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "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"
    },
    "sales_order_key": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "use_local_agent": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

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