# Cancel Sales Order POD

> Perform Cancel Sales Order POD through Brightree.

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

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

- Handler: `brightree_cancel_sales_order_pod`

- Connection type: `brightree`

## Inputs

- `sales_order_key` — Sales Order Key (expression, required)
  Required literal value or workflow expression.
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `cancelled` — Cancelled
- `already_cancelled` — Already Cancelled
- `dry_run` — Dry Run
- `sales_order_key` — Sales Order Key
- `previous_status` — Previous Status
- `current_status` — Current Status
- `message` — Message
- `error` — Error
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "sales_order_key"
  ],
  "properties": {
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "sales_order_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "dry_run": {},
    "message": {},
    "success": {},
    "cancelled": {},
    "error_message": {},
    "current_status": {},
    "previous_status": {},
    "sales_order_key": {},
    "already_cancelled": {}
  },
  "additionalProperties": true
}
```
