solarOS Organization API

Organization API

Dispatch a Service Appointment

Transitions a scheduled appointment to DISPATCHED. The body is optional. Accepted body fields are ignored by this action but still participate in idempotency matching; prefer an empty object.

/api/v1/service-appointments/{id}/dispatch

Transitions a scheduled appointment to DISPATCHED. The body is optional. Accepted body fields are ignored by this action but still participate in idempotency matching; prefer an empty object.

Dispatch a Service Appointment. Use an organization API key with service_appointments:dispatch. Check the response envelope and meta.requestId before triggering dependent workflow steps.

Required scopes

service_appointments:dispatchIdempotency-Key required

Parameters

NameInTypeDescription
idrequiredpathstringService Appointment identifier returned by the Organization API.

Request body

object
FieldTypeDescription
completedAtstring | nullOptional unless marked required.
notesstring | nullOptional unless marked required.
reasonCUSTOMER_REQUEST | TECH_UNAVAILABLE | WEATHER | RESCHEDULED | NO_SHOW | OTHEROptional unless marked required.
dispatchserviceappointmentRequest
{}

Responses

200

Dispatch action envelope

#/components/schemas/OrgApiActionEnvelope

401

Missing or invalid organization API key

#/components/schemas/OrgApiError

402

Organization billing access or an endpoint-specific business quota denied the request

#/components/schemas/OrgApiError

403

Missing required scope: service_appointments:dispatch

#/components/schemas/OrgApiError

429

Rate limit exceeded

#/components/schemas/OrgApiError

Errors

401 Missing or invalid organization API key402 Organization billing access or an endpoint-specific business quota denied the request403 Missing required scope: service_appointments:dispatch429 Rate limit exceeded

Static examples

curl -X POST "$SOLAROS_BASE_URL/api/v1/service-appointments/$SOLAROS_SERVICE_APPOINTMENT/dispatch" \
  -H "Authorization: Bearer $SOLAROS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $SOLAROS_IDEMPOTENCY_KEY" \
  --data '{}'