---
title: "Validate draft"
method: GET
path: "/shipping/orders/validate_draft/v1/{order_id}"
tags: ["/shipping/orders"]
---

# Validate draft

`GET /shipping/orders/validate_draft/v1/{order_id}`

Validates a draft order for staging and returns requirement results. | authz_personas=[draft_creator_org_operator] | () -> (OrderDraftValidationResult)

## Path parameters

- `order_id` string, required

## Response `200`

Successful Response

- OrderDraftValidationResult
  - `is_valid` boolean, required
  - `requirements` OrderDraftValidationRequirements, required
    - `all_entities_are_draft` boolean, nullable, required
    - `order_has_task_groups` boolean, nullable, required
    - `task_groups_have_valid_tasks` boolean, nullable, required
    - `tasks_have_valid_actions` boolean, nullable, required
    - `task_groups_have_valid_task_sequence` boolean, nullable, required
    - `tasks_have_valid_cargo` boolean, nullable, required
    - `cargos_have_valid_lifecycle` boolean, nullable, required
    - `at_least_one_task_has_time_window` boolean, nullable, required
    - `order_has_shipper` boolean, nullable, required
    - `order_has_coordinator` boolean, nullable, required
    - `coordinator_shipper_accounts_match_order` boolean, nullable, required
  - `issues` ValidationIssue[]
    - `requirement_key` string, required
    - `scope` ValidationIssueScope
      - `task_group_id` string, nullable
      - `task_id` string, nullable
      - `cargo_id` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chrt/apis/chrt-fastapi.md) · [All operations](https://skmtc.dev/chrt/apis/chrt-fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chrt/chrt-fastapi/revisions/ea04e157edb3/schema)
