# Search Sales Orders by Created Date

> Perform Search Sales Orders by Created Date through Brightree.

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

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

- Handler: `brightree_search_sales_orders_by_created_date`

- Connection type: `brightree`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "Brightree",
  "params": {
    "page": 1,
    "fetch_all": false,
    "page_size": 50,
    "include_orders": false
  },
  "handler": "brightree_search_sales_orders_by_created_date"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `created_from` — Created From (date, required)
  Required date in YYYY-MM-DD format.
- `created_to` — Created To (date, required)
  Required date in YYYY-MM-DD format.
- `classification` — Classification (select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `order_branches` — Order Branches (multi_select)
  Optional list of selected values.
- `page` — Page (number)
  Optional numeric value.
  Default: `1`
- `page_size` — Page Size (select)
  Optional selected identifier or value.
  Default: `50`
  Options: 10 (10), 25 (25), 50 (50)
- `fetch_all` — Fetch All (boolean)
  Optional true-or-false value.
  Default: `false`
- `include_orders` — Include Orders (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `complete` — Complete
- `orders` — Orders
- `sales_order_keys` — Sales Order Keys
- `count` — Count
- `total_items` — Total Items
- `total_pages` — Total Pages
- `pages_fetched` — Pages Fetched
- `current_page` — Current Page
- `page` — Page
- `page_size` — Page Size
- `fetch_all` — Fetch All
- `include_orders` — Include Orders
- `created_from` — Created From
- `created_to` — Created To
- `duplicate_key_count` — Duplicate Key Count
- `completion_evidence` — Completion Evidence
- `html_row_count` — Html Row Count
- `unique_record_count` — Unique Record Count
- `message` — Message
- `error` — Error
- `error_message` — Error Message

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": [
    "created_from",
    "created_to"
  ],
  "properties": {
    "page": {
      "type": "number",
      "default": 1,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "fetch_all": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "page_size": {
      "enum": [
        10,
        25,
        50
      ],
      "type": "number",
      "default": 50,
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "created_to": {
      "type": "string",
      "format": "date",
      "description": "Required date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "created_from": {
      "type": "string",
      "format": "date",
      "description": "Required date in YYYY-MM-DD format.",
      "x-workflow-field-type": "date"
    },
    "classification": {
      "type": "string",
      "description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    },
    "include_orders": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "order_branches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "page": {},
    "count": {},
    "error": {},
    "orders": {},
    "message": {},
    "success": {},
    "complete": {},
    "fetch_all": {},
    "page_size": {},
    "created_to": {},
    "total_items": {},
    "total_pages": {},
    "created_from": {},
    "current_page": {},
    "error_message": {},
    "pages_fetched": {},
    "html_row_count": {},
    "include_orders": {},
    "sales_order_keys": {},
    "completion_evidence": {},
    "duplicate_key_count": {},
    "unique_record_count": {}
  },
  "additionalProperties": true
}
```
