Ostorya dev docs

Admin API/Team and commissions/Mutations

ordersDispatch

mutation

Hands every open order that nobody has to the team by quota, and moves inactive agents' orders if the policy says so.

Returns OrdersDispatchPayload!

mutation OrdersDispatch {
  ordersDispatch {
    assignedCount
    userErrors {
      code
      message
      field
    }
  }
}

Payload

assignedCountInt!required
userErrors[UserError!]!required