# Read Sales Order

> Perform Read Sales Order through Brightree.

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

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

- Handler: `brightree_read_sales_order`

- Connection type: `brightree`

## Inputs

- `sales_order_key` — Sales Order Key (expression, required)
  Required literal value or workflow expression.
- `tabs` — Tabs (multi_select)
  Optional list of selected values.
  Options: Order ("order"), Clinical ("clinical"), Insurance ("insurance"), Items ("items"), Purchasing ("purchasing"), Schedule ("schedule"), Proof of Delivery ("pod"), Messages ("messages"), Custom Fields ("custom_fields"), Forms ("forms"), History ("history"), Documents ("documents")

## Outputs

- `success` — Success
- `sales_order_key` — Sales Order Key
- `patient_id` — Patient Id
- `patient_key` — Patient Key
- `patient_name` — Patient Name
- `order_number` — Order Number
- `header` — Header
- `order` — Order
- `clinical` — Clinical
- `insurance` — Insurance
- `items` — Items
- `purchasing` — Purchasing
- `schedule` — Schedule
- `pod` — Pod
- `messages` — Messages
- `custom_fields` — Custom Fields
- `forms` — Forms
- `history` — History
- `documents` — Documents
- `url` — Url
- `patient_key_error` — Patient Key Error
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "sales_order_key"
  ],
  "properties": {
    "tabs": {
      "type": "array",
      "items": {
        "enum": [
          "order",
          "clinical",
          "insurance",
          "items",
          "purchasing",
          "schedule",
          "pod",
          "messages",
          "custom_fields",
          "forms",
          "history",
          "documents"
        ],
        "type": "string"
      },
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "sales_order_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "pod": {},
    "url": {},
    "error": {},
    "forms": {},
    "items": {},
    "order": {},
    "header": {},
    "history": {},
    "success": {},
    "clinical": {},
    "messages": {},
    "schedule": {},
    "documents": {},
    "insurance": {},
    "patient_id": {},
    "purchasing": {},
    "patient_key": {},
    "order_number": {},
    "patient_name": {},
    "custom_fields": {},
    "sales_order_key": {},
    "patient_key_error": {}
  },
  "additionalProperties": true
}
```
