service->payout($batch); } catch (\RuntimeException $e) { return ApiMessage::runtimeErrorResponse($request, $e); } return ApiResponse::success([ 'id' => (int) $updated->id, 'status' => $updated->status, 'paid_at' => $updated->paid_at?->toIso8601String(), ]); } }