Cancel a Work Order
Explicitly cancels a project-contained Work Order through app domain services. Requires Idempotency-Key. Side effects include entitlement unlink/sync, Project Item sync, audit, domain event, usage, and action response. Required scope: work_orders:cancel. reason is stored as the Work Order's cancelReason.
Explicitly cancels a project-contained Work Order through app domain services. Requires Idempotency-Key. Side effects include entitlement unlink/sync, Project Item sync, audit, domain event, usage, and action response. Required scope: work_orders:cancel. reason is stored as the Work Order's cancelReason.
Cancel a Work Order. Use an organization API key with work_orders:cancel. Check the response envelope and meta.requestId before triggering dependent workflow steps.
Required scopes
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| idrequired | path | string | Work Order identifier returned by the Organization API. |
Request body
| Field | Type | Description |
|---|---|---|
| reason | string | null | Optional unless marked required. |
{
"reason": "Customer requested reschedule."
}Responses
Work Order cancellation action envelope
#/components/schemas/OrgApiActionEnvelope
Missing or invalid organization API key
#/components/schemas/OrgApiError
Organization billing access or an endpoint-specific business quota denied the request
#/components/schemas/OrgApiError
Missing required scope: work_orders:cancel
#/components/schemas/OrgApiError
Rate limit exceeded
#/components/schemas/OrgApiError
Errors
Static examples
curl -X POST "$SOLAROS_BASE_URL/api/v1/work-orders/$SOLAROS_WORK_ORDER/cancel" \
-H "Authorization: Bearer $SOLAROS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SOLAROS_IDEMPOTENCY_KEY" \
--data '{"reason":"Customer requested reschedule."}'